Ticket #474: parrot-spec-suse-improvement.patch

File parrot-spec-suse-improvement.patch, 2.0 KB (added by mvyskocil, 6 years ago)

This patch improves a spec file for SUSE

  • parrot.spec

    old new  
    11Name:           parrot 
    22Version:        1.0.0 
    3 Release:        1%{dist} 
     3Release:        1%{?dist} 
    44Summary:        Parrot Virtual Machine 
    55License:        Artistic 2.0 
    66Group:          Development/Libraries 
    77URL:            http://www.parrot.org/ 
    88Source0:        ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 
     9Patch0:         parrot-1.0.0-rpath-removal.patch 
    910BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
    1011BuildRequires:  readline-devel 
    1112BuildRequires:  ncurses-devel 
    1213BuildRequires:  gmp-devel 
    1314BuildRequires:  gdbm-devel 
    1415BuildRequires:  libicu-devel 
     16%if ! 0%{?suse_version} 
    1517BuildRequires:  perl-Test-Harness 
     18%endif 
    1619 
    1720%package docs 
    1821Summary:        Parrot Virtual Machine documentation 
    1922License:        Artistic 2.0 
    2023Group:          Development/Libraries 
     24%if ! 0%{?suse_version} 
    2125BuildRequires:  /usr/bin/perldoc 
     26%endif 
    2227 
    2328%package devel 
    2429Summary:        Parrot Virtual Machine development headers and libraries 
    2530License:        Artistic 2.0 
    2631Group:          Development/Libraries 
    2732Requires:       %{name} = %{version}-%{release} 
     33%if ! 0%{?suse_version} 
    2834Requires:       %{_libdir}/pkgconfig 
     35%endif 
    2936 
    3037%description 
    3138Parrot is a virtual machine designed to efficiently compile and execute 
     
    4653    src/library.c 
    4754%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 
    4855    tools/dev/install_files.pl 
     56%patch0 -b .rpath 
    4957 
    5058%build 
    5159if test "%{_vendor}" = "suse" 
     
    5664fi 
    5765 
    5866%ifarch i386 x86_64 
     67        RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` 
    5968%{__perl} Configure.pl \ 
    6069    --prefix=%{_usr} \ 
    6170    --libdir=%{_libdir} \ 
     
    150159%{_libdir}/pkgconfig/* 
    151160 
    152161%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 
    153166* Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 
    154167- updated to 1.0.0 
    155168