]> git.pld-linux.org Git - packages/python-gdata.git/blame - python-gdata.spec
- updated to 2.0.18
[packages/python-gdata.git] / python-gdata.spec
CommitLineData
f7fd580b
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
2d79ec53 5%define module gdata
2d79ec53 6Summary: Google Data API for Python
1f57155d 7Summary(pl.UTF-8): API Google Data dla Pythona
2d79ec53 8Name: python-%{module}
f7fd580b
JB
9Version: 2.0.18
10Release: 1
1f57155d 11License: Apache v2.0
2d79ec53 12Group: Development/Languages/Python
f7fd580b
JB
13#Source0Download: https://pypi.python.org/simple/gdata
14Source0: https://pypi.python.org/packages/source/g/gdata/%{module}-%{version}.tar.gz
15# Source0-md5: 13b6e6dd8f9e3e9a8e005e05a8329408
16URL: https://github.com/google/gdata-python-client
f6833af7 17BuildRequires: python >= 1:2.5
f7fd580b 18BuildRequires: python-modules >= 1:2.5
1f57155d 19BuildRequires: rpm-pythonprov
f7fd580b
JB
20BuildRequires: rpmbuild(macros) >= 1.714
21Requires: python-modules >= 1:2.5
2d79ec53
PZ
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
1f57155d 26The Google Data Python Client Library provides a library and source
2d79ec53
PZ
27code that make it easy to access data through Google Data APIs.
28
1f57155d
JB
29%description -l pl.UTF-8
30Projekt Google Data Python Client Library udostępnia wraz z kodem
31bibliotekę ułatwiającą dostęp do danych poprzez API Google Data.
32
f7fd580b
JB
33%package apidocs
34Summary: Google Data Python module documentation in HTML format
35Summary(pl.UTF-8): Dokumentacja modułu Pythona Google Data w formacie HTML
36Group: Documentation
37
38%description apidocs
39Google Data Python module documentation in HTML format.
40
41%description apidocs -l pl.UTF-8
42Dokumentacja modułu Pythona Google Data w formacie HTML.
43
2d79ec53 44%prep
0047c734 45%setup -q -n %{module}-%{version}
2d79ec53
PZ
46
47%build
d7dd8d1a 48%py_build
2d79ec53 49
f7fd580b
JB
50%if %{with tests}
51PYTHONPATH=$(pwd)/build-2/lib %{__python} tests/run_data_tests.py
52%endif
53
2d79ec53
PZ
54%install
55rm -rf $RPM_BUILD_ROOT
56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57
d7dd8d1a 58%py_install
2d79ec53 59
f7fd580b 60cp -pr samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
f6833af7
MB
61
62%py_postclean
2d79ec53
PZ
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%doc README.txt RELEASE_NOTES.txt
70%{py_sitescriptdir}/%{module}
71%{py_sitescriptdir}/atom
0047c734 72%{py_sitescriptdir}/gdata-*.egg-info
f6833af7 73%{_examplesdir}/%{name}-%{version}
f7fd580b
JB
74
75%files apidocs
76%defattr(644,root,root,755)
77%doc pydocs/*.html
This page took 0.061722 seconds and 4 git commands to generate.