From 7c973c6b847e4974150f7e98e626d438e42ffe5a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:14:29 +0100 Subject: [PATCH] fix permissions of installed files [release 0.8-2mamba;Sat Dec 14 2013] --- README.md | 2 ++ python-httplib2.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 python-httplib2.spec diff --git a/README.md b/README.md index 0529237..b16d623 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-httplib2 +A comprehensive HTTP client library. + diff --git a/python-httplib2.spec b/python-httplib2.spec new file mode 100644 index 0000000..b60317a --- /dev/null +++ b/python-httplib2.spec @@ -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 +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 0.8-2mamba +- fix permissions of installed files + +* Wed Jun 19 2013 Automatic Build System 0.8-1mamba +- automatic version update by autodist + +* Fri May 17 2013 Silvan Calarco 0.7.7-2mamba +- python 2.7 mass rebuild + +* Tue Apr 23 2013 Automatic Build System 0.7.7-1mamba +- automatic version update by autodist + +* Mon Dec 08 2008 Silvan Calarco 0.4.0-2mamba +- rebuilt with python 2.6; renamed to python-httplib2 + +* Wed May 14 2008 Silvan Calarco 0.4.0-1mamba +- package created by autospec