]> git.pld-linux.org Git - packages/python-flask_sphinx_themes.git/blob - python-flask_sphinx_themes.spec
97ad31825663cc075a6f030eb9a8cba4f7678703
[packages/python-flask_sphinx_themes.git] / python-flask_sphinx_themes.spec
1 #
2 # Conditional build:
3 %bcond_without  python2 # CPython 2.x module
4 %bcond_without  python3 # CPython 3.x module
5
6 Summary:        Sphinx themes for Flask and related projects
7 Summary(pl.UTF-8):      Motywy Sphinksa dla Flaska i powiązanych projektów
8 Name:           python-flask_sphinx_themes
9 Version:        1.0.2
10 Release:        2
11 License:        BSD
12 Group:          Libraries/Python
13 #Source0Download: https://pypi.org/simple/flask-sphinx-themes/
14 Source0:        https://files.pythonhosted.org/packages/source/f/flask-sphinx-themes/Flask-Sphinx-Themes-%{version}.tar.gz
15 # Source0-md5:  333813fbba8e4956e69ddd70e6b9fbb3
16 URL:            https://pypi.org/project/flask-sphinx-themes/
17 %if %{with python2}
18 BuildRequires:  python-modules >= 1:2.7
19 BuildRequires:  python-setuptools
20 %endif
21 %if %{with python3}
22 BuildRequires:  python3-modules >= 1:3.4
23 BuildRequires:  python3-setuptools
24 %endif
25 BuildRequires:  rpm-pythonprov
26 BuildRequires:  rpmbuild(macros) >= 1.714
27 Requires:       python-modules >= 1:2.7
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This package contains Sphinx themes for Flask and Flask related
33 projects.
34
35 %description -l pl.UTF-8
36 Ten pakiet zawiera motywy Sphinksa dla Flaska i projektów związanych z
37 Flaskiem.
38
39 %package -n python3-flask_sphinx_themes
40 Summary:        Sphinx themes for Flask and related projects
41 Summary(pl.UTF-8):      Motywy Sphinksa dla Flaska i powiązanych projektów
42 Group:          Libraries/Python
43 Requires:       python3-modules >= 1:3.4
44
45 %description -n python3-flask_sphinx_themes
46 This package contains Sphinx themes for Flask and Flask related
47 projects.
48
49 %description -n python3-flask_sphinx_themes -l pl.UTF-8
50 Ten pakiet zawiera motywy Sphinksa dla Flaska i projektów związanych z
51 Flaskiem.
52
53 %prep
54 %setup -q -n Flask-Sphinx-Themes-%{version}
55
56 %build
57 %if %{with python2}
58 %py_build
59 %endif
60
61 %if %{with python3}
62 %py3_build
63 %endif
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %if %{with python2}
69 %py_install
70
71 %py_postclean
72 %endif
73
74 %if %{with python3}
75 %py3_install
76 %endif
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %if %{with python2}
82 %files
83 %defattr(644,root,root,755)
84 %doc LICENSE README.rst
85 %{py_sitescriptdir}/flask_sphinx_themes
86 %{py_sitescriptdir}/Flask_Sphinx_Themes-%{version}-py*.egg-info
87 %endif
88
89 %if %{with python3}
90 %files -n python3-flask_sphinx_themes
91 %defattr(644,root,root,755)
92 %doc LICENSE README.rst
93 %{py3_sitescriptdir}/flask_sphinx_themes
94 %{py3_sitescriptdir}/Flask_Sphinx_Themes-%{version}-py*.egg-info
95 %endif
This page took 0.091396 seconds and 2 git commands to generate.