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.org/simple/appdirs
16 Source0: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz
17 # Source0-md5: d6bca12613174185dd9abc8a29f4f012
18 URL: https://github.com/ActiveState/appdirs
20 BuildRequires: python-devel >= 1:2.7
21 %{?with_setuptools:BuildRequires: python-setuptools}
24 BuildRequires: python3-devel >= 1:3.4
25 %{?with_setuptools:BuildRequires: python3-setuptools}
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 appdirs is a module that helps you choose an appropriate:
41 %description -l pl.UTF-8
42 appdirs to moduł pomagający wybrać właściwy katalog dla:
44 - konfiguracji użytkownika
45 - pamięci podręcznej użytkownika
47 - konfiguracji systemu
50 %package -n python3-appdirs
51 Summary: Python 3 module to choose appropriate application directories
52 Summary(pl.UTF-8): Moduł Pythona 3 do wyboru właściwych katalogów aplikacji
53 Group: Development/Languages/Python
55 %description -n python3-appdirs
56 appdirs is a module that helps you choose an appropriate:
64 %description -n python3-appdirs -l pl.UTF-8
65 appdirs to moduł pomagający wybrać właściwy katalog dla:
67 - konfiguracji użytkownika
68 - pamięci podręcznej użytkownika
70 - konfiguracji systemu
74 %setup -q -n appdirs-%{version}
82 %{__python} test/test_api.py
91 %{__python3} test/test_api.py
96 rm -rf $RPM_BUILD_ROOT
109 rm -rf $RPM_BUILD_ROOT
113 %defattr(644,root,root,755)
114 %doc CHANGES.rst LICENSE.txt README.rst
115 %{py_sitescriptdir}/appdirs.py[co]
116 %{py_sitescriptdir}/appdirs-%{version}-py*.egg-info
120 %files -n python3-appdirs
121 %defattr(644,root,root,755)
122 %doc CHANGES.rst LICENSE.txt README.rst
123 %{py3_sitescriptdir}/appdirs.py
124 %{py3_sitescriptdir}/__pycache__/appdirs.cpython-*.py[co]
125 %{py3_sitescriptdir}/appdirs-%{version}-py*.egg-info