python-gevent/python-gevent.spec

57 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-gevent
Version: 1.0.1
Release: 2mamba
Summary: Coroutine-based network library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gevent.org/
Source: https://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz
Patch0: python-gevent-1.0.1-python-2.7.6.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%prep
%setup -q -n gevent-%{version}
#-D -T
#:<< _EOF
%patch0 -p1
%build
#:<< _EOF
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/gevent-1.0.1-py2.7.egg-info/
%{python_sitearch}/gevent-1.0.1-py2.7.egg-info/*
%doc AUTHORS LICENSE
%changelog
* Wed Feb 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-2mamba
- upstream patch to fix bug with python 2.7.6
* Wed May 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-1mamba
- package created by silvan using the webbuild interface