3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
5 %bcond_without tests # do not perform "setup.py test"
6 %bcond_without setuptools # build without setuptools (for bootstraping)
8 Summary: Python 2 module to choose appropriate application directories
9 Summary(pl.UTF-8): Moduł Pythona 2 do wyboru właściwych katalogów aplikacji
14 Group: Development/Languages/Python
15 #Source0Download: https://pypi.python.org/simple/appdirs
16 Source0: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz
17 # Source0-md5: 44c679904082a2133f5566c8a0d3ab42
18 URL: https://github.com/ActiveState/appdirs
20 BuildRequires: python-devel >= 1:2.6
21 %{?with_setuptools:BuildRequires: python-setuptools}
22 %if %{with tests} && "%{py_ver}" < "2.7"
23 BuildRequires: python-unittest2
27 BuildRequires: python3-devel >= 1:3.2
28 %{?with_setuptools:BuildRequires: python3-setuptools}
30 BuildRequires: rpm-pythonprov
31 BuildRequires: rpmbuild(macros) >= 1.714
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 appdirs is a module that helps you choose an appropriate:
44 %description -l pl.UTF-8
45 appdirs to moduł pomagający wybrać właściwy katalog dla:
47 - konfiguracji użytkownika
48 - pamięci podręcznej użytkownika
50 - konfiguracji systemu
53 %package -n python3-appdirs
54 Summary: Python 3 module to choose appropriate application directories
55 Summary(pl.UTF-8): Moduł Pythona 3 do wyboru właściwych katalogów aplikacji
56 Group: Development/Languages/Python
58 %description -n python3-appdirs
59 appdirs is a module that helps you choose an appropriate:
67 %description -n python3-appdirs -l pl.UTF-8
68 appdirs to moduł pomagający wybrać właściwy katalog dla:
70 - konfiguracji użytkownika
71 - pamięci podręcznej użytkownika
73 - konfiguracji systemu
77 %setup -q -n appdirs-%{version}
81 %py_build %{?with_tests:test}
85 %py3_build %{?with_tests:test}
89 rm -rf $RPM_BUILD_ROOT
102 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc CHANGES.rst LICENSE.txt README.rst
108 %{py_sitescriptdir}/appdirs.py[co]
109 %{py_sitescriptdir}/appdirs-%{version}-py*.egg-info
113 %files -n python3-appdirs
114 %defattr(644,root,root,755)
115 %doc CHANGES.rst LICENSE.txt README.rst
116 %{py3_sitescriptdir}/appdirs.py
117 %{py3_sitescriptdir}/__pycache__/appdirs.cpython-*.py[co]
118 %{py3_sitescriptdir}/appdirs-%{version}-py*.egg-info