python-httplib2/python-httplib2.spec

75 lines
2.4 KiB
RPMSpec

Name: python-httplib2
Version: 0.9
Release: 1mamba
Summary: A comprehensive HTTP client library
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://bitworking.org/projects/httplib2/
Source: https://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
#Source: http://httplib2.googlecode.com/files/httplib2-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
Provides: httplib2
Obsoletes: httplib2
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A comprehensive HTTP client library.
%prep
%setup -q -n httplib2-%{version}
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch}
chmod 0644 %{buildroot}%{python_sitearch}/httplib2/cacerts.txt
chmod 0644 %{buildroot}%{python_sitearch}/httplib2/*.py
chmod 0644 %{buildroot}%{python_sitearch}/httplib2/*.pyc
chmod 0644 %{buildroot}%{python_sitearch}/httplib2-%{version}-py%{python_version}.egg-info/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{python_sitearch}/httplib2
%{python_sitearch}/httplib2/cacerts.txt
%{python_sitearch}/httplib2/*.py
%{python_sitearch}/httplib2/*.pyc
%{python_sitearch}/httplib2-%{version}-py%{python_version}.egg-info
%changelog
* Thu Jul 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9-1mamba
- update to 0.9
* Sat Dec 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8-2mamba
- fix permissions of installed files
* Wed Jun 19 2013 Automatic Build System <autodist@mambasoft.it> 0.8-1mamba
- automatic version update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.7-2mamba
- python 2.7 mass rebuild
* Tue Apr 23 2013 Automatic Build System <autodist@mambasoft.it> 0.7.7-1mamba
- automatic version update by autodist
* Mon Dec 08 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-2mamba
- rebuilt with python 2.6; renamed to python-httplib2
* Wed May 14 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba
- package created by autospec