]> git.pld-linux.org Git - packages/python-zmq.git/commitdiff
BuildArch: noarch removed, devel files added
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Jul 2012 14:07:46 +0000 (16:07 +0200)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Jul 2012 14:07:46 +0000 (16:07 +0200)
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

index 505152f4531d44c9236944852a09471df6202593..3e867fa81f103045b6734f3689a85f00308b7a22 100644 (file)
@@ -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
This page took 0.1108 seconds and 4 git commands to generate.