[parrot/f15] add provides filter for rpm 4.9 onwards

Gerd Pokorra gerd at fedoraproject.org
Fri Nov 4 11:36:32 UTC 2011


commit 9779e576348443114c35aff4106651c34cf6b43c
Author: gerd <gp at zimt.uni-siegen.de>
Date:   Fri Nov 4 12:29:39 2011 +0100

    add provides filter for rpm 4.9 onwards

 parrot.spec |   28 +++++++++++-----------------
 sources     |    2 +-
 2 files changed, 12 insertions(+), 18 deletions(-)
---
diff --git a/parrot.spec b/parrot.spec
index 583531e..88dd1a8 100644
--- a/parrot.spec
+++ b/parrot.spec
@@ -1,6 +1,8 @@
+%global __provides_exclude perl\\(DB\\)
+
 Name:           parrot
-Version:        3.9.0
-Release:        1%{?dist}
+Version:        3.6.0
+Release:        2%{?dist}
 Summary:        A virtual machine
 License:        Artistic 2.0
 Group:          Development/Libraries
@@ -97,16 +99,6 @@ Parrot Virtual Machine development files for building languages.
 %setup -q
 
 
-cat << \EOF > %{name}-prov
-#!/bin/sh
-%{__perl_provides} $* | %{__sed} -e '/perl(A)/d' -e '/perl(B)/d' \
-                            -e '/perl(DB)/d' -e '/perl(Parrot::OpLib::core)/d'
-EOF
-
-%global __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
-
-
 %build
 %ifarch %{ix86} x86_64
     RPM_OPT_FLAGS="$RPM_OPT_FLAGS -maccumulate-outgoing-args"
@@ -161,7 +153,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
 
 # Creating man-pages
 %{__install} -d $RPM_BUILD_ROOT%{_mandir}/man1
-for var in 'parrot docs/running.pod' \
+for var in 'parrot docs/running.pod' 'parrot_debugger src/parrot_debugger.c' \
            'pbc_disassemble src/pbc_disassemble.c' 'pbc_dump src/pbc_dump.c' \
            'pbc_merge src/pbc_merge.c' 'pbc_to_exe tools/dev/pbc_to_exe.pir' \
            'parrot_config tools/build/parrot_config_c.pl' \
@@ -260,7 +252,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc ChangeLog CREDITS PBC_COMPAT PLATFORMS README
+%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README
 %doc RESPONSIBLE_PARTIES TODO LICENSE
 %{_bindir}/parrot
 %{_libdir}/parrot/
@@ -278,6 +270,7 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(-,root,root,-)
 %{_bindir}/parrot_config
+%{_bindir}/parrot_debugger
 %{_bindir}/parrot_nci_thunk_gen
 %{_bindir}/parrot-nqp
 %{_bindir}/parrot-prove
@@ -291,6 +284,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libparrot.so
 %exclude %{_libdir}/libparrot.a
 %{_mandir}/man1/parrot_config.1.gz
+%{_mandir}/man1/parrot_debugger.1.gz
 %{_mandir}/man1/pbc_disassemble.1.gz
 %{_mandir}/man1/pbc_merge.1.gz
 %{_mandir}/man1/pbc_to_exe.1.gz
@@ -310,9 +304,8 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Wed Oct 18 2011 Gerd Pokorra <gp at zimt.uni-siegen.de> - 3.9.0-1
-- updated to 3.9.0
-- remove NEWS parrot_debugger
+* Fri Nov 04 2011 Gerd Pokorra <gp at zimt.uni-siegen.de> - 3.6.0-2
+- replace "__perl_provides" by "__provides_exclude"
 
 * Fri Aug 05 2011 Gerd Pokorra <gp at zimt.uni-siegen.de> 3.6.0-1
 - updated to 3.6.0
@@ -380,6 +373,7 @@ rm -rf $RPM_BUILD_ROOT
 - put the main-documentation from the docs-package to the main package
 - LICENSE file added
 - add Provides-lines
+- add patch for the file "tools/dev/install_files.pl"
 - add commands to reduce output of errors when using rpmlint
 - define RPM_PAR_LIB_DIR added
 - add subpackage "tools"
diff --git a/sources b/sources
index 327c848..81158ab 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-b6f12286a69ab3f1bb2d1165829d3000  parrot-3.9.0.tar.gz
+6e7a1d84ff3fb2213a70673671ace6df  parrot-3.6.0.tar.gz
 63344e357df345da0e91cdeb43bc1610  parrot.desk.in.tar.gz


More information about the scm-commits mailing list