[perl-Gtk2] Add provides, which should fix gcstar. They must be provided by this package. Use new filtering of r

Marcela Mašláňová mmaslano at fedoraproject.org
Thu Apr 21 11:58:15 UTC 2011


commit a6d23ebd1abd25fb0a9c8b85a55e110492b51bad
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Thu Apr 21 13:57:39 2011 +0200

    Add provides, which should fix gcstar. They must be provided by this
    package. Use new filtering of requires. Filter of provides not needed anymore.

 perl-Gtk2.spec |   39 ++++++++++++++++++---------------------
 1 files changed, 18 insertions(+), 21 deletions(-)
---
diff --git a/perl-Gtk2.spec b/perl-Gtk2.spec
index 757775b..2b231c1 100644
--- a/perl-Gtk2.spec
+++ b/perl-Gtk2.spec
@@ -6,7 +6,7 @@
 
 Name:           perl-Gtk2
 Version:        1.223
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Perl interface to the 2.x series of the Gimp Toolkit library
 
 Group:          Development/Libraries
@@ -26,9 +26,18 @@ BuildRequires:  perl(Cairo) >= 1.00
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 Requires:       perl(Glib) >= 1.220
 Requires:       perl(Cairo) >= 1.00
-Requires:	perl(Pango) >= 1.220
-
-%{?perl_default_filter}
+Requires:       perl(Pango) >= 1.220
+# these can't be automatically obtained, but they are provided by this package
+Provides:       perl(Gtk2::ScrolledWindow)
+Provides:       perl(Gtk2::Dialog)
+Provides:       perl(Gtk2::Toolbar)
+Provides:       perl(Gtk2::TreeView)
+Provides:       perl(Gtk2::MenuBar)
+Provides:       perl(Gtk2::VBox)
+Provides:       perl(Gtk2::Window)
+Provides:       perl(Gtk2::MessageDialog)
+
+%global __requires_exclude perl\\(Glib\\)
 
 %description
 This module allows you to write Gtk+ graphical user interfaces in a
@@ -43,23 +52,6 @@ API.  Find out more about Gtk+ at http://www.gtk.org.
 iconv -f iso-8859-1 -t utf-8 -o pm/Helper.pm{.utf8,}
 mv pm/Helper.pm{.utf8,}
 
-# Provides: exclude perl(main)
-cat <<__EOF__ > %{name}-perl.prov
-#!/bin/sh
-/usr/lib/rpm/perl.prov \$* | grep -v '^perl(main)$'
-__EOF__
-%define __perl_provides %{_builddir}/Gtk2-%{version}/%{name}-perl.prov
-chmod +x %{__perl_provides}
-
-# Requires: exclude unversioned perl(Glib)
-cat <<__EOF__ > %{name}-perl.req
-#!/bin/sh
-/usr/lib/rpm/perl.req \$* | grep -v '^perl(Glib)$'
-__EOF__
-%define __perl_requires %{_builddir}/Gtk2-%{version}/%{name}-perl.req
-chmod +x %{__perl_requires}
-
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 make %{?_smp_mflags}
@@ -92,6 +84,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Apr 14 2011 Marcela Mašláňová <mmaslano at redhat.com> - 1.223-2
+- add provides, which should fix gcstar. They must be provided by this
+ package.
+- use new filtering of requires. Filter of provides not needed anymore.
+
 * Tue Mar 29 2011 Tom Callaway <spot at fedoraproject.org> - 1.223-1
 - update to 1.223
 



More information about the perl-devel mailing list