[packages/python-sphinxcontrib-bitbucket] - new

qboosh qboosh at pld-linux.org
Sun Jun 11 10:59:18 CEST 2017


commit 22b82d0a62f3f963974a8f96ab84b14a657b2dca
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 11 11:00:20 2017 +0200

    - new

 python-sphinxcontrib-bitbucket-py3.patch |  31 +++++++++
 python-sphinxcontrib-bitbucket.spec      | 104 +++++++++++++++++++++++++++++++
 2 files changed, 135 insertions(+)
---
diff --git a/python-sphinxcontrib-bitbucket.spec b/python-sphinxcontrib-bitbucket.spec
new file mode 100644
index 0000000..a2a99df
--- /dev/null
+++ b/python-sphinxcontrib-bitbucket.spec
@@ -0,0 +1,104 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Sphinx/BitBucket integration module for Python 2
+Summary(pl.UTF-8):	Moduł integrujący Sphinx/BitBucket dla Pythona 2
+Name:		python-sphinxcontrib-bitbucket
+Version:	1.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinxcontrib-bitbucket/sphinxcontrib-bitbucket-%{version}.tar.gz
+# Source0-md5:	129147d406087e44769ae7320a2d839b
+Patch0:		%{name}-py3.patch
+URL:		http://www.doughellmann.com/projects/sphinxcontrib-bitbucket/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-modules >= 2
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 3
+BuildRequires:	python3-setuptools
+%endif
+Requires:	python-modules >= 2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module adds custom roles for linking to resources on BitBucket
+projects.
+
+%description -l pl.UTF-8
+Ten moduł dodaje własne role, pozwalające na dowiązywanie do zasobów
+projektów na serwisie BitBucket.
+
+%package -n python3-sphinxcontrib-bitbucket
+Summary:	Sphinx/BitBucket integration module for Python 3
+Summary(pl.UTF-8):	Moduł integrujący Sphinx/BitBucket dla Pythona 3
+Group:		Libraries/Python
+Requires:	python3-modules >= 3
+
+%description -n python3-sphinxcontrib-bitbucket
+This module adds custom roles for linking to resources on BitBucket
+projects.
+
+%description -n python3-sphinxcontrib-bitbucket -l pl.UTF-8
+Ten moduł dodaje własne role, pozwalające na dowiązywanie do zasobów
+projektów na serwisie BitBucket.
+
+%prep
+%setup -q -n sphinxcontrib-bitbucket-%{version}
+%patch -p1
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README
+# XXX: shared dir
+%dir %{py_sitescriptdir}/sphinxcontrib
+%{py_sitescriptdir}/sphinxcontrib/bitbucket.py[co]
+%{py_sitescriptdir}/sphinxcontrib_bitbucket-%{version}-py*.egg-info
+%{py_sitescriptdir}/sphinxcontrib_bitbucket-%{version}-py*-nspkg.pth
+%endif
+
+%if %{with python3}
+%files -n python3-sphinxcontrib-bitbucket
+%defattr(644,root,root,755)
+%doc LICENSE README
+# XXX: shared dirs
+%dir %{py3_sitescriptdir}/sphinxcontrib
+%dir %{py3_sitescriptdir}/sphinxcontrib/__pycache__
+%{py3_sitescriptdir}/sphinxcontrib/bitbucket.py
+%{py3_sitescriptdir}/sphinxcontrib/__pycache__/bitbucket.cpython-*.py[co]
+%{py3_sitescriptdir}/sphinxcontrib_bitbucket-%{version}-py*.egg-info
+%{py3_sitescriptdir}/sphinxcontrib_bitbucket-%{version}-py*-nspkg.pth
+%endif
diff --git a/python-sphinxcontrib-bitbucket-py3.patch b/python-sphinxcontrib-bitbucket-py3.patch
new file mode 100644
index 0000000..1d703d9
--- /dev/null
+++ b/python-sphinxcontrib-bitbucket-py3.patch
@@ -0,0 +1,31 @@
+--- sphinxcontrib-bitbucket-1.0/setup.py.orig	2017-06-11 09:27:16.353872871 +0200
++++ sphinxcontrib-bitbucket-1.0/setup.py	2017-06-11 09:28:06.537205635 +0200
+@@ -39,5 +39,4 @@
+     include_package_data=True,
+     install_requires=requires,
+     namespace_packages=['sphinxcontrib'],
+-    py_modules = [ 'distribute_setup' ],
+ )
+--- sphinxcontrib-bitbucket-1.0/setup.py.orig	2011-04-24 18:19:59.000000000 +0200
++++ sphinxcontrib-bitbucket-1.0/setup.py	2017-06-11 07:54:58.777269436 +0200
+@@ -1,9 +1,5 @@
+ # -*- coding: utf-8 -*-
+ 
+-# Bootstrap installation of Distribute
+-import distribute_setup
+-distribute_setup.use_setuptools()
+-
+ from setuptools import setup, find_packages
+ 
+ try:
+--- sphinxcontrib-bitbucket-1.0/sphinxcontrib/bitbucket.py.orig	2011-04-10 18:57:42.000000000 +0200
++++ sphinxcontrib-bitbucket-1.0/sphinxcontrib/bitbucket.py	2017-06-11 09:27:02.293873035 +0200
+@@ -23,7 +23,7 @@
+         base = app.config.bitbucket_project_url
+         if not base:
+             raise AttributeError
+-    except AttributeError, err:
++    except AttributeError as err:
+         raise ValueError('bitbucket_project_url configuration value is not set (%s)' % str(err))
+     #
+     slash = '/' if base[-1] != '/' else ''
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinxcontrib-bitbucket.git/commitdiff/22b82d0a62f3f963974a8f96ab84b14a657b2dca



More information about the pld-cvs-commit mailing list