-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-pyzmq.spec
47 lines (37 loc) · 1.25 KB
/
python-pyzmq.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by pyp2rpm-1.1.2
%global pypi_name pyzmq
%global py_ver 2.7
Name: python-%{pypi_name}
Version: 14.6.0
Release: 1%{?dist}
Summary: Python bindings for 0MQ
License: BSD and LGPL
URL: http://github.com/zeromq/pyzmq
Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: python-sphinx
BuildRequires: zeromq-devel
%description
PyZMQ is the official Python binding for the ZeroMQ Messaging Library
(http://www.zeromq.org).
%prep
%setup -q -n %{pypi_name}-%{version}
find examples zmq -name "*.py" -exec sed -i "s|#\!\/usr\/bin\/env python||" {} \;
# generate html docs
sphinx-build docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING.LESSER README.md examples docs
%{python_sitearch}/zmq/
%{python_sitearch}/%{pypi_name}-%{version}-py%{py_ver}.egg-info
%exclude %{python_sitearch}/zmq/utils/*.h
%changelog
* Thu Jun 04 2015 John Doe <[email protected]> - 14.6.0-1
- Initial package.