[perl-Glib] Do not export private modules and libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit ce4333136a5c236e1d6b1391a61c8f555d829934
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu May 31 17:19:35 2012 +0200

    Do not export private modules and libraries

 perl-Glib.spec |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/perl-Glib.spec b/perl-Glib.spec
index b3f626b..2ec02cd 100644
--- a/perl-Glib.spec
+++ b/perl-Glib.spec
@@ -1,6 +1,6 @@
 Name:           perl-Glib
 Version:        1.241
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Perl interface to GLib
 Group:          Development/Libraries
 License:        LGPLv2+
@@ -13,6 +13,10 @@ BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+# Do not export private modules and libraries
+%{?perl_default_filter}
+%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(MY\\)
+
 %description
 This module provides perl access to GLib and GLib's GObject libraries.
 GLib is a portability and utility library; GObject provides a generic
@@ -33,14 +37,6 @@ to GLib and GObject libraries.
 %prep
 %setup -q -n Glib-%{version}
 
-# Provides: exclude perl(MY)
-cat <<__EOF__ > %{name}-perl.prov
-#!/bin/sh
-/usr/lib/rpm/perl.prov \$* | grep -v '^perl(MY)$'
-__EOF__
-%define __perl_provides %{_builddir}/Glib-%{version}/%{name}-perl.prov
-chmod +x %{__perl_provides}
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 make
@@ -80,6 +76,9 @@ make test
 %{_mandir}/man3/Glib::xsapi.3pm.gz
 
 %changelog
+* Thu May 31 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.241-3
+- Do not export private modules and libraries
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.241-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux