]> git.pld-linux.org Git - packages/python-alabaster.git/blame - python-alabaster.spec
- pl
[packages/python-alabaster.git] / python-alabaster.spec
CommitLineData
afc9ffc8
JK
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5
6%define module alabaster
7Summary: A configurable sidebar-enabled Sphinx theme
c05795af 8Summary(pl.UTF-8): Konfigurowany motyw z bocznym panelem dla Sphinksa
afc9ffc8
JK
9Name: python-%{module}
10Version: 0.7.4
11Release: 1
12License: BSD
13Group: Libraries/Python
c05795af 14#Source0Download: https://pypi.python.org/pypi/alabaster
afc9ffc8
JK
15Source0: https://pypi.python.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz
16# Source0-md5: ba31bf652194200428aa4e3d976f5ccd
17URL: https://pypi.python.org/pypi/alabaster
18BuildRequires: rpm-pythonprov
19BuildRequires: rpmbuild(macros) >= 1.219
20%if %{with python2}
21BuildRequires: python-devel
22BuildRequires: python-setuptools >= 7.0
23%endif
24%if %{with python3}
25BuildRequires: python3-devel
26BuildRequires: python3-modules
27BuildRequires: python3-setuptools >= 7.0
28%endif
29Requires: python-modules
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
c05795af 34A configurable sidebar-enabled Sphinx theme.
afc9ffc8 35
2c7296e8 36This theme is a modified "Kr" Sphinx theme from @kennethreitz
afc9ffc8 37(especially as used in his Requests project), which was itself
2c7296e8 38originally based on @mitsuhiko's theme used for Flask & related
afc9ffc8
JK
39projects.
40
c05795af
JB
41%description -l pl.UTF-8
42Konfigurowany motyw z bocznym panelem (sidebarem) dla Sphinksa.
43
44Motyw ten to zmodyfikowany motyw Sphinksa "Kr" od @kennethreitz
45(konkretnie wersja używana w jego projekcie Requests), pierwotnie
46oparty na motywie @mitsuhiko używanym w projekcie Flash i powiązanych
47z nim.
48
afc9ffc8
JK
49%package -n python3-%{module}
50Summary: A configurable sidebar-enabled Sphinx theme
c05795af 51Summary(pl.UTF-8): Konfigurowany motyw z bocznym panelem dla Sphinksa
afc9ffc8
JK
52Group: Libraries/Python
53Requires: python3-modules
54
55%description -n python3-%{module}
56A configurable sidebar-enabled Sphinx theme
57
2c7296e8 58This theme is a modified "Kr" Sphinx theme from @kennethreitz
afc9ffc8 59(especially as used in his Requests project), which was itself
2c7296e8 60originally based on @mitsuhiko's theme used for Flask & related
afc9ffc8
JK
61projects.
62
c05795af
JB
63%description -n python3-%{module} -l pl.UTF-8
64Konfigurowany motyw z bocznym panelem (sidebarem) dla Sphinksa.
65
66Motyw ten to zmodyfikowany motyw Sphinksa "Kr" od @kennethreitz
67(konkretnie wersja używana w jego projekcie Requests), pierwotnie
68oparty na motywie @mitsuhiko używanym w projekcie Flash i powiązanych
69z nim.
70
afc9ffc8
JK
71%prep
72%setup -q -n %{module}-%{version}
73
74%build
75%if %{with python2}
76%{__python} setup.py build --build-base build-2 %{?with_tests:test}
77%endif
78
79%if %{with python3}
80%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
81%endif
82
83%install
84rm -rf $RPM_BUILD_ROOT
85
86%if %{with python2}
87%{__python} setup.py \
88 build --build-base build-2 \
89 install --skip-build \
90 --optimize=2 \
91 --root=$RPM_BUILD_ROOT
92
93%py_postclean
94%endif
95
96%if %{with python3}
97%{__python3} setup.py \
98 build --build-base build-3 \
99 install --skip-build \
100 --optimize=2 \
101 --root=$RPM_BUILD_ROOT
102%endif
103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%if %{with python2}
108%files
109%defattr(644,root,root,755)
110%doc README.rst
111%{py_sitescriptdir}/%{module}
112%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
113%endif
114
115%if %{with python3}
116%files -n python3-%{module}
117%defattr(644,root,root,755)
118%doc README.rst
119%{py3_sitescriptdir}/%{module}
120%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
121%endif
This page took 0.08576 seconds and 4 git commands to generate.