]>
Commit | Line | Data |
---|---|---|
dba1f8a5 JB |
1 | Summary: Variables defined by the XDG Base Directory Specification |
2 | Summary(pl.UTF-8): Zmienne zdefiniowane w specyfikacji XDG Base Directory | |
3 | Name: python3-xdg | |
4 | Version: 4.0.1 | |
c64e74b0 | 5 | Release: 4 |
dba1f8a5 JB |
6 | License: MIT |
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 | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
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 | |
26 | dependencies. | |
27 | ||
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. | |
34 | ||
35 | %prep | |
36 | %setup -q -n xdg-%{version} | |
37 | ||
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. | |
40 | %patch0 -p1 | |
41 | %{__mv} src/{xdg,xdgenv} | |
42 | ||
43 | %build | |
44 | %py3_build | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %py3_install | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc LICENCE README.md | |
57 | %{py3_sitescriptdir}/xdgenv | |
58 | %{py3_sitescriptdir}/xdg-%{version}-py*.egg-info |