python-gevent/python-gevent.spec

63 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-gevent
Version: 1.1.2
Release: 1mamba
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.debian.net/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
sed -i "/_socket3.py/d" %{name}.filelist
%files -f %{name}.filelist
%defattr(-,root,root)
%{python_sitearch}/gevent/_socket3.py*
%doc AUTHORS LICENSE
%changelog
* Fri Jul 22 2016 Automatic Build System <autodist@mambasoft.it> 1.1.2-1mamba
- automatic version update by autodist
* Fri May 20 2016 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
- automatic version update by autodist
* 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