apevec pushed to python-oslo-sphinx (master). "Added python3 subpackage"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Mar 27 11:26:21 UTC 2015
>From 855d2e63f69d79c3945871c7316922a2ed066c9c Mon Sep 17 00:00:00 2001
From: Parag Nemade <pnemade at redhat.com>
Date: Mon, 16 Mar 2015 13:04:55 +0530
Subject: Added python3 subpackage
diff --git a/python-oslo-sphinx.spec b/python-oslo-sphinx.spec
index 8d7f42e..8b39a45 100644
--- a/python-oslo-sphinx.spec
+++ b/python-oslo-sphinx.spec
@@ -1,5 +1,9 @@
%global pypi_name oslosphinx
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
@@ -9,7 +13,7 @@
Name: python-oslo-sphinx
Version: 2.5.0
Release: 1%{?dist}
-Summary: OpenStack Sphinx Extensions and Theme
+Summary: OpenStack Sphinx Extensions and Theme for Python 2
License: ASL 2.0
URL: https://launchpad.net/oslo
@@ -24,22 +28,57 @@ BuildRequires: python-pbr
BuildRequires: python-d2to1
%description
-The Oslo project intends to produce a python library containing
+The Oslo project intends to produce a python 2 library containing
+infrastructure code shared by OpenStack projects. The APIs provided
+by the project should be high quality, stable, consistent and generally
+useful.
+
+The oslo-sphinx library contains Sphinx theme and extensions support used by
+OpenStack.
+
+%if 0%{with_python3}
+%package -n python3-oslo-sphinx
+Summary: OpenStack Sphinx Extensions and Theme for Python 3
+License: ASL 2.0
+BuildArch: noarch
+Requires: python3-setuptools
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr
+BuildRequires: python3-d2to1
+%endif
+
+%if 0%{with_python3}
+%description -n python3-oslo-sphinx
+The Oslo project intends to produce a python 3 library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.
The oslo-sphinx library contains Sphinx theme and extensions support used by
OpenStack.
+%endif
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
+%if 0%{with_python3}
+cp -a . %{py3dir}
+%endif
+
%build
%{__python2} setup.py build
+%if 0%{with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+
%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
@@ -52,17 +91,35 @@ sed -i '/packages =/ { N; s/oslosphinx/oslo\n\toslo.sphinx\nnamespace_packages =
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
ln -s ../../oslosphinx/theme %{buildroot}%{python2_sitelib}/oslo/sphinx
+%if 0%{with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+
%files
-%doc LICENSE README.rst
+%doc README.rst
+%license LICENSE
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/oslo
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/*-nspkg.pth
+%if 0%{with_python3}
+%files -n python3-oslo-sphinx
+%doc README.rst
+%license LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/*.egg-info
+%endif
+
%changelog
* Wed Mar 25 2015 Alan Pevec <alan.pevec at redhat.com> - 2.5.0-1
- Update to 2.5.0
+* Fri Mar 13 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.0-3
+- Added python3 subpackage
+
* Mon Dec 15 2014 Alan Pevec <alan.pevec at redhat.com> - 2.3.0-2
- Update to 2.3.0
- Provide oslo.sphinx theme compatibility symlink
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-oslo-sphinx.git/commit/?h=master&id=855d2e63f69d79c3945871c7316922a2ed066c9c
More information about the scm-commits
mailing list