]> git.pld-linux.org Git - packages/python3-xdg.git/blame - python3-xdg.spec
rebuild with python 3.10
[packages/python3-xdg.git] / python3-xdg.spec
CommitLineData
dba1f8a5
JB
1Summary: Variables defined by the XDG Base Directory Specification
2Summary(pl.UTF-8): Zmienne zdefiniowane w specyfikacji XDG Base Directory
3Name: python3-xdg
4Version: 4.0.1
c64e74b0 5Release: 4
dba1f8a5
JB
6License: MIT
7Group: Libraries/Python
8#Source0Download: https://pypi.org/simple/xdg/
9Source0: https://files.pythonhosted.org/packages/source/x/xdg/xdg-%{version}.tar.gz
10# Source0-md5: 07ff5bf0e315bd4589a51eab18a5b979
11Patch0: %{name}-rename.patch
12URL: https://pypi.org/project/xdg/
13BuildRequires: python3-modules >= 1:3.6
14BuildRequires: python3-setuptools
15BuildRequires: rpm-pythonprov
16BuildRequires: rpmbuild(macros) >= 1.714
17Requires: python3-modules >= 1:3.6
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22xdg is a tiny Python module which provides the variables defined by
23the XDG Base Directory Specification, to save you from duplicating the
24same snippet of logic in every Python utility you write that deals
25with user cache, configuration, or data files. It has no external
26dependencies.
27
28%description -l pl.UTF-8
29xdg to mały moduł Pythona, udostępniający zmienne zdefiniowane w
30specyfikacji XDG Base Directory, aby oszczędzić duplikowania tej samej
31logiki w każdym narzędziu pythonowym, które obsługuje pamięć
32podręczną, konfigurację czy pliki danych użytkownika. Moduł nie ma
33zewnę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
47rm -rf $RPM_BUILD_ROOT
48
49%py3_install
50
51%clean
52rm -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
This page took 0.139779 seconds and 4 git commands to generate.