[packages/python-zmq] BuildArch: noarch removed, devel files added
jajcus
jajcus at pld-linux.org
Sat Jul 28 16:17:43 CEST 2012
commit 35065d8730170177e5d2bed788dd7151d99995e0
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Jul 28 16:07:46 2012 +0200
BuildArch: noarch removed, devel files added
This is a binary (compiled from C files) package.
It should never be packaged as 'noarch' when files in %{py_sitedir} (and
not %{py_sitescriptdir}) are packaged!
python-zmq.spec | 35 ++++++++++++++++++++++++++++++-----
1 file changed, 30 insertions(+), 5 deletions(-)
---
diff --git a/python-zmq.spec b/python-zmq.spec
index 505152f..3e867fa 100644
--- a/python-zmq.spec
+++ b/python-zmq.spec
@@ -1,7 +1,7 @@
# $Revision: 1.1 $
%define module pyzmq
-Summary: ØMQ bindings for Python
-Summary(pl.UTF-8): Wiązania biblioteki ØMQ dla Pythona
+Summary: Py0MQ - ØMQ bindings for Python
+Summary(pl.UTF-8): Py0MQ - Wiązania biblioteki ØMQ dla Pythona
Name: python-zmq
Version: 2.2.0
Release: 1
@@ -18,7 +18,6 @@ BuildRequires: zeromq-devel >= %{version}
BuildRequires: python3-devel
%pyrequires_eq python-libs
Requires: zeromq >= %{version}
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -27,9 +26,18 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description -l pl.UTF-8
Wiązania biblioteki ØMQ dla Pythona.
+%package devel
+Summary: Header files for Py0MQ
+Summary(pl.UTF-8): Pliki nagłowkowe dla Py0MQ
+Group: Development/Languages/Python
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for Py0MQ.
+
%package -n python3-zmq
-Summary: ØMQ bindings for Python
-Summary(pl.UTF-8): Wiązania biblioteki ØMQ dla Pythona
+Summary: Py0MQ - ØMQ bindings for Python
+Summary(pl.UTF-8): Py0MQ - Wiązania biblioteki ØMQ dla Pythona
Group: Development/Languages/Python
%pyrequires_eq python3-modules
Requires: zeromq >= %{version}
@@ -37,6 +45,15 @@ Requires: zeromq >= %{version}
%description -n python3-zmq
ØMQ bindings for Python 3.x.
+%package -n python3-zmq-devel
+Summary: Header files for Py0MQ
+Summary(pl.UTF-8): Pliki nagłowkowe dla Py0MQ
+Group: Development/Languages/Python
+Requires: python3-zmq = %{version}-%{release}
+
+%description -n python3-zmq-devel
+Header files for Py0MQ.
+
%prep
%setup -qn %{module}-%{version}
@@ -95,7 +112,12 @@ rm -rf $RPM_BUILD_ROOT
%{py_sitedir}/pyzmq-*.egg-info
%endif
+%files devel
+%defattr(644,root,root,755)
+%{py_sitedir}/zmq/utils/*.h
+
%files -n python3-zmq
+%defattr(644,root,root,755)
%dir %{py3_sitedir}/zmq
%dir %{py3_sitedir}/zmq/core
%dir %{py3_sitedir}/zmq/devices
@@ -122,3 +144,6 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitedir}/zmq/*/*/__pycache__
%{py3_sitedir}/pyzmq-*.egg-info
+%files -n python3-zmq-devel
+%defattr(644,root,root,755)
+%{py3_sitedir}/zmq/utils/*.h
More information about the pld-cvs-commit
mailing list