]>
Commit | Line | Data |
---|---|---|
f7fd580b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # unit tests | |
4 | ||
2d79ec53 | 5 | %define module gdata |
2d79ec53 | 6 | Summary: Google Data API for Python |
1f57155d | 7 | Summary(pl.UTF-8): API Google Data dla Pythona |
2d79ec53 | 8 | Name: python-%{module} |
f7fd580b JB |
9 | Version: 2.0.18 |
10 | Release: 1 | |
1f57155d | 11 | License: Apache v2.0 |
2d79ec53 | 12 | Group: Development/Languages/Python |
f7fd580b JB |
13 | #Source0Download: https://pypi.python.org/simple/gdata |
14 | Source0: https://pypi.python.org/packages/source/g/gdata/%{module}-%{version}.tar.gz | |
15 | # Source0-md5: 13b6e6dd8f9e3e9a8e005e05a8329408 | |
16 | URL: https://github.com/google/gdata-python-client | |
f6833af7 | 17 | BuildRequires: python >= 1:2.5 |
f7fd580b | 18 | BuildRequires: python-modules >= 1:2.5 |
1f57155d | 19 | BuildRequires: rpm-pythonprov |
f7fd580b JB |
20 | BuildRequires: rpmbuild(macros) >= 1.714 |
21 | Requires: python-modules >= 1:2.5 | |
2d79ec53 PZ |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
1f57155d | 26 | The Google Data Python Client Library provides a library and source |
2d79ec53 PZ |
27 | code that make it easy to access data through Google Data APIs. |
28 | ||
1f57155d JB |
29 | %description -l pl.UTF-8 |
30 | Projekt Google Data Python Client Library udostępnia wraz z kodem | |
31 | bibliotekę ułatwiającą dostęp do danych poprzez API Google Data. | |
32 | ||
f7fd580b JB |
33 | %package apidocs |
34 | Summary: Google Data Python module documentation in HTML format | |
35 | Summary(pl.UTF-8): Dokumentacja modułu Pythona Google Data w formacie HTML | |
36 | Group: Documentation | |
37 | ||
38 | %description apidocs | |
39 | Google Data Python module documentation in HTML format. | |
40 | ||
41 | %description apidocs -l pl.UTF-8 | |
42 | Dokumentacja 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} |
51 | PYTHONPATH=$(pwd)/build-2/lib %{__python} tests/run_data_tests.py | |
52 | %endif | |
53 | ||
2d79ec53 PZ |
54 | %install |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | ||
d7dd8d1a | 58 | %py_install |
2d79ec53 | 59 | |
f7fd580b | 60 | cp -pr samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
f6833af7 MB |
61 | |
62 | %py_postclean | |
2d79ec53 PZ |
63 | |
64 | %clean | |
65 | rm -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 |