[packages/kmod] python requires just -libs via soname, but enforce strict dep
glen
glen at pld-linux.org
Tue Apr 8 10:00:36 CEST 2014
commit 064bf3419949c7c7f2aa23704b6e7a12cdc9c37b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Apr 8 10:59:45 2014 +0300
python requires just -libs via soname, but enforce strict dep
kmod.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/kmod.spec b/kmod.spec
index c517ab0..82e86ed 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -27,6 +27,7 @@ BuildRequires: libtool >= 2:2.0
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: tar >= 1:1.22
BuildRequires: xz
BuildRequires: xz-devel >= 1:4.99
@@ -110,8 +111,7 @@ Bashowe uzupełnianie nazw dla narzędzi kmod.
Summary: kmod Python bindings
Summary(pl.UTF-8): Dowiązania do kmod dla Pythona
Group: Development/Languages/Python
-Requires: %{name} = %{version}-%{release}
-Requires: python
+Requires: %{name}-libs = %{version}-%{release}
%description -n python-kmod
kmod Python bindings.
@@ -157,6 +157,10 @@ done
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libkmod.la
+# not needed in python module
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/kmod/*.la
+%py_postclean
+
:> $RPM_BUILD_ROOT/etc/modprobe.d/modprobe.conf
cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/blacklist.conf
@@ -215,4 +219,4 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%dir %{py_sitedir}/kmod
%attr(755,root,root) %{py_sitedir}/kmod/*.so
-%{py_sitedir}/kmod/*.py*
+%{py_sitedir}/kmod/*.py[co]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kmod.git/commitdiff/16c81894bd314d8cbce168a5728ad3d1d57f24f6
More information about the pld-cvs-commit
mailing list