1 Summary: Variables defined by the XDG Base Directory Specification
2 Summary(pl.UTF-8): Zmienne zdefiniowane w specyfikacji XDG Base Directory
7 Group: Libraries/Python
8 #Source0Download: https://pypi.org/simple/xdg/
9 Source0: https://files.pythonhosted.org/packages/source/x/xdg/xdg-%{version}.tar.gz
10 # Source0-md5: 07ff5bf0e315bd4589a51eab18a5b979
11 Patch0: %{name}-rename.patch
12 URL: https://pypi.org/project/xdg/
13 BuildRequires: python3-modules >= 1:3.6
14 BuildRequires: python3-setuptools
15 BuildRequires: rpm-pythonprov
16 BuildRequires: rpmbuild(macros) >= 1.714
17 Requires: python3-modules >= 1:3.6
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 xdg is a tiny Python module which provides the variables defined by
23 the XDG Base Directory Specification, to save you from duplicating the
24 same snippet of logic in every Python utility you write that deals
25 with user cache, configuration, or data files. It has no external
28 %description -l pl.UTF-8
29 xdg to mały moduł Pythona, udostępniający zmienne zdefiniowane w
30 specyfikacji XDG Base Directory, aby oszczędzić duplikowania tej samej
31 logiki w każdym narzędziu pythonowym, które obsługuje pamięć
32 podręczną, konfigurację czy pliki danych użytkownika. Moduł nie ma
33 zewnętrznych zależności.
36 %setup -q -n xdg-%{version}
38 # "xdg" name conflicts with older (but more comprehensive) pyxdg module,
39 # which uses xdg namespace; rename to allow using both in the same system.
41 %{__mv} src/{xdg,xdgenv}
47 rm -rf $RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc LICENCE README.md
57 %{py3_sitescriptdir}/xdgenv
58 %{py3_sitescriptdir}/xdg-%{version}-py*.egg-info