[pymilia] Added filter to remove false provides
Sergio Pascual
sergiopr at fedoraproject.org
Tue Aug 23 22:54:37 UTC 2011
commit e9e70f65868e2c03191d3c1997576e1084cba1d6
Author: Sergio Pascual <sergiopr at fis.ucm.es>
Date: Wed Aug 24 00:54:14 2011 +0200
Added filter to remove false provides
pymilia.spec | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/pymilia.spec b/pymilia.spec
index 308d3f0..3e8bda2 100644
--- a/pymilia.spec
+++ b/pymilia.spec
@@ -2,18 +2,23 @@
Name: pymilia
Version: 0.3.0
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Python wrappers for milia
License: GPLv3+
Group: Development/Languages
URL: http://guaix.fis.ucm.es/projects/milia/wiki
Source0: ftp://astrax.fis.ucm.es/pub/users/spr/milia/%{name}-%{version}.tar.gz
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: python-devel python-setuptools
BuildRequires: boost-devel milia-devel >= %{version}
+# we don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
%description
Python wrappers for milia. Milia is a C++ library created to
compute cosmological distances and ages in the
@@ -25,14 +30,11 @@ Friedmann-Lemaître-Robertson-Walker metric.
%build
CFLAGS="%{optflags}" %{__python} setup.py build
-
%install
-%{__rm} -fr %{buildroot}
+rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}
+chmod 755 %{buildroot}%{python_sitearch}/milia/*.so
-%clean
-%{__rm} -fr %{buildroot}
-
%files
%defattr(-,root,root,-)
%doc COPYING README.txt NEWS.txt
@@ -40,6 +42,9 @@ CFLAGS="%{optflags}" %{__python} setup.py build
%{python_sitearch}/*.egg-info
%changelog
+* Tue Aug 23 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.3.0-9
+- Added filter to remove false provides
+
* Thu Apr 07 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.3.0-8
- Rebuilt for new boost
More information about the scm-commits
mailing list