fix permissions of installed files [release 0.8-2mamba;Sat Dec 14 2013]

This commit is contained in:
Silvan Calarco 2024-01-06 11:14:29 +01:00
parent 8782803afc
commit 7c973c6b84
2 changed files with 72 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# python-httplib2
A comprehensive HTTP client library.

70
python-httplib2.spec Normal file
View File

@ -0,0 +1,70 @@
Name: python-httplib2
Version: 0.8
Release: 2mamba
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: 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
* 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