]> git.pld-linux.org Git - packages/python-sphinxcontrib.git/blob - python-sphinxcontrib.spec
- common package for sphinxcontrib.*, based on python-backports
[packages/python-sphinxcontrib.git] / python-sphinxcontrib.spec
1 #
2 # Conditional build:
3 %bcond_without  python2 # CPython 2.x module
4 %bcond_without  python3 # CPython 3.x module
5
6 Summary:        Namespace for Python 2 sphinxcontrib.* packages
7 Summary(pl.UTF-8):      Przestrzeń nazw dla pakietów Pythona 2 sphinxcontrib.*
8 Name:           python-sphinxcontrib
9 Version:        0
10 Release:        1
11 Group:          Libraries/Python
12 # Only code is sourced from http://www.python.org/dev/peps/pep-0382/
13 License:        Public Domain
14 Source0:        __init__.py
15 BuildRequires:  rpm-pythonprov
16 BuildRequires:  rpmbuild(macros) >= 1.507
17 Conflicts:      python-sphinxcontrib-asyncio < 0.2.0-2
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 # nothing to put there
22 %define         _enable_debug_packages  0
23
24 %description
25 This package provides sphinxcontrib namespace for Python 2 packages.
26
27 %description -l pl.UTF-8
28 Ten pakiet dostarcza przestrzeń nazw sphinxcontrib dla pakietów
29 Pythona 2.
30
31 %package -n python3-sphinxcontrib
32 Summary:        Namespace for Python 3 sphinxcontrib.* packages
33 Summary(pl.UTF-8):      Przestrzeń nazw dla pakietów Pythona 3 sphinxcontrib.*
34 Group:          Libraries/Python
35 Conflicts:      python3-sphinxcontrib-asyncio < 0.2.0-2
36
37 %description -n python3-sphinxcontrib
38 This package provides sphinxcontrib namespace for Python 3 packages.
39
40 %description -n python3-sphinxcontrib -l pl.UTF-8
41 Ten pakiet dostarcza przestrzeń nazw sphinxcontrib dla pakietów
42 Pythona 3.
43
44 %prep
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %if %{with python2}
50 install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinxcontrib
51 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinxcontrib
52
53 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
54 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
55
56 %py_postclean
57 %endif
58
59 %if %{with python3}
60 install -d $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib
61 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib
62
63 %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}
64 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}
65 %endif
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %if %{with python2}
71 %files
72 %defattr(644,root,root,755)
73 %dir %{py_sitescriptdir}/sphinxcontrib
74 %{py_sitescriptdir}/sphinxcontrib/__init__.py[co]
75 %endif
76
77 %if %{with python3}
78 %files -n python3-sphinxcontrib
79 %defattr(644,root,root,755)
80 %dir %{py3_sitescriptdir}/sphinxcontrib
81 %{py3_sitescriptdir}/sphinxcontrib/__init__.py
82 %dir %{py3_sitescriptdir}/sphinxcontrib/__pycache__
83 %{py3_sitescriptdir}/sphinxcontrib/__pycache__/__init__.cpython-*.py[co]
84 %endif
This page took 0.102515 seconds and 3 git commands to generate.