Ticket #503: parrot_separate_distros_spec.patch
File parrot_separate_distros_spec.patch, 25.8 KB (added by wayland, 13 years ago) |
---|
-
parrot.spec
1 Name: parrot2 Version: 1.0.03 Release: 1%{dist}4 Summary: Parrot Virtual Machine5 License: Artistic 2.06 Group: Development/Libraries7 URL: http://www.parrot.org/8 Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)10 BuildRequires: readline-devel11 BuildRequires: ncurses-devel12 BuildRequires: gmp-devel13 BuildRequires: gdbm-devel14 BuildRequires: libicu-devel15 BuildRequires: perl-Test-Harness16 17 %package docs18 Summary: Parrot Virtual Machine documentation19 License: Artistic 2.020 Group: Development/Libraries21 BuildRequires: /usr/bin/perldoc22 23 %package devel24 Summary: Parrot Virtual Machine development headers and libraries25 License: Artistic 2.026 Group: Development/Libraries27 Requires: %{name} = %{version}-%{release}28 Requires: %{_libdir}/pkgconfig29 30 %description31 Parrot is a virtual machine designed to efficiently compile and execute32 bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6,33 as well as variety of other languages.34 35 %description docs36 Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also37 examples about the Parrot Virtual Machine38 39 %description devel40 Parrot Virtual Machine development headers and libraries.41 42 %prep43 %setup -q44 45 %{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \46 src/library.c47 %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \48 tools/dev/install_files.pl49 50 %build51 if test "%{_vendor}" = "suse"52 then53 LIBS='-lncurses -lm'54 else55 LIBS='-lcurses -lm'56 fi57 58 %ifarch i386 x86_6459 %{__perl} Configure.pl \60 --prefix=%{_usr} \61 --libdir=%{_libdir} \62 --sysconfdir=%{_sysconfdir} \63 --infodir=%{_datadir}/info \64 --mandir=%{_mandir} \65 --cc="%{__cc}" \66 --cxx=%{__cxx} \67 --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \68 --parrot_is_shared \69 --lex=/usr/bin/flex \70 --yacc=/usr/bin/yacc \71 --libs="$LIBS"72 %else73 # PowerPC74 %{__perl} Configure.pl \75 --prefix=%{_usr} \76 --libdir=%{_libdir}77 %endif78 79 export LD_LIBRARY_PATH=$( pwd )/blib/lib80 make81 make parrot_utils82 make installable83 make html84 85 %install86 rm -rf $RPM_BUILD_ROOT87 88 export LD_LIBRARY_PATH=$( pwd )/blib/lib89 make install DESTDIR=$RPM_BUILD_ROOT90 91 # Drop the docs so rpm can pick them up itself.92 rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE93 #rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris?94 95 # Force permissions on doc directories.96 find docs examples -type d -exec chmod 755 {} \;97 find docs examples -type f -exec chmod 644 {} \;98 99 # Force permissions on shared libs so they get stripped.100 find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \101 -exec chmod 755 {} \;102 103 # These files *probably* aren't needed.104 rm -rf $RPM_BUILD_ROOT%{_usr}/config \105 $RPM_BUILD_ROOT%{_includedir}/src \106 $RPM_BUILD_ROOT%{_usr}/src \107 $RPM_BUILD_ROOT%{_usr}/tools108 109 %check110 export LD_LIBRARY_PATH=$( pwd )/blib/lib111 # make test < /dev/null112 # %{?_with_fulltest:make fulltest < /dev/null}113 # make test || :114 # %{?_with_fulltest:make fulltest || :}115 116 %clean117 rm -rf $RPM_BUILD_ROOT118 119 %post -p /sbin/ldconfig120 121 %postun -p /sbin/ldconfig122 123 %files124 %defattr(-,root,root,-)125 %exclude %{_bindir}/parrot_config126 %exclude %{_bindir}/parrot_debugger127 %exclude %{_bindir}/pbc_*128 %{_bindir}/*129 %{_libdir}/parrot130 %{_libdir}/libparrot.so.*131 132 %files docs133 %defattr(-,root,root,-)134 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README135 %doc RESPONSIBLE_PARTIES TODO136 %doc docs examples137 138 %files devel139 %defattr(-,root,root,-)140 %{_bindir}/parrot_config141 %{_bindir}/parrot_debugger142 %{_bindir}/pbc_disassemble143 %{_bindir}/pbc_info144 %{_bindir}/pbc_merge145 %{_bindir}/pbc_to_exe146 %{_bindir}/pbc_dump147 %{_includedir}/parrot148 %{_libdir}/libparrot.so149 %{_libdir}/libparrot.a150 %{_libdir}/pkgconfig/*151 152 %changelog153 * Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0154 - updated to 1.0.0155 156 * Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0157 - added make installable, perl6 is still not installable158 - added parrot_utils to devel159 - fixed Source0 url160 161 * Tue Jan 23 2009 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0162 - added make html163 - make reallyinstall => make install164 165 * Tue Jan 20 2009 chromatic <chromatic@wgz.org> 0.9.0166 - updated to 0.9.0167 168 * Tue Dec 16 2008 Whiteknight <wknight8111@gmail.com> 0.8.2169 - updated to 0.8.2170 171 * Tue Nov 18 2008 chromatic <chromatic@parrot.org> 0.8.1172 - updated to 0.8.1173 174 * Tue Oct 21 2008 particle <particle@parrot.org> 0.8.0175 - updated to 0.8.0176 177 * Tue Sep 16 2008 pmichaud <pmichaud@pobox.com> 0.7.1178 - updated to 0.7.1179 180 * Wed Sep 3 2008 chromatic <chromatic@wgz.org> 0.7.0181 - install parrot_config (not parrot-config)182 183 * Tue Jun 17 2008 Nuno Carvalho <smash@cpan.org> 0.6.3184 - updated to 0.6.3185 186 * Tue May 20 2008 chromatic <chromatic@wgz.org>> 0.6.2187 - updated to 0.6.2188 189 * Mon Apr 28 2008 chromatic <chromatic@wgz.org> 0.6.1190 - minor fixes; tested with Fedora 7, 8, and 9-beta191 192 * Tue Mar 18 2008 Bernhard Schmalhofer <Bernhard.Schmalhofer@gmx.de> 0.6.0193 - Update to 0.5.3.194 195 * Wed Feb 20 2008 Patrick Michaud <pmichaud@pobox.com> 0.5.3196 - Update to 0.5.3.197 198 * Tue Jan 15 2008 Bob Rogers <rogers@rgrjr.dyndns.org> 0.5.2199 - Update to 0.5.2.200 201 * Tue Dec 18 2007 Jonathan Worthington <jnthn@jnthn.net> 0.5.1202 - Update to 0.5.1.203 204 * Tue Nov 20 2007 chromatic <chromatic@wgz.org> 0.5.0205 - Update to 0.5.0.206 207 * Fri May 25 2007 David Fetter <david@fetter.org> 0.4.12-1208 - Update to 0.4.12.209 210 * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.4.11-1211 - Update to 0.4.11.212 213 * Wed Mar 21 2007 Steven Pritchard <steve@kspei.com> 0.4.10-1214 - Update to 0.4.10.215 216 * Sat Mar 10 2007 Steven Pritchard <steve@kspei.com> 0.4.9-1217 - Update to 0.4.9.218 - BR ncurses-devel.219 - For some reason now I need to force -lm too.220 - Remove some files/directories that shouldn't be included.221 222 * Wed Jan 17 2007 Steven Pritchard <steve@kspei.com> 0.4.8-1223 - Attempt update to 0.4.8.224 225 * Fri Jun 30 2006 Steven Pritchard <steve@kspei.com> 0.4.5-5226 - Override lib_dir and make various substitutions to try to fix multilib.227 - Remove rpath use from Makefile.228 - Fix a pod error in src/ops/experimental.ops.229 - Enable "make test" since t/doc/pod.t won't fail now.230 231 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-4232 - Force permissions on shared libraries so rpmbuild strips them.233 234 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-3235 - Fix URL, description, summary, etc.236 - Add post/postun.237 - Move parrot-config to the devel sub-package.238 - Force permissions on the doc directories.239 240 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-2241 - Add -lcurses to get readline detection to work.242 - BR libicu-devel.243 244 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-1245 - Initial packaging attempt.246 247 * Tue Mar 18 2003 Steve Fink <sfink@foxglove.localdomain> 0.0.11248 - first .spec file created -
ports/suse/parrot.spec
1 Name: parrot 2 Version: 1.0.0 3 Release: 1%{dist} 4 Summary: Parrot Virtual Machine 5 License: Artistic 2.0 6 Group: Development/Libraries 7 URL: http://www.parrot.org/ 8 Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 BuildRequires: readline-devel 11 BuildRequires: ncurses-devel 12 BuildRequires: gmp-devel 13 BuildRequires: gdbm-devel 14 BuildRequires: libicu-devel 15 BuildRequires: perl-Test-Harness 16 17 %package docs 18 Summary: Parrot Virtual Machine documentation 19 License: Artistic 2.0 20 Group: Development/Libraries 21 BuildRequires: /usr/bin/perldoc 22 23 %package devel 24 Summary: Parrot Virtual Machine development headers and libraries 25 License: Artistic 2.0 26 Group: Development/Libraries 27 Requires: %{name} = %{version}-%{release} 28 Requires: %{_libdir}/pkgconfig 29 30 %description 31 Parrot is a virtual machine designed to efficiently compile and execute 32 bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 33 as well as variety of other languages. 34 35 %description docs 36 Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 37 examples about the Parrot Virtual Machine 38 39 %description devel 40 Parrot Virtual Machine development headers and libraries. 41 42 %prep 43 %setup -q 44 45 %{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 46 src/library.c 47 %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 48 tools/dev/install_files.pl 49 50 %build 51 52 %ifarch i386 x86_64 53 %{__perl} Configure.pl \ 54 --prefix=%{_usr} \ 55 --libdir=%{_libdir} \ 56 --sysconfdir=%{_sysconfdir} \ 57 --infodir=%{_datadir}/info \ 58 --mandir=%{_mandir} \ 59 --cc="%{__cc}" \ 60 --cxx=%{__cxx} \ 61 --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 62 --parrot_is_shared \ 63 --lex=/usr/bin/flex \ 64 --yacc=/usr/bin/yacc \ 65 --libs="-lncurses -lm" 66 %else 67 # PowerPC 68 %{__perl} Configure.pl \ 69 --prefix=%{_usr} \ 70 --libdir=%{_libdir} 71 %endif 72 73 export LD_LIBRARY_PATH=$( pwd )/blib/lib 74 make 75 make parrot_utils 76 make installable 77 make html 78 79 %install 80 rm -rf $RPM_BUILD_ROOT 81 82 export LD_LIBRARY_PATH=$( pwd )/blib/lib 83 make install DESTDIR=$RPM_BUILD_ROOT 84 85 # Drop the docs so rpm can pick them up itself. 86 rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE 87 #rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris? 88 89 # Force permissions on doc directories. 90 find docs examples -type d -exec chmod 755 {} \; 91 find docs examples -type f -exec chmod 644 {} \; 92 93 # Force permissions on shared libs so they get stripped. 94 find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 95 -exec chmod 755 {} \; 96 97 # These files *probably* aren't needed. 98 rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 99 $RPM_BUILD_ROOT%{_includedir}/src \ 100 $RPM_BUILD_ROOT%{_usr}/src \ 101 $RPM_BUILD_ROOT%{_usr}/tools 102 103 %check 104 export LD_LIBRARY_PATH=$( pwd )/blib/lib 105 # make test < /dev/null 106 # %{?_with_fulltest:make fulltest < /dev/null} 107 # make test || : 108 # %{?_with_fulltest:make fulltest || :} 109 110 %clean 111 rm -rf $RPM_BUILD_ROOT 112 113 %post -p /sbin/ldconfig 114 115 %postun -p /sbin/ldconfig 116 117 %files 118 %defattr(-,root,root,-) 119 %exclude %{_bindir}/parrot_config 120 %exclude %{_bindir}/parrot_debugger 121 %exclude %{_bindir}/pbc_* 122 %{_bindir}/* 123 %{_libdir}/parrot 124 %{_libdir}/libparrot.so.* 125 126 %files docs 127 %defattr(-,root,root,-) 128 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 129 %doc RESPONSIBLE_PARTIES TODO 130 %doc docs examples 131 132 %files devel 133 %defattr(-,root,root,-) 134 %{_bindir}/parrot_config 135 %{_bindir}/parrot_debugger 136 %{_bindir}/pbc_disassemble 137 %{_bindir}/pbc_info 138 %{_bindir}/pbc_merge 139 %{_bindir}/pbc_to_exe 140 %{_bindir}/pbc_dump 141 %{_includedir}/parrot 142 %{_libdir}/libparrot.so 143 %{_libdir}/libparrot.a 144 %{_libdir}/pkgconfig/* 145 146 %changelog 147 * Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 148 - updated to 1.0.0 149 150 * Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 151 - added make installable, perl6 is still not installable 152 - added parrot_utils to devel 153 - fixed Source0 url 154 155 * Tue Jan 23 2009 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0 156 - added make html 157 - make reallyinstall => make install 158 159 * Tue Jan 20 2009 chromatic <chromatic@wgz.org> 0.9.0 160 - updated to 0.9.0 161 162 * Tue Dec 16 2008 Whiteknight <wknight8111@gmail.com> 0.8.2 163 - updated to 0.8.2 164 165 * Tue Nov 18 2008 chromatic <chromatic@parrot.org> 0.8.1 166 - updated to 0.8.1 167 168 * Tue Oct 21 2008 particle <particle@parrot.org> 0.8.0 169 - updated to 0.8.0 170 171 * Tue Sep 16 2008 pmichaud <pmichaud@pobox.com> 0.7.1 172 - updated to 0.7.1 173 174 * Wed Sep 3 2008 chromatic <chromatic@wgz.org> 0.7.0 175 - install parrot_config (not parrot-config) 176 177 * Tue Jun 17 2008 Nuno Carvalho <smash@cpan.org> 0.6.3 178 - updated to 0.6.3 179 180 * Tue May 20 2008 chromatic <chromatic@wgz.org>> 0.6.2 181 - updated to 0.6.2 182 183 * Mon Apr 28 2008 chromatic <chromatic@wgz.org> 0.6.1 184 - minor fixes; tested with Fedora 7, 8, and 9-beta 185 186 * Tue Mar 18 2008 Bernhard Schmalhofer <Bernhard.Schmalhofer@gmx.de> 0.6.0 187 - Update to 0.5.3. 188 189 * Wed Feb 20 2008 Patrick Michaud <pmichaud@pobox.com> 0.5.3 190 - Update to 0.5.3. 191 192 * Tue Jan 15 2008 Bob Rogers <rogers@rgrjr.dyndns.org> 0.5.2 193 - Update to 0.5.2. 194 195 * Tue Dec 18 2007 Jonathan Worthington <jnthn@jnthn.net> 0.5.1 196 - Update to 0.5.1. 197 198 * Tue Nov 20 2007 chromatic <chromatic@wgz.org> 0.5.0 199 - Update to 0.5.0. 200 201 * Fri May 25 2007 David Fetter <david@fetter.org> 0.4.12-1 202 - Update to 0.4.12. 203 204 * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.4.11-1 205 - Update to 0.4.11. 206 207 * Wed Mar 21 2007 Steven Pritchard <steve@kspei.com> 0.4.10-1 208 - Update to 0.4.10. 209 210 * Sat Mar 10 2007 Steven Pritchard <steve@kspei.com> 0.4.9-1 211 - Update to 0.4.9. 212 - BR ncurses-devel. 213 - For some reason now I need to force -lm too. 214 - Remove some files/directories that shouldn't be included. 215 216 * Wed Jan 17 2007 Steven Pritchard <steve@kspei.com> 0.4.8-1 217 - Attempt update to 0.4.8. 218 219 * Fri Jun 30 2006 Steven Pritchard <steve@kspei.com> 0.4.5-5 220 - Override lib_dir and make various substitutions to try to fix multilib. 221 - Remove rpath use from Makefile. 222 - Fix a pod error in src/ops/experimental.ops. 223 - Enable "make test" since t/doc/pod.t won't fail now. 224 225 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-4 226 - Force permissions on shared libraries so rpmbuild strips them. 227 228 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-3 229 - Fix URL, description, summary, etc. 230 - Add post/postun. 231 - Move parrot-config to the devel sub-package. 232 - Force permissions on the doc directories. 233 234 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-2 235 - Add -lcurses to get readline detection to work. 236 - BR libicu-devel. 237 238 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-1 239 - Initial packaging attempt. 240 241 * Tue Mar 18 2003 Steve Fink <sfink@foxglove.localdomain> 0.0.11 242 - first .spec file created -
ports/fedora/parrot.spec
1 Name: parrot 2 Version: 1.0.0 3 Release: 1%{dist} 4 Summary: Parrot Virtual Machine 5 License: Artistic 2.0 6 Group: Development/Libraries 7 URL: http://www.parrot.org/ 8 Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10 BuildRequires: readline-devel 11 BuildRequires: ncurses-devel 12 BuildRequires: gmp-devel 13 BuildRequires: gdbm-devel 14 BuildRequires: libicu-devel 15 BuildRequires: perl-Test-Harness 16 17 %package docs 18 Summary: Parrot Virtual Machine documentation 19 License: Artistic 2.0 20 Group: Development/Libraries 21 BuildRequires: /usr/bin/perldoc 22 23 %package devel 24 Summary: Parrot Virtual Machine development headers and libraries 25 License: Artistic 2.0 26 Group: Development/Libraries 27 Requires: %{name} = %{version}-%{release} 28 Requires: %{_libdir}/pkgconfig 29 30 %description 31 Parrot is a virtual machine designed to efficiently compile and execute 32 bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 33 as well as variety of other languages. 34 35 %description docs 36 Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 37 examples about the Parrot Virtual Machine 38 39 %description devel 40 Parrot Virtual Machine development headers and libraries. 41 42 %prep 43 %setup -q 44 45 %{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 46 src/library.c 47 %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 48 tools/dev/install_files.pl 49 50 %build 51 52 %ifarch i386 x86_64 53 %{__perl} Configure.pl \ 54 --prefix=%{_usr} \ 55 --libdir=%{_libdir} \ 56 --sysconfdir=%{_sysconfdir} \ 57 --infodir=%{_datadir}/info \ 58 --mandir=%{_mandir} \ 59 --cc="%{__cc}" \ 60 --cxx=%{__cxx} \ 61 --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 62 --parrot_is_shared \ 63 --lex=/usr/bin/flex \ 64 --yacc=/usr/bin/yacc \ 65 --libs="-lcurses -lm" 66 %else 67 # PowerPC 68 %{__perl} Configure.pl \ 69 --prefix=%{_usr} \ 70 --libdir=%{_libdir} 71 %endif 72 73 export LD_LIBRARY_PATH=$( pwd )/blib/lib 74 make 75 make parrot_utils 76 make installable 77 make html 78 79 %install 80 rm -rf $RPM_BUILD_ROOT 81 82 export LD_LIBRARY_PATH=$( pwd )/blib/lib 83 make install DESTDIR=$RPM_BUILD_ROOT 84 85 # Drop the docs so rpm can pick them up itself. 86 rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE 87 #rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris? 88 89 # Force permissions on doc directories. 90 find docs examples -type d -exec chmod 755 {} \; 91 find docs examples -type f -exec chmod 644 {} \; 92 93 # Force permissions on shared libs so they get stripped. 94 find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 95 -exec chmod 755 {} \; 96 97 # These files *probably* aren't needed. 98 rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 99 $RPM_BUILD_ROOT%{_includedir}/src \ 100 $RPM_BUILD_ROOT%{_usr}/src \ 101 $RPM_BUILD_ROOT%{_usr}/tools 102 103 %check 104 export LD_LIBRARY_PATH=$( pwd )/blib/lib 105 # make test < /dev/null 106 # %{?_with_fulltest:make fulltest < /dev/null} 107 # make test || : 108 # %{?_with_fulltest:make fulltest || :} 109 110 %clean 111 rm -rf $RPM_BUILD_ROOT 112 113 %post -p /sbin/ldconfig 114 115 %postun -p /sbin/ldconfig 116 117 %files 118 %defattr(-,root,root,-) 119 %exclude %{_bindir}/parrot_config 120 %exclude %{_bindir}/parrot_debugger 121 %exclude %{_bindir}/pbc_* 122 %{_bindir}/* 123 %{_libdir}/parrot 124 %{_libdir}/libparrot.so.* 125 126 %files docs 127 %defattr(-,root,root,-) 128 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 129 %doc RESPONSIBLE_PARTIES TODO 130 %doc docs examples 131 132 %files devel 133 %defattr(-,root,root,-) 134 %{_bindir}/parrot_config 135 %{_bindir}/parrot_debugger 136 %{_bindir}/pbc_disassemble 137 %{_bindir}/pbc_info 138 %{_bindir}/pbc_merge 139 %{_bindir}/pbc_to_exe 140 %{_bindir}/pbc_dump 141 %{_includedir}/parrot 142 %{_libdir}/libparrot.so 143 %{_libdir}/libparrot.a 144 %{_libdir}/pkgconfig/* 145 146 %changelog 147 * Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 148 - updated to 1.0.0 149 150 * Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 151 - added make installable, perl6 is still not installable 152 - added parrot_utils to devel 153 - fixed Source0 url 154 155 * Tue Jan 23 2009 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0 156 - added make html 157 - make reallyinstall => make install 158 159 * Tue Jan 20 2009 chromatic <chromatic@wgz.org> 0.9.0 160 - updated to 0.9.0 161 162 * Tue Dec 16 2008 Whiteknight <wknight8111@gmail.com> 0.8.2 163 - updated to 0.8.2 164 165 * Tue Nov 18 2008 chromatic <chromatic@parrot.org> 0.8.1 166 - updated to 0.8.1 167 168 * Tue Oct 21 2008 particle <particle@parrot.org> 0.8.0 169 - updated to 0.8.0 170 171 * Tue Sep 16 2008 pmichaud <pmichaud@pobox.com> 0.7.1 172 - updated to 0.7.1 173 174 * Wed Sep 3 2008 chromatic <chromatic@wgz.org> 0.7.0 175 - install parrot_config (not parrot-config) 176 177 * Tue Jun 17 2008 Nuno Carvalho <smash@cpan.org> 0.6.3 178 - updated to 0.6.3 179 180 * Tue May 20 2008 chromatic <chromatic@wgz.org>> 0.6.2 181 - updated to 0.6.2 182 183 * Mon Apr 28 2008 chromatic <chromatic@wgz.org> 0.6.1 184 - minor fixes; tested with Fedora 7, 8, and 9-beta 185 186 * Tue Mar 18 2008 Bernhard Schmalhofer <Bernhard.Schmalhofer@gmx.de> 0.6.0 187 - Update to 0.5.3. 188 189 * Wed Feb 20 2008 Patrick Michaud <pmichaud@pobox.com> 0.5.3 190 - Update to 0.5.3. 191 192 * Tue Jan 15 2008 Bob Rogers <rogers@rgrjr.dyndns.org> 0.5.2 193 - Update to 0.5.2. 194 195 * Tue Dec 18 2007 Jonathan Worthington <jnthn@jnthn.net> 0.5.1 196 - Update to 0.5.1. 197 198 * Tue Nov 20 2007 chromatic <chromatic@wgz.org> 0.5.0 199 - Update to 0.5.0. 200 201 * Fri May 25 2007 David Fetter <david@fetter.org> 0.4.12-1 202 - Update to 0.4.12. 203 204 * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.4.11-1 205 - Update to 0.4.11. 206 207 * Wed Mar 21 2007 Steven Pritchard <steve@kspei.com> 0.4.10-1 208 - Update to 0.4.10. 209 210 * Sat Mar 10 2007 Steven Pritchard <steve@kspei.com> 0.4.9-1 211 - Update to 0.4.9. 212 - BR ncurses-devel. 213 - For some reason now I need to force -lm too. 214 - Remove some files/directories that shouldn't be included. 215 216 * Wed Jan 17 2007 Steven Pritchard <steve@kspei.com> 0.4.8-1 217 - Attempt update to 0.4.8. 218 219 * Fri Jun 30 2006 Steven Pritchard <steve@kspei.com> 0.4.5-5 220 - Override lib_dir and make various substitutions to try to fix multilib. 221 - Remove rpath use from Makefile. 222 - Fix a pod error in src/ops/experimental.ops. 223 - Enable "make test" since t/doc/pod.t won't fail now. 224 225 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-4 226 - Force permissions on shared libraries so rpmbuild strips them. 227 228 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-3 229 - Fix URL, description, summary, etc. 230 - Add post/postun. 231 - Move parrot-config to the devel sub-package. 232 - Force permissions on the doc directories. 233 234 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-2 235 - Add -lcurses to get readline detection to work. 236 - BR libicu-devel. 237 238 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-1 239 - Initial packaging attempt. 240 241 * Tue Mar 18 2003 Steve Fink <sfink@foxglove.localdomain> 0.0.11 242 - first .spec file created -
ports/mandriva/parrot.spec
1 %define name parrot 2 %define version 0.9.1 3 %define release %mkrel 2 4 5 %define libname %mklibname %{name} 6 %define libname_devel %mklibname -d %{name} 7 8 Summary: Parrot Virtual Machine 9 Name: %name 10 Version: %version 11 Release: %release 12 Source0: ftp://ftp.parrot.org/pub/parrot/releases/devel/%{version}/%{name}-%{version}.tar.gz 13 License: Artistic 2.0 14 Group: Development/Perl 15 Url: http://www.parrot.org/ 16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot 17 BuildRequires: readline-devel 18 BuildRequires: ncurses-devel 19 BuildRequires: gmp-devel 20 BuildRequires: gdbm-devel 21 BuildRequires: perl-doc 22 BuildRequires: libicu-devel 23 24 %description 25 Parrot is a virtual machine designed to efficiently compile and execute 26 bytecode for interpreted languages. Parrot will be the target for the final 27 Perl 6 compiler, and is already usable as a backend for Pugs, as well as 28 variety of other languages 29 30 #-- 31 32 %package -n %libname 33 Summary: Parrot Virtual Machine run time library 34 License: Artistic 2.0 35 Group: Development/Perl 36 Provides: lib%{name} = %{version}-%{release} 37 Requires: %{name} = %{version}-%{release} 38 Requires: %{_libdir}/pkgconfig 39 40 %description -n %libname 41 Run time library for %{name}. 42 43 #-- 44 45 %package -n %{name}-doc 46 Summary: Parrot Virtual Machine documentation 47 License: Artistic 2.0 48 Group: Development/Perl 49 50 %description -n %{name}-doc 51 Documentation for %{name}. 52 53 #-- 54 55 %package -n %libname_devel 56 Summary: Parrot Virtual Machine development headers and libraries 57 License: Artistic 2.0 58 Group: Development/Perl 59 Provides: %{name}-devel = %version-%release 60 Requires: %libname = %version 61 62 %description -n %libname_devel 63 Development files for %{name}. 64 65 %prep 66 %setup -q 67 68 %{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 69 src/library.c 70 %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 71 tools/dev/install_files.pl \ 72 tools/dev/mk_manifest_and_skip.pl 73 74 %build 75 %{__perl} Configure.pl \ 76 --prefix=%{_usr} \ 77 --libdir=%{_libdir} \ 78 --sysconfdir=%{_sysconfdir} \ 79 --infodir=%{_datadir}/info \ 80 --mandir=%{_mandir} \ 81 --cc="%{__cc}" \ 82 --cxx=%{__cxx} \ 83 --parrot_is_shared \ 84 --lex=/usr/bin/flex \ 85 --yacc=/usr/bin/yacc \ 86 --libs='-lcurses -lm' 87 88 # the following Configure.pl flag makes the compile goes boom 89 #--optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 90 91 make 92 export LD_LIBRARY_PATH=$( pwd )/blib/lib 93 make languages 94 make parrot_utils 95 make installable 96 make html 97 98 99 %install 100 rm -rf $RPM_BUILD_ROOT 101 102 export LD_LIBRARY_PATH=$( pwd )/blib/lib 103 make install DESTDIR=$RPM_BUILD_ROOT 104 105 # Drop the docs so rpm can pick them up itself. 106 rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot 107 108 # Force permissions on doc directories. 109 find docs examples -type d -exec chmod 755 {} \; 110 find docs examples -type f -exec chmod 644 {} \; 111 112 # Force permissions on shared libs so they get stripped. 113 find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 114 -exec chmod 755 {} \; 115 116 # These files *probably* aren't needed. 117 rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 118 $RPM_BUILD_ROOT%{_includedir}/src \ 119 $RPM_BUILD_ROOT%{_usr}/src \ 120 $RPM_BUILD_ROOT%{_usr}/tools 121 122 123 %check 124 export LD_LIBRARY_PATH=$( pwd )/blib/lib 125 #make test 126 127 %clean 128 rm -rf $RPM_BUILD_ROOT 129 130 %if %mdkversion < 200900 131 %post -n %libname -p /sbin/ldconfig 132 %endif 133 134 %if %mdkversion < 200900 135 %postun -n %libname -p /sbin/ldconfig 136 %endif 137 138 %files 139 %defattr(-,root,root,-) 140 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 141 %doc RESPONSIBLE_PARTIES TODO 142 %exclude %{_bindir}/parrot_config 143 %exclude %{_bindir}/parrot_debugger 144 %exclude %{_bindir}/pbc_* 145 %{_bindir}/* 146 147 %files -n %{name}-doc 148 %defattr(-,root,root,-) 149 %doc docs examples 150 151 %files -n %libname 152 %defattr(-,root,root,-) 153 %{_libdir}/parrot 154 %{_libdir}/*.so.* 155 156 %files -n %libname_devel 157 %defattr(-,root,root,-) 158 %{_bindir}/parrot_config 159 %{_bindir}/parrot_debugger 160 %{_bindir}/pbc_disassemble 161 %{_bindir}/pbc_info 162 %{_bindir}/pbc_merge 163 %{_bindir}/pbc_to_exe 164 %{_bindir}/pbc_dump 165 %{_includedir}/* 166 %{_libdir}/pkgconfig/* 167 %_libdir/*.so 168 %_libdir/*.a