3 %bcond_without python2 # Python 2.x module
4 %bcond_without python3 # Python 3.x module
8 Summary: Makes customizable human readable timedeltas
9 Summary(pl.UTF-8): Konfigurowalne, czytelne dla człowieka różnice czasu
13 License: Public Domain
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/ago/
16 Source0: https://files.pythonhosted.org/packages/source/a/ago/ago-%{version}.tar.gz
17 # Source0-md5: e2fdc21fb922b4fc21ec19c6eac6bd46
18 Patch0: ago-python3.patch
19 URL: https://bitbucket.org/russellballestrini/ago/overview
21 BuildRequires: python-devel
22 BuildRequires: python-modules
23 BuildRequires: python-setuptools
26 BuildRequires: python3-2to3
27 BuildRequires: python3-devel
28 BuildRequires: python3-modules
29 BuildRequires: python3-setuptools
31 BuildRequires: rpm-pythonprov
32 BuildRequires: rpmbuild(macros) >= 1.714
33 Requires: python-modules
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Makes customizable human readable timedeltas.
40 %description -l pl.UTF-8
41 Konfigurowalne, czytelne dla człowieka różnice czasu.
43 %package -n python3-%{module}
44 Summary: Makes customizable human readable timedeltas
45 Summary(pl.UTF-8): Konfigurowalne, czytelne dla człowieka różnice czasu
46 Group: Libraries/Python
47 Requires: python3-modules
49 %description -n python3-%{module}
50 Makes customizable human readable timedeltas.
52 %description -n python3-%{module} -l pl.UTF-8
53 Konfigurowalne, czytelne dla człowieka różnice czasu.
56 %setup -q -n ago-%{version}
69 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
77 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
82 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %doc PKG-INFO README.rst
88 %{_examplesdir}/python-%{module}-%{version}
89 %{py_sitescriptdir}/%{module}.py*
90 %{py_sitescriptdir}/*egg-info
94 %files -n python3-%{module}
95 %defattr(644,root,root,755)
96 %doc PKG-INFO README.rst
97 %{_examplesdir}/python3-%{module}-%{version}
98 %{py3_sitescriptdir}/%{module}.py*
99 %{py3_sitescriptdir}/__pycache__/ago.cpython-*.py*
100 %{py3_sitescriptdir}/*egg-info