Ticket #474: parrot-spec-suse-improvement.patch
File parrot-spec-suse-improvement.patch, 2.0 KB (added by mvyskocil, 13 years ago) |
---|
-
parrot.spec
old new 1 1 Name: parrot 2 2 Version: 1.0.0 3 Release: 1%{ dist}3 Release: 1%{?dist} 4 4 Summary: Parrot Virtual Machine 5 5 License: Artistic 2.0 6 6 Group: Development/Libraries 7 7 URL: http://www.parrot.org/ 8 8 Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 9 Patch0: parrot-1.0.0-rpath-removal.patch 9 10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 11 BuildRequires: readline-devel 11 12 BuildRequires: ncurses-devel 12 13 BuildRequires: gmp-devel 13 14 BuildRequires: gdbm-devel 14 15 BuildRequires: libicu-devel 16 %if ! 0%{?suse_version} 15 17 BuildRequires: perl-Test-Harness 18 %endif 16 19 17 20 %package docs 18 21 Summary: Parrot Virtual Machine documentation 19 22 License: Artistic 2.0 20 23 Group: Development/Libraries 24 %if ! 0%{?suse_version} 21 25 BuildRequires: /usr/bin/perldoc 26 %endif 22 27 23 28 %package devel 24 29 Summary: Parrot Virtual Machine development headers and libraries 25 30 License: Artistic 2.0 26 31 Group: Development/Libraries 27 32 Requires: %{name} = %{version}-%{release} 33 %if ! 0%{?suse_version} 28 34 Requires: %{_libdir}/pkgconfig 35 %endif 29 36 30 37 %description 31 38 Parrot is a virtual machine designed to efficiently compile and execute … … 46 53 src/library.c 47 54 %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 48 55 tools/dev/install_files.pl 56 %patch0 -b .rpath 49 57 50 58 %build 51 59 if test "%{_vendor}" = "suse" … … 56 64 fi 57 65 58 66 %ifarch i386 x86_64 67 RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` 59 68 %{__perl} Configure.pl \ 60 69 --prefix=%{_usr} \ 61 70 --libdir=%{_libdir} \ … … 150 159 %{_libdir}/pkgconfig/* 151 160 152 161 %changelog 162 * Thu Mar 19 2009 Michal Vyskocil <mvyskocil@suse.cz> 1.0.0 163 - improved for SUSE 164 - removed an RPATH during build 165 153 166 * Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 154 167 - updated to 1.0.0 155 168