]> git.pld-linux.org Git - packages/python-alabaster.git/blobdiff - python-alabaster.spec
rebuild with tests and docs
[packages/python-alabaster.git] / python-alabaster.spec
index 0bf3ba05286fd4a79d1929aaff0f606de1784335..b3a9e73d58e453e7d60244ac66cf47369b8a360c 100644 (file)
@@ -7,26 +7,26 @@
 Summary:       A configurable sidebar-enabled Sphinx theme
 Summary(pl.UTF-8):     Konfigurowany motyw z bocznym panelem dla Sphinksa
 Name:          python-%{module}
-Version:       0.7.4
-Release:       1
+Version:       0.7.12
+Release:       6
 License:       BSD
 Group:         Libraries/Python
-#Source0Download: https://pypi.python.org/pypi/alabaster
-Source0:       https://pypi.python.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz
-# Source0-md5: ba31bf652194200428aa4e3d976f5ccd
-URL:           https://pypi.python.org/pypi/alabaster
+#Source0Download: https://pypi.org/simple/alabaster/
+Source0:       https://files.pythonhosted.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz
+# Source0-md5: 3591827fde96d1dd23970fb05410ed04
+URL:           https://pypi.org/project/alabaster/
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires: python-devel
-BuildRequires: python-setuptools >= 7.0
+BuildRequires: python-devel >= 1:2.6
+BuildRequires: python-setuptools >= 1:7.0
 %endif
 %if %{with python3}
-BuildRequires: python3-devel
-BuildRequires: python3-modules
-BuildRequires: python3-setuptools >= 7.0
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools >= 1:7.0
 %endif
-Requires:      python-modules
+Requires:      python-modules >= 1:2.6
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,7 +50,7 @@ z nim.
 Summary:       A configurable sidebar-enabled Sphinx theme
 Summary(pl.UTF-8):     Konfigurowany motyw z bocznym panelem dla Sphinksa
 Group:         Libraries/Python
-Requires:      python3-modules
+Requires:      python3-modules >= 1:3.2
 
 %description -n python3-%{module}
 A configurable sidebar-enabled Sphinx theme
@@ -73,32 +73,24 @@ z nim.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
@@ -107,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
 %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
@@ -115,7 +107,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
This page took 0.089197 seconds and 4 git commands to generate.