[packages/python-alabaster] new package
jajcus
jajcus at pld-linux.org
Mon Jun 15 11:08:32 CEST 2015
commit afc9ffc876f479beff120935f9a29d5f10d21417
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Mon Jun 15 11:08:11 2015 +0200
new package
python-alabaster.spec | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 103 insertions(+)
---
diff --git a/python-alabaster.spec b/python-alabaster.spec
new file mode 100644
index 0000000..3b6f4ac
--- /dev/null
+++ b/python-alabaster.spec
@@ -0,0 +1,103 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module alabaster
+Summary: A configurable sidebar-enabled Sphinx theme
+Name: python-%{module}
+Version: 0.7.4
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/a/alabaster/%{module}-%{version}.tar.gz
+# Source0-md5: ba31bf652194200428aa4e3d976f5ccd
+URL: https://pypi.python.org/pypi/alabaster
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+%if %{with python2}
+BuildRequires: python-devel
+BuildRequires: python-setuptools >= 7.0
+%endif
+%if %{with python3}
+BuildRequires: python3-devel
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools >= 7.0
+%endif
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A configurable sidebar-enabled Sphinx theme
+
+This theme is a modified “Kr” Sphinx theme from @kennethreitz
+(especially as used in his Requests project), which was itself
+originally based on @mitsuhiko’s theme used for Flask & related
+projects.
+
+%package -n python3-%{module}
+Summary: A configurable sidebar-enabled Sphinx theme
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-%{module}
+A configurable sidebar-enabled Sphinx theme
+
+This theme is a modified “Kr” Sphinx theme from @kennethreitz
+(especially as used in his Requests project), which was itself
+originally based on @mitsuhiko’s theme used for Flask & related
+projects.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%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_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+ build --build-base build-3 \
+ install --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-alabaster.git/commitdiff/afc9ffc876f479beff120935f9a29d5f10d21417
More information about the pld-cvs-commit
mailing list