python-gdata/python-gdata.spec

62 lines
1.6 KiB
RPMSpec
Raw Normal View History

Name: python-gdata
Version: 2.0.18
Release: 1mamba
Summary: Python client library for Google data APIs
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/google/gdata-python-client
Source: https://pypi.debian.net/gdata/gdata-%{version}.zip
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
BuildArch: noarch
%description
Python client library for Google data APIs.
%if "%{?with_pyver}"
%pyver_package
%endif
%prep
%setup -q -n gdata-%{version}
%build
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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend}
#-f %{name}.filelist
%defattr(-,root,root)
%{python_sitearch}/gdata-%{version}-py*.egg-info
%dir %{python_sitearch}/atom
%{python_sitearch}/atom/*
%dir %{python_sitearch}/gdata
%{python_sitearch}/gdata/*
%changelog
* Sat Jul 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.18-1mamba
- update to 2.0.18
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.10-2mamba
- python 2.7 mass rebuild
* Mon Jun 21 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.0.10-1mamba
- package created by autospec