From 7bbb75e1087036d239ac7ac71c39d71c9b1f638d Mon Sep 17 00:00:00 2001 From: Gerd Pokorra Date: Apr 21 2010 08:45:21 +0000 Subject: Update to Parrot 2.3.0 with some changes in the spec-files and adding of desktop files --- diff --git a/parrot.patch b/parrot.patch index 9cc606d..b4dcd06 100644 --- a/parrot.patch +++ b/parrot.patch @@ -1,14 +1,3 @@ ---- tools/dev/install_files.pl 2009-07-13 10:26:40.000000000 +0200 -+++ tools/dev/install_files.pl 2009-07-13 13:37:49.000000000 +0200 -@@ -163,7 +163,7 @@ - # libdir as it is typically done with automake installed packages. - # If there is a use case to make this configurable we'll add a - # seperate --pkgconfigdir option. -- $filehash->{DestDirs} = ['pkgconfig', $parrotdir]; -+ $filehash->{DestDirs} = ['pkgconfig']; - return($filehash); - }, - }, --- lib/Parrot/Install.pm 2009-06-01 09:29:57.000000000 +0200 +++ lib/Parrot/Install.pm 2009-06-03 08:41:22.000000000 +0200 @@ -220,6 +220,16 @@ diff --git a/parrot.spec b/parrot.spec index 1ef309c..76c25e4 100644 --- a/parrot.spec +++ b/parrot.spec @@ -1,16 +1,15 @@ Name: parrot -Version: 2.2.0 +Version: 2.3.0 Release: 1%{?dist} Summary: a virtual machine License: Artistic 2.0 Group: Development/Libraries URL: http://www.parrot.org/ -Source0: ftp://ftp.parrot.org/pub/parrot/releases/devel/%{version}/parrot-%{version}.tar.gz +Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz +Source1: %{name}.desk.in.tar.gz Patch0: parrot.patch -# patched file: tools/dev/install_files.pl -# It is responsible to have no subdirectory under pkgconfig. # # see for upstream: https://trac.parrot.org/parrot/ticket/509 # patched file: lib/Parrot/Install.pm @@ -30,6 +29,10 @@ BuildRequires: ctags BuildRequires: openssl-devel BuildRequires: flex BuildRequires: bison +# Needed to generate the Parrot PDF book +BuildRequires: perl(Pod::PseudoPod::LaTeX), texlive-latex +# Needed to desktop-file-install usage +BuildRequires: desktop-file-utils %package docs @@ -37,6 +40,8 @@ Summary: Parrot Virtual Machine documentation Group: Documentation Requires: perl(strict) Requires: perl(warnings) +# Provides the executable in the desktop file (xdg-open) +Requires: xdg-utils BuildArch: noarch #-- @@ -126,6 +131,7 @@ chmod +x %{__perl_provides} --optimize="$RPM_OPT_FLAGS" \ --parrot_is_shared \ --disable-rpath \ + --pkgconfigdir=pkgconfig \ --lex=%{_bindir}/flex # The LD_LIBRARY_PATH hack is needed for "miniparrot" @@ -134,9 +140,7 @@ export LD_LIBRARY_PATH=$( pwd )/blib/lib # pbc_to_exe would not build if %{_smp_mflags} would used make -make parrot_utils -make installable -make html +make html pdf %install @@ -221,6 +225,18 @@ find examples -wholename 'examples/shootout/revcomp.pir' \ find examples -wholename 'examples/languages/abc/t/harness' \ -exec %{__perl} -pi -e 's/\r$//' {} \; +#install desktop file +%{__mkdir} ${RPM_BUILD_ROOT}%{_datadir}/applications/ +%{__tar} xzf %{SOURCE1} parrot_html.desk.in --to-stdout | %{__sed} "s|@DOCDIR@|%{_docdir}/%{name}-docs-%{version}|g" > ${RPM_BUILD_ROOT}%{_datadir}/applications/parrot_html.desktop +%{__tar} xzf %{SOURCE1} parrot_pdf.desk.in --to-stdout | %{__sed} "s|@DOCDIR@|%{_docdir}/%{name}-docs-%{version}|g" > ${RPM_BUILD_ROOT}%{_datadir}/applications/parrot_pdf.desktop + +desktop-file-install --delete-original --add-category="Documentation" \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + ${RPM_BUILD_ROOT}%{_datadir}/applications/parrot_html.desktop +desktop-file-install --delete-original --add-category="Documentation" \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + ${RPM_BUILD_ROOT}%{_datadir}/applications/parrot_pdf.desktop + %check # 'make fulltest' is done by default; it take a lot of time @@ -251,6 +267,8 @@ rm -rf $RPM_BUILD_ROOT %files docs %defattr(-,root,root,-) %doc docs examples +%{_datadir}/applications/parrot_html.desktop +%{_datadir}/applications/parrot_pdf.desktop %files devel %defattr(-,root,root,-) @@ -262,6 +280,7 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/pbc_merge %{_bindir}/pbc_to_exe %{_bindir}/pbc_dump +%{_bindir}/tapir %{_includedir}/parrot %{_libdir}/libparrot.so %exclude %{_libdir}/libparrot.a @@ -283,8 +302,12 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Apr 20 2010 Gerd Pokorra 2.3.0-1 +- updated to 2.3.0 +- add desktop files to access the documentation for reading +- add the tapir binary + * Tue Mar 16 2010 Gerd Pokorra 2.2.0-1 -- updated to 2.2.0 - add the parrot_nci_thunk_gen binary * Wed Jan 20 2010 Gerd Pokorra 2.0.0-1 diff --git a/sources b/sources index 9233c14..a7b6822 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -f1ecfe948a6f096bb880c54e9f920b28 parrot-2.2.0.tar.gz +3208c996b95e970ccf4fa6d70bda588e parrot-2.3.0.tar.gz +63344e357df345da0e91cdeb43bc1610 parrot.desk.in.tar.gz