Here is some spec-file magic that might be useful to others..
Modified Files: foomatic.spec Log Message: * Mon Apr 19 2004 Tim Waugh twaugh@redhat.com 3.0.1-3 - Require appropriate perl(:MODULE_COMPAT_...) symbol (bug #121131).
Index: foomatic.spec =================================================================== RCS file: /cvs/pkgs/rpms/foomatic/foomatic.spec,v retrieving revision 1.85 retrieving revision 1.86 diff -u -r1.85 -r1.86 --- foomatic.spec 10 Mar 2004 11:44:40 -0000 1.85 +++ foomatic.spec 19 Apr 2004 11:02:35 -0000 1.86 @@ -6,7 +6,7 @@ Summary: Foomatic printer database. Name: foomatic Version: 3.0.1 -Release: 2 +Release: 3 License: GPL Group: System Environment/Libraries
@@ -53,6 +53,7 @@ BuildRequires: perl >= 3:5.8.1 BuildRequires: libxml2-devel Requires: perl >= 3:5.8.1 +Requires: %(eval `perl -V:version`; echo "perl(:MODULE_COMPAT_$version)") BuildRoot: %_tmppath/%name-%version-%release-root Provides: perl(Foomatic::GrovePath) Requires: perl-libxml-enno >= 1.02 @@ -248,6 +249,9 @@ %{_mandir}/*/*
%changelog +* Mon Apr 19 2004 Tim Waugh twaugh@redhat.com 3.0.1-3 +- Require appropriate perl(:MODULE_COMPAT_...) symbol (bug #121131). + * Wed Mar 10 2004 Tim Waugh twaugh@redhat.com - Fix deprecated cast-as-lvalues.
On Mon, 2004-04-19 at 14:16, Tim Waugh wrote:
Here is some spec-file magic that might be useful to others..
[...]
+Requires: %(eval `perl -V:version`; echo "perl(:MODULE_COMPAT_$version)")
...and coincidentally, these related bits were submitted to bugzilla.fedora.us yesterday :)
https://bugzilla.fedora.us/show_bug.cgi?id=1498 :MODULE_COMPAT_* etc support for RH 7.3, 8.0 and 9.
https://bugzilla.fedora.us/show_bug.cgi?id=1401 Suggested update to the Perl spec template.
On Mon, 2004-04-19 at 07:43, Ville Skyttä wrote:
On Mon, 2004-04-19 at 14:16, Tim Waugh wrote:
Here is some spec-file magic that might be useful to others..
[...]
+Requires: %(eval `perl -V:version`; echo "perl(:MODULE_COMPAT_$version)")
I like it!