Ticket #270: parrotspec.patch
| File parrotspec.patch, 4.1 KB (added by wayland, 4 years ago) |
|---|
-
parrot/parrot.spec
11 11 BuildRequires: ncurses-devel 12 12 BuildRequires: gmp-devel 13 13 BuildRequires: gdbm-devel 14 BuildRequires: /usr/bin/perldoc15 14 BuildRequires: libicu-devel 15 Provides: perl(Parrot::Pmc2c::PCCMETHOD_BITS) 16 Provides: perl(Parrot::Pmc2c::MethodEmitter) 17 Provides: perl(Parrot::Pmc2c::PMCEmitter) 16 18 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 26 Summary: Parrot Virtual Machine documentation 19 27 License: Artistic 2.0 20 28 Group: Development/Libraries 29 BuildRequires: /usr/bin/perldoc 21 30 22 31 %package devel 23 32 Summary: Parrot Virtual Machine development headers and libraries … … 31 40 bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 32 41 as well as variety of other languages. 33 42 34 %description languages 35 High-level languages which run on the Parrot virtual machine. 43 %description docs 44 Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 45 examples about the Parrot Virtual Machine 36 46 37 47 %description devel 38 48 Parrot Virtual Machine development headers and libraries. … … 47 57 tools/dev/mk_manifests.pl 48 58 49 59 %build 60 if test "%{_vendor}" = "suse" 61 then 62 LIBS='-lncurses -lm' 63 else 64 LIBS='-lcurses -lm' 65 fi 66 %ifarch x86_64 67 RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` 68 %endif 50 69 %{__perl} Configure.pl \ 51 70 --prefix=%{_usr} \ 52 71 --libdir=%{_libdir} \ … … 59 78 --parrot_is_shared \ 60 79 --lex=/usr/bin/flex \ 61 80 --yacc=/usr/bin/yacc \ 62 --libs= '-lcurses -lm'81 --libs="$LIBS" 63 82 64 83 export LD_LIBRARY_PATH=$( pwd )/blib/lib 65 84 make 66 make languages 67 make perl6 85 make compilers 68 86 make parrot_utils 69 87 make installable 70 88 make html … … 73 91 rm -rf $RPM_BUILD_ROOT 74 92 75 93 export LD_LIBRARY_PATH=$( pwd )/blib/lib 76 make install DESTDIR=$RPM_BUILD_ROOT94 make install-dev DESTDIR=$RPM_BUILD_ROOT 77 95 78 96 # Drop the docs so rpm can pick them up itself. 79 97 rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot … … 88 106 89 107 # These files *probably* aren't needed. 90 108 rm -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 94 113 95 114 %check 96 115 export LD_LIBRARY_PATH=$( pwd )/blib/lib … … 108 127 109 128 %files 110 129 %defattr(-,root,root,-) 111 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README112 %doc RESPONSIBLE_PARTIES TODO113 %doc docs examples114 130 %exclude %{_bindir}/parrot_config 115 %exclude %{_bindir}/perl6116 131 %exclude %{_bindir}/parrot_debugger 117 132 %exclude %{_bindir}/pbc_* 118 133 %{_bindir}/* 134 135 %exclude %{parrotlib}/languages 119 136 %{_libdir}/parrot 137 120 138 %{_libdir}/libparrot.so.* 121 %{_usr}/compilers122 139 123 %files languages140 %files docs 124 141 %defattr(-,root,root,-) 125 % {_bindir}/perl6126 % {_usr}/languages127 % {_usr}/runtime142 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 143 %doc RESPONSIBLE_PARTIES TODO 144 %doc docs examples 128 145 129 146 %files devel 130 147 %defattr(-,root,root,-) … … 139 156 %{_libdir}/libparrot.so 140 157 %{_libdir}/libparrot.a 141 158 %{_libdir}/pkgconfig/* 159 %{parrotlib}/languages 160 %{_usrsrc}/%{name}/%{version}-devel/ 142 161 143 162 %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 144 172 * Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 145 173 - added make installable, perl6 is still not installable 146 174 - added parrot_utils to devel
