]> git.pld-linux.org Git - packages/python-mkdocs-material.git/blob - python-mkdocs-material.spec
rebuild with tests and docs
[packages/python-mkdocs-material.git] / python-mkdocs-material.spec
1 #
2 # Conditional build:
3 %bcond_without  python2 # CPython 2.x module
4 %bcond_without  python3 # CPython 3.x module
5
6 Summary:        Material Design theme for MkDocs
7 Summary(pl.UTF-8):      Motyw Material Design do MkDocs
8 Name:           python-mkdocs-material
9 Version:        4.1.0
10 Release:        7
11 License:        MIT
12 Group:          Libraries/Python
13 #Source0Download: https://pypi.org/simple/mkdocs-metarial/
14 Source0:        https://files.pythonhosted.org/packages/source/m/mkdocs-material/mkdocs-material-%{version}.tar.gz
15 # Source0-md5:  18d4f27eae59f89ae5a38495e226fcb2
16 URL:            https://squidfunk.github.io/mkdocs-material/
17 %if %{with python2}
18 BuildRequires:  python-mkdocs >= 1
19 BuildRequires:  python-modules >= 1:2.7
20 BuildRequires:  python-pygments >= 2.2
21 BuildRequires:  python-pymdown-extensions >= 4.11
22 BuildRequires:  python-setuptools
23 %endif
24 %if %{with python3}
25 BuildRequires:  python3-mkdocs >= 1
26 BuildRequires:  python3-modules >= 1:3.4
27 BuildRequires:  python3-pygments >= 2.2
28 BuildRequires:  python3-pymdown-extensions >= 4.11
29 BuildRequires:  python3-setuptools
30 %endif
31 BuildRequires:  rpm-pythonprov
32 BuildRequires:  rpmbuild(macros) >= 1.714
33 BuildArch:      noarch
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 Material Design theme for MkDocs.
38
39 %description -l pl.UTF-8
40 Motyw Material Design do MkDocs.
41
42 %package -n python3-mkdocs-material
43 Summary:        Material Design theme for MkDocs
44 Summary(pl.UTF-8):      Motyw Material Design do MkDocs
45 Group:          Libraries/Python
46
47 %description -n python3-mkdocs-material
48 Material Design theme for MkDocs.
49
50 %description -n python3-mkdocs-material -l pl.UTF-8
51 Motyw Material Design do MkDocs.
52
53 %prep
54 %setup -q -n mkdocs-material-%{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 python3}
69 %py3_install
70 %endif
71
72 %if %{with python2}
73 %py_install
74
75 %py_postclean
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.md
85 %{py_sitescriptdir}/material
86 %{py_sitescriptdir}/mkdocs_material-%{version}-py*.egg-info
87 %endif
88
89 %if %{with python3}
90 %files -n python3-mkdocs-material
91 %defattr(644,root,root,755)
92 %doc LICENSE README.md
93 %{py3_sitescriptdir}/material
94 %{py3_sitescriptdir}/mkdocs_material-%{version}-py*.egg-info
95 %endif
This page took 0.094455 seconds and 3 git commands to generate.