[python3/nightly] Almost ready to be build in collection, except the provides filtering is still not working

Miro Hrončok churchyard at fedoraproject.org
Fri Jun 27 12:15:52 UTC 2014


commit f56bf4c622c3a362fc12dbf24d49c389eadf8a8e
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Fri Jun 27 14:15:31 2014 +0200

    Almost ready to be build in collection, except the provides filtering is still not working

 python3.spec |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/python3.spec b/python3.spec
index abc2007..fd0be0f 100644
--- a/python3.spec
+++ b/python3.spec
@@ -137,6 +137,7 @@ Release:        0.3.20140626hg3151f6f9df85%{?dist}
 License: Python
 Group: Development/Languages
 
+%global __provides_exclude ^pkgconfig
 
 # =======================
 # Build-time requirements
@@ -724,12 +725,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 URL: http://www.python.org/
 
-# filter pkgconfig and python(abi) Requires/Provides
-%{?scl:%filter_from_requires s|python(abi)|%{?scl_prefix}python(abi)|g}
-%{?scl:%filter_from_provides s|pkgconfig(|%{?scl_prefix}pkgconfig(|g}
-%{?scl:%filter_from_provides s|/usr/lib.*/python||g}
-%{?scl:%filter_setup}
-
 # See notes in bug 532118:
 Provides: %{?scl_prefix}python(abi) = %{pybasever}
 
@@ -770,6 +765,10 @@ Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
 Requires: %{?scl_prefix}%{pkg_name}-libs%{?_isa} = %{version}-%{release}
 Conflicts: %{?scl_prefix}%{pkg_name} < %{version}-%{release}
 
+%{?scl:Provides: %{?scl_prefix}pkgconfig(%{pkg_name}) = %{pybasever}}
+%{?scl:Provides: %{?scl_prefix}pkgconfig(python-%{pybasever}) = %{pybasever}}
+%{?scl:Provides: %{?scl_prefix}pkgconfig(python-%{pybasever}m) = %{pybasever}}
+
 %description devel
 This package contains libraries and header files used to build applications
 with and native libraries for Python 3


More information about the scm-commits mailing list