Ticket #270: parrotspec.patch

File parrotspec.patch, 4.1 KB (added by wayland, 5 years ago)

Updated patch to spec file

  • parrot/parrot.spec

     
    1111BuildRequires:  ncurses-devel 
    1212BuildRequires:  gmp-devel 
    1313BuildRequires:  gdbm-devel 
    14 BuildRequires:  /usr/bin/perldoc 
    1514BuildRequires:  libicu-devel 
     15Provides:       perl(Parrot::Pmc2c::PCCMETHOD_BITS) 
     16Provides:       perl(Parrot::Pmc2c::MethodEmitter) 
     17Provides:       perl(Parrot::Pmc2c::PMCEmitter) 
    1618 
    17 %package languages 
    18 Summary:        Parrot Virtual Machine languages 
     19%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0) 
     20%if %is_suse 
     21%define _docdir %{_usr}/share/doc 
     22%endif 
     23%define parrotlib %{_libdir}/parrot/%{version}-devel/ 
     24 
     25%package docs 
     26Summary:        Parrot Virtual Machine documentation 
    1927License:        Artistic 2.0 
    2028Group:          Development/Libraries 
     29BuildRequires:  /usr/bin/perldoc 
    2130 
    2231%package devel 
    2332Summary:        Parrot Virtual Machine development headers and libraries 
     
    3140bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 
    3241as well as variety of other languages. 
    3342 
    34 %description languages 
    35 High-level languages which run on the Parrot virtual machine. 
     43%description docs 
     44Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 
     45examples about the Parrot Virtual Machine 
    3646 
    3747%description devel 
    3848Parrot Virtual Machine development headers and libraries. 
     
    4757    tools/dev/mk_manifests.pl 
    4858 
    4959%build 
     60if test "%{_vendor}" = "suse" 
     61then 
     62    LIBS='-lncurses -lm' 
     63else 
     64    LIBS='-lcurses -lm' 
     65fi 
     66%ifarch x86_64 
     67        RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` 
     68%endif 
    5069%{__perl} Configure.pl \ 
    5170    --prefix=%{_usr} \ 
    5271    --libdir=%{_libdir} \ 
     
    5978    --parrot_is_shared \ 
    6079    --lex=/usr/bin/flex \ 
    6180    --yacc=/usr/bin/yacc \ 
    62     --libs='-lcurses -lm' 
     81    --libs="$LIBS" 
    6382 
    6483export LD_LIBRARY_PATH=$( pwd )/blib/lib 
    6584make 
    66 make languages 
    67 make perl6 
     85make compilers 
    6886make parrot_utils 
    6987make installable 
    7088make html 
     
    7391rm -rf $RPM_BUILD_ROOT 
    7492 
    7593export LD_LIBRARY_PATH=$( pwd )/blib/lib 
    76 make install DESTDIR=$RPM_BUILD_ROOT 
     94make install-dev DESTDIR=$RPM_BUILD_ROOT 
    7795 
    7896# Drop the docs so rpm can pick them up itself. 
    7997rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot 
     
    88106 
    89107# These files *probably* aren't needed. 
    90108rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 
    91     $RPM_BUILD_ROOT%{_includedir}/src \ 
    92     $RPM_BUILD_ROOT%{_usr}/src \ 
    93     $RPM_BUILD_ROOT%{_usr}/tools 
     109    $RPM_BUILD_ROOT%{_includedir}/src 
     110# Don't add the following to the list of unneeded above, as they're needed to build rakudo 
     111#    $RPM_BUILD_ROOT%{_usr}/src 
     112#    $RPM_BUILD_ROOT%{_usr}/tools 
    94113 
    95114%check 
    96115export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     
    108127 
    109128%files 
    110129%defattr(-,root,root,-) 
    111 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
    112 %doc RESPONSIBLE_PARTIES TODO 
    113 %doc docs examples 
    114130%exclude %{_bindir}/parrot_config 
    115 %exclude %{_bindir}/perl6 
    116131%exclude %{_bindir}/parrot_debugger 
    117132%exclude %{_bindir}/pbc_* 
    118133%{_bindir}/* 
     134 
     135%exclude %{parrotlib}/languages 
    119136%{_libdir}/parrot 
     137 
    120138%{_libdir}/libparrot.so.* 
    121 %{_usr}/compilers 
    122139 
    123 %files languages 
     140%files docs 
    124141%defattr(-,root,root,-) 
    125 %{_bindir}/perl6 
    126 %{_usr}/languages 
    127 %{_usr}/runtime 
     142%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
     143%doc RESPONSIBLE_PARTIES TODO 
     144%doc docs examples 
    128145 
    129146%files devel 
    130147%defattr(-,root,root,-) 
     
    139156%{_libdir}/libparrot.so 
    140157%{_libdir}/libparrot.a 
    141158%{_libdir}/pkgconfig/* 
     159%{parrotlib}/languages 
     160%{_usrsrc}/%{name}/%{version}-devel/ 
    142161 
    143162%changelog 
     163* Wed Mar 11 2009 Tim Nelson <wayland@wayland.id.au> 0.9.1 
     164- Added some things that we provide, but that don't get picked up automatically by RPM 
     165- Added some development tools to the -devel package that are used in the Rakudo build process 
     166 
     167* Fri Feb 13 2009 Gerd Pokorra <pokorra@uni-siegen.de> 0.9.0 
     168- Removed the languages package, as we no longer intend to provide that 
     169- Added the docs package 
     170- Modified to work with SuSE 
     171 
    144172* Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 
    145173- added make installable, perl6 is still not installable 
    146174- added parrot_utils to devel