3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
7 Summary: Python 2 implementations of freedesktop.org standards
8 Summary(pl.UTF-8): Implementacje standardów freedesktop.org w języku Python 2
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pyxdg/
15 Source0: https://files.pythonhosted.org/packages/source/p/pyxdg/%{module}-%{version}.tar.gz
16 # Source0-md5: db1c2af8300ca64ce3955b3cf2490c92
17 URL: https://freedesktop.org/wiki/Software/pyxdg/
18 %{?with_python2:BuildRequires: python-devel >= 1:2.6}
19 %{?with_python3:BuildRequires: python3-devel >= 1:3.2}
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.714
22 Requires: python-modules >= 1:2.6
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 PyXDG is a Python module to access freedesktop.org standards. The
30 - Implementation of the XDG-Base-Directory Standard
31 - Implementation of the XDG-Desktop Standard
32 - Implementation of the XDG-Menu Standard
33 - Implementation of the XDG-Icon-Theme Standard
34 - Implementation of the XDG-Shared MIME-info Database
35 - Implementation of the XDG-Recent File Storage Specification
37 %description -l pl.UTF-8
38 PyXDG jest modułem języka Python, pozwalającym na wykorzystywanie
39 standardów freedesktop.org. Pakiet zawiera:
41 - Implementację standardu XDG-Base-Directory
42 - Implementację standardu XDG-Desktop
43 - Implementację standardu XDG-Menu
44 - Implementację standardu XDG-Icon-Theme
45 - Implementację bazy XDG-Shared MIME-info
46 - Implementację specyfikacji XDG-Recent File Storage
48 %package -n python3-pyxdg
49 Summary: Python 3 implementations of freedesktop.org standards
50 Summary(pl.UTF-8): Implementacje standardów freedesktop.org w języku Python 3
51 Group: Libraries/Python
52 Requires: python3-modules >= 1:3.2
54 %description -n python3-pyxdg
55 PyXDG is a Python module to access freedesktop.org standards. The
58 - Implementation of the XDG-Base-Directory Standard
59 - Implementation of the XDG-Desktop Standard
60 - Implementation of the XDG-Menu Standard
61 - Implementation of the XDG-Icon-Theme Standard
62 - Implementation of the XDG-Shared MIME-info Database
63 - Implementation of the XDG-Recent File Storage Specification
65 %description -n python3-pyxdg -l pl.UTF-8
66 PyXDG jest modułem języka Python, pozwalającym na wykorzystywanie
67 standardów freedesktop.org. Pakiet zawiera:
69 - Implementację standardu XDG-Base-Directory
70 - Implementację standardu XDG-Desktop
71 - Implementację standardu XDG-Menu
72 - Implementację standardu XDG-Icon-Theme
73 - Implementację bazy XDG-Shared MIME-info
74 - Implementację specyfikacji XDG-Recent File Storage
77 %setup -q -n %{module}-%{version}
89 rm -rf $RPM_BUILD_ROOT
101 rm -rf $RPM_BUILD_ROOT
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog README TODO
107 %dir %{py_sitescriptdir}/xdg
108 %{py_sitescriptdir}/xdg/*.py[co]
109 %{py_sitescriptdir}/pyxdg-%{version}-py*.egg-info
113 %files -n python3-pyxdg
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog README TODO
116 %dir %{py3_sitescriptdir}/xdg
117 %{py3_sitescriptdir}/xdg/*.py
118 %{py3_sitescriptdir}/xdg/__pycache__
119 %{py3_sitescriptdir}/pyxdg-%{version}-py*.egg-info