--- parrot.spec.old 2009-03-17 23:21:02.000000000 +0100 +++ parrot.spec 2009-03-19 10:25:03.449848609 +0100 @@ -1,31 +1,38 @@ Name: parrot Version: 1.0.0 -Release: 1%{dist} +Release: 1%{?dist} Summary: Parrot Virtual Machine License: Artistic 2.0 Group: Development/Libraries URL: http://www.parrot.org/ Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz +Patch0: parrot-1.0.0-rpath-removal.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: readline-devel BuildRequires: ncurses-devel BuildRequires: gmp-devel BuildRequires: gdbm-devel BuildRequires: libicu-devel +%if ! 0%{?suse_version} BuildRequires: perl-Test-Harness +%endif %package docs Summary: Parrot Virtual Machine documentation License: Artistic 2.0 Group: Development/Libraries +%if ! 0%{?suse_version} BuildRequires: /usr/bin/perldoc +%endif %package devel Summary: Parrot Virtual Machine development headers and libraries License: Artistic 2.0 Group: Development/Libraries Requires: %{name} = %{version}-%{release} +%if ! 0%{?suse_version} Requires: %{_libdir}/pkgconfig +%endif %description Parrot is a virtual machine designed to efficiently compile and execute @@ -46,6 +53,7 @@ src/library.c %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ tools/dev/install_files.pl +%patch0 -b .rpath %build if test "%{_vendor}" = "suse" @@ -56,6 +64,7 @@ fi %ifarch i386 x86_64 + RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` %{__perl} Configure.pl \ --prefix=%{_usr} \ --libdir=%{_libdir} \ @@ -150,6 +159,10 @@ %{_libdir}/pkgconfig/* %changelog +* Thu Mar 19 2009 Michal Vyskocil 1.0.0 +- improved for SUSE +- removed an RPATH during build + * Tue Mar 17 2009 Allison Randal 1.0.0 - updated to 1.0.0