[perl-Locale-Codes] Filter dependencies on private modules

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

 



commit 88242bf257dbb764c4e0055bf4e2c25b4fb64381
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Sep 12 13:39:23 2013 +0200

    Filter dependencies on private modules

 perl-Locale-Codes.spec |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/perl-Locale-Codes.spec b/perl-Locale-Codes.spec
index d73e725..e81b1ec 100644
--- a/perl-Locale-Codes.spec
+++ b/perl-Locale-Codes.spec
@@ -1,6 +1,6 @@
 Name:           perl-Locale-Codes
 Version:        3.27
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Distribution of modules to handle locale codes
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -20,12 +20,15 @@ BuildRequires:  perl(utf8)
 BuildRequires:  perl(Storable)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-
 # Inject not detected module version
-%{?filter_setup:
-%filter_from_provides s/^\(perl(Locale\>[^)]*)\)[^=]*$/\1 = %{version}/
-%filter_setup
-}
+Provides:       perl(Locale::Codes) = %{version}
+
+# Filter under-specified privdes
+%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Locale::Codes\\)$
+
+# Filter dependencies on private modules. Generator:
+# for F in $(find lib -type f); do perl -e '$/ = undef; $_ = <>; if (/^package #\R([\w:]*);/m) { print qq{|^perl\\\\($1\\\\)} }' "$F"; done
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Locale::Codes::Country_Retired\\)|^perl\\(Locale::Codes::Script_Retired\\)|^perl\\(Locale::Codes::LangExt_Codes\\)|^perl\\(Locale::Codes::LangFam_Codes\\)|^perl\\(Locale::Codes::Script_Codes\\)|^perl\\(Locale::Codes::Language_Codes\\)|^perl\\(Locale::Codes::LangExt_Retired\\)|^perl\\(Locale::Codes::Currency_Codes\\)|^perl\\(Locale::Codes::LangVar_Retired\\)|^perl\\(Locale::Codes::Language_Retired\\)|^perl\\(Locale::Codes::Country_Codes\\)|^perl\\(Locale::Codes::LangVar_Codes\\)|^perl\\(Locale::Codes::Currency_Retired\\)
 
 %description
 Locale-Codes is a distribution containing a set of modules. The modules
@@ -54,6 +57,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Sep 12 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 3.27-2
+- Filter dependencies on private modules
+
 * Tue Sep 10 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 3.27-1
 - 3.27 bump
 
--
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