forked from pool/python-pyzmq
Accepting request 55751 from home:saschpe
OBS-URL: https://build.opensuse.org/request/show/55751 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzmq?expand=0&rev=2
This commit is contained in:
parent
dfbf2c90d2
commit
b94f60a4e7
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 12 15:40:57 UTC 2010 - saschpe@gmx.de
|
||||
|
||||
- Re-generated with py2pack
|
||||
* now builds for all RPM-based distros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 15:32:35 UTC 2010 - saschpe@suse.de
|
||||
|
||||
|
@ -11,49 +11,57 @@
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define tarname pyzmq
|
||||
%define mod_name pyzmq
|
||||
|
||||
Name: python-pyzmq
|
||||
Name: python-%{mod_name}
|
||||
Version: 2.0.10
|
||||
Release: 1
|
||||
Url: http://www.zeromq.org/bindings:python
|
||||
Summary: Python bindings for ZeroMQ
|
||||
License: LGPLv3
|
||||
Group: Development/Libraries/Python
|
||||
AutoReqProv: on
|
||||
Source: %{tarname}-%{version}.tar.bz2
|
||||
Release: 0
|
||||
Url: http://github.com/zeromq/pyzmq
|
||||
Summary: Python bindings for 0MQ.
|
||||
License: LGPL
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: zeromq-devel python-devel
|
||||
|
||||
%{py_requires}
|
||||
BuildRequires: python-devel zeromq-devel
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%endif
|
||||
|
||||
%description
|
||||
Python bindings for ZeroMQ, a lightweight and fast messaging implementation.
|
||||
|
||||
PyZMQ is a lightweight and super-fast messaging library built on top of
|
||||
the ZeroMQ library (http://www.zeromq.org).
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Brian E. Granger <ellisonbg@gmail.com>
|
||||
|
||||
%prep
|
||||
%setup -n %{tarname}-%{version}
|
||||
export CFLAGS="%{optflags}"
|
||||
%setup -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="-O0"
|
||||
python setup.py build
|
||||
%{__python} setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING.LESSER README.rst
|
||||
%doc examples docs
|
||||
%files %{?suse_version: -f INSTALLED_FILES}
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.LESSER README.rst examples docs
|
||||
%if 0%{!?suse_version:1}
|
||||
%python_sitearch/%{mod_name}*
|
||||
%python_sitearch/zmq*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user