Index: parrot.spec =================================================================== --- parrot.spec (revision 38158) +++ parrot.spec (working copy) @@ -1,248 +0,0 @@ -Name: parrot -Version: 1.0.0 -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 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: readline-devel -BuildRequires: ncurses-devel -BuildRequires: gmp-devel -BuildRequires: gdbm-devel -BuildRequires: libicu-devel -BuildRequires: perl-Test-Harness - -%package docs -Summary: Parrot Virtual Machine documentation -License: Artistic 2.0 -Group: Development/Libraries -BuildRequires: /usr/bin/perldoc - -%package devel -Summary: Parrot Virtual Machine development headers and libraries -License: Artistic 2.0 -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: %{_libdir}/pkgconfig - -%description -Parrot is a virtual machine designed to efficiently compile and execute -bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, -as well as variety of other languages. - -%description docs -Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also -examples about the Parrot Virtual Machine - -%description devel -Parrot Virtual Machine development headers and libraries. - -%prep -%setup -q - -%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ - src/library.c -%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ - tools/dev/install_files.pl - -%build -if test "%{_vendor}" = "suse" -then - LIBS='-lncurses -lm' -else - LIBS='-lcurses -lm' -fi - -%ifarch i386 x86_64 -%{__perl} Configure.pl \ - --prefix=%{_usr} \ - --libdir=%{_libdir} \ - --sysconfdir=%{_sysconfdir} \ - --infodir=%{_datadir}/info \ - --mandir=%{_mandir} \ - --cc="%{__cc}" \ - --cxx=%{__cxx} \ - --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ - --parrot_is_shared \ - --lex=/usr/bin/flex \ - --yacc=/usr/bin/yacc \ - --libs="$LIBS" -%else -# PowerPC -%{__perl} Configure.pl \ - --prefix=%{_usr} \ - --libdir=%{_libdir} -%endif - -export LD_LIBRARY_PATH=$( pwd )/blib/lib -make -make parrot_utils -make installable -make html - -%install -rm -rf $RPM_BUILD_ROOT - -export LD_LIBRARY_PATH=$( pwd )/blib/lib -make install DESTDIR=$RPM_BUILD_ROOT - -# Drop the docs so rpm can pick them up itself. -rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE -#rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris? - -# Force permissions on doc directories. -find docs examples -type d -exec chmod 755 {} \; -find docs examples -type f -exec chmod 644 {} \; - -# Force permissions on shared libs so they get stripped. -find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ - -exec chmod 755 {} \; - -# These files *probably* aren't needed. -rm -rf $RPM_BUILD_ROOT%{_usr}/config \ - $RPM_BUILD_ROOT%{_includedir}/src \ - $RPM_BUILD_ROOT%{_usr}/src \ - $RPM_BUILD_ROOT%{_usr}/tools - -%check -export LD_LIBRARY_PATH=$( pwd )/blib/lib -# make test < /dev/null -# %{?_with_fulltest:make fulltest < /dev/null} -# make test || : -# %{?_with_fulltest:make fulltest || :} - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%defattr(-,root,root,-) -%exclude %{_bindir}/parrot_config -%exclude %{_bindir}/parrot_debugger -%exclude %{_bindir}/pbc_* -%{_bindir}/* -%{_libdir}/parrot -%{_libdir}/libparrot.so.* - -%files docs -%defattr(-,root,root,-) -%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README -%doc RESPONSIBLE_PARTIES TODO -%doc docs examples - -%files devel -%defattr(-,root,root,-) -%{_bindir}/parrot_config -%{_bindir}/parrot_debugger -%{_bindir}/pbc_disassemble -%{_bindir}/pbc_info -%{_bindir}/pbc_merge -%{_bindir}/pbc_to_exe -%{_bindir}/pbc_dump -%{_includedir}/parrot -%{_libdir}/libparrot.so -%{_libdir}/libparrot.a -%{_libdir}/pkgconfig/* - -%changelog -* Tue Mar 17 2009 Allison Randal 1.0.0 -- updated to 1.0.0 - -* Tue Jan 23 2009 Reini Urban 0.9.0 -- added make installable, perl6 is still not installable -- added parrot_utils to devel -- fixed Source0 url - -* Tue Jan 23 2009 Gerd Pokorra 0.9.0 -- added make html -- make reallyinstall => make install - -* Tue Jan 20 2009 chromatic 0.9.0 -- updated to 0.9.0 - -* Tue Dec 16 2008 Whiteknight 0.8.2 -- updated to 0.8.2 - -* Tue Nov 18 2008 chromatic 0.8.1 -- updated to 0.8.1 - -* Tue Oct 21 2008 particle 0.8.0 -- updated to 0.8.0 - -* Tue Sep 16 2008 pmichaud 0.7.1 -- updated to 0.7.1 - -* Wed Sep 3 2008 chromatic 0.7.0 -- install parrot_config (not parrot-config) - -* Tue Jun 17 2008 Nuno Carvalho 0.6.3 -- updated to 0.6.3 - -* Tue May 20 2008 chromatic > 0.6.2 -- updated to 0.6.2 - -* Mon Apr 28 2008 chromatic 0.6.1 -- minor fixes; tested with Fedora 7, 8, and 9-beta - -* Tue Mar 18 2008 Bernhard Schmalhofer 0.6.0 -- Update to 0.5.3. - -* Wed Feb 20 2008 Patrick Michaud 0.5.3 -- Update to 0.5.3. - -* Tue Jan 15 2008 Bob Rogers 0.5.2 -- Update to 0.5.2. - -* Tue Dec 18 2007 Jonathan Worthington 0.5.1 -- Update to 0.5.1. - -* Tue Nov 20 2007 chromatic 0.5.0 -- Update to 0.5.0. - -* Fri May 25 2007 David Fetter 0.4.12-1 -- Update to 0.4.12. - -* Wed Apr 18 2007 Steven Pritchard 0.4.11-1 -- Update to 0.4.11. - -* Wed Mar 21 2007 Steven Pritchard 0.4.10-1 -- Update to 0.4.10. - -* Sat Mar 10 2007 Steven Pritchard 0.4.9-1 -- Update to 0.4.9. -- BR ncurses-devel. -- For some reason now I need to force -lm too. -- Remove some files/directories that shouldn't be included. - -* Wed Jan 17 2007 Steven Pritchard 0.4.8-1 -- Attempt update to 0.4.8. - -* Fri Jun 30 2006 Steven Pritchard 0.4.5-5 -- Override lib_dir and make various substitutions to try to fix multilib. -- Remove rpath use from Makefile. -- Fix a pod error in src/ops/experimental.ops. -- Enable "make test" since t/doc/pod.t won't fail now. - -* Wed Jun 28 2006 Steven Pritchard 0.4.5-4 -- Force permissions on shared libraries so rpmbuild strips them. - -* Wed Jun 28 2006 Steven Pritchard 0.4.5-3 -- Fix URL, description, summary, etc. -- Add post/postun. -- Move parrot-config to the devel sub-package. -- Force permissions on the doc directories. - -* Tue Jun 27 2006 Steven Pritchard 0.4.5-2 -- Add -lcurses to get readline detection to work. -- BR libicu-devel. - -* Tue Jun 27 2006 Steven Pritchard 0.4.5-1 -- Initial packaging attempt. - -* Tue Mar 18 2003 Steve Fink 0.0.11 -- first .spec file created Index: ports/suse/parrot.spec =================================================================== --- ports/suse/parrot.spec (revision 0) +++ ports/suse/parrot.spec (revision 0) @@ -0,0 +1,242 @@ +Name: parrot +Version: 1.0.0 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: readline-devel +BuildRequires: ncurses-devel +BuildRequires: gmp-devel +BuildRequires: gdbm-devel +BuildRequires: libicu-devel +BuildRequires: perl-Test-Harness + +%package docs +Summary: Parrot Virtual Machine documentation +License: Artistic 2.0 +Group: Development/Libraries +BuildRequires: /usr/bin/perldoc + +%package devel +Summary: Parrot Virtual Machine development headers and libraries +License: Artistic 2.0 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: %{_libdir}/pkgconfig + +%description +Parrot is a virtual machine designed to efficiently compile and execute +bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, +as well as variety of other languages. + +%description docs +Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also +examples about the Parrot Virtual Machine + +%description devel +Parrot Virtual Machine development headers and libraries. + +%prep +%setup -q + +%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ + src/library.c +%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ + tools/dev/install_files.pl + +%build + +%ifarch i386 x86_64 +%{__perl} Configure.pl \ + --prefix=%{_usr} \ + --libdir=%{_libdir} \ + --sysconfdir=%{_sysconfdir} \ + --infodir=%{_datadir}/info \ + --mandir=%{_mandir} \ + --cc="%{__cc}" \ + --cxx=%{__cxx} \ + --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ + --parrot_is_shared \ + --lex=/usr/bin/flex \ + --yacc=/usr/bin/yacc \ + --libs="-lncurses -lm" +%else +# PowerPC +%{__perl} Configure.pl \ + --prefix=%{_usr} \ + --libdir=%{_libdir} +%endif + +export LD_LIBRARY_PATH=$( pwd )/blib/lib +make +make parrot_utils +make installable +make html + +%install +rm -rf $RPM_BUILD_ROOT + +export LD_LIBRARY_PATH=$( pwd )/blib/lib +make install DESTDIR=$RPM_BUILD_ROOT + +# Drop the docs so rpm can pick them up itself. +rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE +#rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris? + +# Force permissions on doc directories. +find docs examples -type d -exec chmod 755 {} \; +find docs examples -type f -exec chmod 644 {} \; + +# Force permissions on shared libs so they get stripped. +find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ + -exec chmod 755 {} \; + +# These files *probably* aren't needed. +rm -rf $RPM_BUILD_ROOT%{_usr}/config \ + $RPM_BUILD_ROOT%{_includedir}/src \ + $RPM_BUILD_ROOT%{_usr}/src \ + $RPM_BUILD_ROOT%{_usr}/tools + +%check +export LD_LIBRARY_PATH=$( pwd )/blib/lib +# make test < /dev/null +# %{?_with_fulltest:make fulltest < /dev/null} +# make test || : +# %{?_with_fulltest:make fulltest || :} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%exclude %{_bindir}/parrot_config +%exclude %{_bindir}/parrot_debugger +%exclude %{_bindir}/pbc_* +%{_bindir}/* +%{_libdir}/parrot +%{_libdir}/libparrot.so.* + +%files docs +%defattr(-,root,root,-) +%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README +%doc RESPONSIBLE_PARTIES TODO +%doc docs examples + +%files devel +%defattr(-,root,root,-) +%{_bindir}/parrot_config +%{_bindir}/parrot_debugger +%{_bindir}/pbc_disassemble +%{_bindir}/pbc_info +%{_bindir}/pbc_merge +%{_bindir}/pbc_to_exe +%{_bindir}/pbc_dump +%{_includedir}/parrot +%{_libdir}/libparrot.so +%{_libdir}/libparrot.a +%{_libdir}/pkgconfig/* + +%changelog +* Tue Mar 17 2009 Allison Randal 1.0.0 +- updated to 1.0.0 + +* Tue Jan 23 2009 Reini Urban 0.9.0 +- added make installable, perl6 is still not installable +- added parrot_utils to devel +- fixed Source0 url + +* Tue Jan 23 2009 Gerd Pokorra 0.9.0 +- added make html +- make reallyinstall => make install + +* Tue Jan 20 2009 chromatic 0.9.0 +- updated to 0.9.0 + +* Tue Dec 16 2008 Whiteknight 0.8.2 +- updated to 0.8.2 + +* Tue Nov 18 2008 chromatic 0.8.1 +- updated to 0.8.1 + +* Tue Oct 21 2008 particle 0.8.0 +- updated to 0.8.0 + +* Tue Sep 16 2008 pmichaud 0.7.1 +- updated to 0.7.1 + +* Wed Sep 3 2008 chromatic 0.7.0 +- install parrot_config (not parrot-config) + +* Tue Jun 17 2008 Nuno Carvalho 0.6.3 +- updated to 0.6.3 + +* Tue May 20 2008 chromatic > 0.6.2 +- updated to 0.6.2 + +* Mon Apr 28 2008 chromatic 0.6.1 +- minor fixes; tested with Fedora 7, 8, and 9-beta + +* Tue Mar 18 2008 Bernhard Schmalhofer 0.6.0 +- Update to 0.5.3. + +* Wed Feb 20 2008 Patrick Michaud 0.5.3 +- Update to 0.5.3. + +* Tue Jan 15 2008 Bob Rogers 0.5.2 +- Update to 0.5.2. + +* Tue Dec 18 2007 Jonathan Worthington 0.5.1 +- Update to 0.5.1. + +* Tue Nov 20 2007 chromatic 0.5.0 +- Update to 0.5.0. + +* Fri May 25 2007 David Fetter 0.4.12-1 +- Update to 0.4.12. + +* Wed Apr 18 2007 Steven Pritchard 0.4.11-1 +- Update to 0.4.11. + +* Wed Mar 21 2007 Steven Pritchard 0.4.10-1 +- Update to 0.4.10. + +* Sat Mar 10 2007 Steven Pritchard 0.4.9-1 +- Update to 0.4.9. +- BR ncurses-devel. +- For some reason now I need to force -lm too. +- Remove some files/directories that shouldn't be included. + +* Wed Jan 17 2007 Steven Pritchard 0.4.8-1 +- Attempt update to 0.4.8. + +* Fri Jun 30 2006 Steven Pritchard 0.4.5-5 +- Override lib_dir and make various substitutions to try to fix multilib. +- Remove rpath use from Makefile. +- Fix a pod error in src/ops/experimental.ops. +- Enable "make test" since t/doc/pod.t won't fail now. + +* Wed Jun 28 2006 Steven Pritchard 0.4.5-4 +- Force permissions on shared libraries so rpmbuild strips them. + +* Wed Jun 28 2006 Steven Pritchard 0.4.5-3 +- Fix URL, description, summary, etc. +- Add post/postun. +- Move parrot-config to the devel sub-package. +- Force permissions on the doc directories. + +* Tue Jun 27 2006 Steven Pritchard 0.4.5-2 +- Add -lcurses to get readline detection to work. +- BR libicu-devel. + +* Tue Jun 27 2006 Steven Pritchard 0.4.5-1 +- Initial packaging attempt. + +* Tue Mar 18 2003 Steve Fink 0.0.11 +- first .spec file created Index: ports/fedora/parrot.spec =================================================================== --- ports/fedora/parrot.spec (revision 0) +++ ports/fedora/parrot.spec (revision 0) @@ -0,0 +1,242 @@ +Name: parrot +Version: 1.0.0 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: readline-devel +BuildRequires: ncurses-devel +BuildRequires: gmp-devel +BuildRequires: gdbm-devel +BuildRequires: libicu-devel +BuildRequires: perl-Test-Harness + +%package docs +Summary: Parrot Virtual Machine documentation +License: Artistic 2.0 +Group: Development/Libraries +BuildRequires: /usr/bin/perldoc + +%package devel +Summary: Parrot Virtual Machine development headers and libraries +License: Artistic 2.0 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: %{_libdir}/pkgconfig + +%description +Parrot is a virtual machine designed to efficiently compile and execute +bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, +as well as variety of other languages. + +%description docs +Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also +examples about the Parrot Virtual Machine + +%description devel +Parrot Virtual Machine development headers and libraries. + +%prep +%setup -q + +%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ + src/library.c +%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ + tools/dev/install_files.pl + +%build + +%ifarch i386 x86_64 +%{__perl} Configure.pl \ + --prefix=%{_usr} \ + --libdir=%{_libdir} \ + --sysconfdir=%{_sysconfdir} \ + --infodir=%{_datadir}/info \ + --mandir=%{_mandir} \ + --cc="%{__cc}" \ + --cxx=%{__cxx} \ + --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ + --parrot_is_shared \ + --lex=/usr/bin/flex \ + --yacc=/usr/bin/yacc \ + --libs="-lcurses -lm" +%else +# PowerPC +%{__perl} Configure.pl \ + --prefix=%{_usr} \ + --libdir=%{_libdir} +%endif + +export LD_LIBRARY_PATH=$( pwd )/blib/lib +make +make parrot_utils +make installable +make html + +%install +rm -rf $RPM_BUILD_ROOT + +export LD_LIBRARY_PATH=$( pwd )/blib/lib +make install DESTDIR=$RPM_BUILD_ROOT + +# Drop the docs so rpm can pick them up itself. +rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE +#rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris? + +# Force permissions on doc directories. +find docs examples -type d -exec chmod 755 {} \; +find docs examples -type f -exec chmod 644 {} \; + +# Force permissions on shared libs so they get stripped. +find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ + -exec chmod 755 {} \; + +# These files *probably* aren't needed. +rm -rf $RPM_BUILD_ROOT%{_usr}/config \ + $RPM_BUILD_ROOT%{_includedir}/src \ + $RPM_BUILD_ROOT%{_usr}/src \ + $RPM_BUILD_ROOT%{_usr}/tools + +%check +export LD_LIBRARY_PATH=$( pwd )/blib/lib +# make test < /dev/null +# %{?_with_fulltest:make fulltest < /dev/null} +# make test || : +# %{?_with_fulltest:make fulltest || :} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%exclude %{_bindir}/parrot_config +%exclude %{_bindir}/parrot_debugger +%exclude %{_bindir}/pbc_* +%{_bindir}/* +%{_libdir}/parrot +%{_libdir}/libparrot.so.* + +%files docs +%defattr(-,root,root,-) +%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README +%doc RESPONSIBLE_PARTIES TODO +%doc docs examples + +%files devel +%defattr(-,root,root,-) +%{_bindir}/parrot_config +%{_bindir}/parrot_debugger +%{_bindir}/pbc_disassemble +%{_bindir}/pbc_info +%{_bindir}/pbc_merge +%{_bindir}/pbc_to_exe +%{_bindir}/pbc_dump +%{_includedir}/parrot +%{_libdir}/libparrot.so +%{_libdir}/libparrot.a +%{_libdir}/pkgconfig/* + +%changelog +* Tue Mar 17 2009 Allison Randal 1.0.0 +- updated to 1.0.0 + +* Tue Jan 23 2009 Reini Urban 0.9.0 +- added make installable, perl6 is still not installable +- added parrot_utils to devel +- fixed Source0 url + +* Tue Jan 23 2009 Gerd Pokorra 0.9.0 +- added make html +- make reallyinstall => make install + +* Tue Jan 20 2009 chromatic 0.9.0 +- updated to 0.9.0 + +* Tue Dec 16 2008 Whiteknight 0.8.2 +- updated to 0.8.2 + +* Tue Nov 18 2008 chromatic 0.8.1 +- updated to 0.8.1 + +* Tue Oct 21 2008 particle 0.8.0 +- updated to 0.8.0 + +* Tue Sep 16 2008 pmichaud 0.7.1 +- updated to 0.7.1 + +* Wed Sep 3 2008 chromatic 0.7.0 +- install parrot_config (not parrot-config) + +* Tue Jun 17 2008 Nuno Carvalho 0.6.3 +- updated to 0.6.3 + +* Tue May 20 2008 chromatic > 0.6.2 +- updated to 0.6.2 + +* Mon Apr 28 2008 chromatic 0.6.1 +- minor fixes; tested with Fedora 7, 8, and 9-beta + +* Tue Mar 18 2008 Bernhard Schmalhofer 0.6.0 +- Update to 0.5.3. + +* Wed Feb 20 2008 Patrick Michaud 0.5.3 +- Update to 0.5.3. + +* Tue Jan 15 2008 Bob Rogers 0.5.2 +- Update to 0.5.2. + +* Tue Dec 18 2007 Jonathan Worthington 0.5.1 +- Update to 0.5.1. + +* Tue Nov 20 2007 chromatic 0.5.0 +- Update to 0.5.0. + +* Fri May 25 2007 David Fetter 0.4.12-1 +- Update to 0.4.12. + +* Wed Apr 18 2007 Steven Pritchard 0.4.11-1 +- Update to 0.4.11. + +* Wed Mar 21 2007 Steven Pritchard 0.4.10-1 +- Update to 0.4.10. + +* Sat Mar 10 2007 Steven Pritchard 0.4.9-1 +- Update to 0.4.9. +- BR ncurses-devel. +- For some reason now I need to force -lm too. +- Remove some files/directories that shouldn't be included. + +* Wed Jan 17 2007 Steven Pritchard 0.4.8-1 +- Attempt update to 0.4.8. + +* Fri Jun 30 2006 Steven Pritchard 0.4.5-5 +- Override lib_dir and make various substitutions to try to fix multilib. +- Remove rpath use from Makefile. +- Fix a pod error in src/ops/experimental.ops. +- Enable "make test" since t/doc/pod.t won't fail now. + +* Wed Jun 28 2006 Steven Pritchard 0.4.5-4 +- Force permissions on shared libraries so rpmbuild strips them. + +* Wed Jun 28 2006 Steven Pritchard 0.4.5-3 +- Fix URL, description, summary, etc. +- Add post/postun. +- Move parrot-config to the devel sub-package. +- Force permissions on the doc directories. + +* Tue Jun 27 2006 Steven Pritchard 0.4.5-2 +- Add -lcurses to get readline detection to work. +- BR libicu-devel. + +* Tue Jun 27 2006 Steven Pritchard 0.4.5-1 +- Initial packaging attempt. + +* Tue Mar 18 2003 Steve Fink 0.0.11 +- first .spec file created Index: ports/mandriva/parrot.spec =================================================================== --- ports/mandriva/parrot.spec (revision 0) +++ ports/mandriva/parrot.spec (revision 0) @@ -0,0 +1,168 @@ +%define name parrot +%define version 0.9.1 +%define release %mkrel 2 + +%define libname %mklibname %{name} +%define libname_devel %mklibname -d %{name} + +Summary: Parrot Virtual Machine +Name: %name +Version: %version +Release: %release +Source0: ftp://ftp.parrot.org/pub/parrot/releases/devel/%{version}/%{name}-%{version}.tar.gz +License: Artistic 2.0 +Group: Development/Perl +Url: http://www.parrot.org/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +BuildRequires: readline-devel +BuildRequires: ncurses-devel +BuildRequires: gmp-devel +BuildRequires: gdbm-devel +BuildRequires: perl-doc +BuildRequires: libicu-devel + +%description +Parrot is a virtual machine designed to efficiently compile and execute +bytecode for interpreted languages. Parrot will be the target for the final +Perl 6 compiler, and is already usable as a backend for Pugs, as well as +variety of other languages + +#-- + +%package -n %libname +Summary: Parrot Virtual Machine run time library +License: Artistic 2.0 +Group: Development/Perl +Provides: lib%{name} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: %{_libdir}/pkgconfig + +%description -n %libname +Run time library for %{name}. + +#-- + +%package -n %{name}-doc +Summary: Parrot Virtual Machine documentation +License: Artistic 2.0 +Group: Development/Perl + +%description -n %{name}-doc +Documentation for %{name}. + +#-- + +%package -n %libname_devel +Summary: Parrot Virtual Machine development headers and libraries +License: Artistic 2.0 +Group: Development/Perl +Provides: %{name}-devel = %version-%release +Requires: %libname = %version + +%description -n %libname_devel +Development files for %{name}. + +%prep +%setup -q + +%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ + src/library.c +%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ + tools/dev/install_files.pl \ + tools/dev/mk_manifest_and_skip.pl + +%build +%{__perl} Configure.pl \ + --prefix=%{_usr} \ + --libdir=%{_libdir} \ + --sysconfdir=%{_sysconfdir} \ + --infodir=%{_datadir}/info \ + --mandir=%{_mandir} \ + --cc="%{__cc}" \ + --cxx=%{__cxx} \ + --parrot_is_shared \ + --lex=/usr/bin/flex \ + --yacc=/usr/bin/yacc \ + --libs='-lcurses -lm' + +# the following Configure.pl flag makes the compile goes boom + #--optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ + +make +export LD_LIBRARY_PATH=$( pwd )/blib/lib +make languages +make parrot_utils +make installable +make html + + +%install +rm -rf $RPM_BUILD_ROOT + +export LD_LIBRARY_PATH=$( pwd )/blib/lib +make install DESTDIR=$RPM_BUILD_ROOT + +# Drop the docs so rpm can pick them up itself. +rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot + +# Force permissions on doc directories. +find docs examples -type d -exec chmod 755 {} \; +find docs examples -type f -exec chmod 644 {} \; + +# Force permissions on shared libs so they get stripped. +find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ + -exec chmod 755 {} \; + +# These files *probably* aren't needed. +rm -rf $RPM_BUILD_ROOT%{_usr}/config \ + $RPM_BUILD_ROOT%{_includedir}/src \ + $RPM_BUILD_ROOT%{_usr}/src \ + $RPM_BUILD_ROOT%{_usr}/tools + + +%check +export LD_LIBRARY_PATH=$( pwd )/blib/lib +#make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%if %mdkversion < 200900 +%post -n %libname -p /sbin/ldconfig +%endif + +%if %mdkversion < 200900 +%postun -n %libname -p /sbin/ldconfig +%endif + +%files +%defattr(-,root,root,-) +%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README +%doc RESPONSIBLE_PARTIES TODO +%exclude %{_bindir}/parrot_config +%exclude %{_bindir}/parrot_debugger +%exclude %{_bindir}/pbc_* +%{_bindir}/* + +%files -n %{name}-doc +%defattr(-,root,root,-) +%doc docs examples + +%files -n %libname +%defattr(-,root,root,-) +%{_libdir}/parrot +%{_libdir}/*.so.* + +%files -n %libname_devel +%defattr(-,root,root,-) +%{_bindir}/parrot_config +%{_bindir}/parrot_debugger +%{_bindir}/pbc_disassemble +%{_bindir}/pbc_info +%{_bindir}/pbc_merge +%{_bindir}/pbc_to_exe +%{_bindir}/pbc_dump +%{_includedir}/* +%{_libdir}/pkgconfig/* +%_libdir/*.so +%_libdir/*.a