[python-sphinx-theme-better] Initial import

Sandro Mani smani at fedoraproject.org
Mon Jan 6 14:16:39 UTC 2014


commit a290da71920c0984d1f2f31f34df26d0a69cbc90
Author: Sandro Mani <manisandro at gmail.com>
Date:   Mon Jan 6 15:16:36 2014 +0100

    Initial import

 .gitignore                      |    1 +
 python-sphinx-theme-better.spec |   88 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..81df08e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sphinx-better-theme-0.1.5.tar.gz
diff --git a/python-sphinx-theme-better.spec b/python-sphinx-theme-better.spec
new file mode 100644
index 0000000..333d4df
--- /dev/null
+++ b/python-sphinx-theme-better.spec
@@ -0,0 +1,88 @@
+# RHEL-7 doesn't have python 3 and does not know about __python2
+%if 0%{?rhel} == 7
+  %global __python2 %{__python}
+  %global python2_sitelib %{python_sitelib}
+  %global with_python3 0
+%else
+  %global with_python3 1
+%endif
+
+Name:           python-sphinx-theme-better
+Version:        0.1.5
+Release:        3%{?dist}
+Summary:        A Better Sphinx Theme
+
+License:        BSD
+URL:            https://github.com/irskep/sphinx-better-theme
+Source0:        https://pypi.python.org/packages/source/s/sphinx-better-theme/sphinx-better-theme-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+%if %{with_python3}
+BuildRequires:  python3-devel
+%endif
+
+Requires:       python-sphinx
+
+%description
+This is a modified version of the default Sphinx theme with the following goals:
+ * Remove frivolous colors, especially hard-coded ones
+ * Improve readability by limiting width and using more whitespace
+ * Encourage visual customization through CSS, not themeconf
+ * Use semantic markup
+
+
+%if %{with_python3}
+%package -n python3-sphinx-theme-better
+Summary:        A Better Sphinx Theme
+Requires:       python3-sphinx
+
+%description -n python3-sphinx-theme-better
+This is a modified version of the default Sphinx theme with the following goals:
+ * Remove frivolous colors, especially hard-coded ones
+ * Improve readability by limiting width and using more whitespace
+ * Encourage visual customization through CSS, not themeconf
+ * Use semantic markup
+%endif
+
+%prep
+%setup -q -n sphinx-better-theme-%{version}
+
+
+%build
+%{__python2} setup.py build
+
+%if %{with_python3}
+%{__python3} setup.py build
+%endif
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+%if %{with_python3}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+%endif
+
+
+%files
+%doc LICENSE Readme.rst
+%{python2_sitelib}/*
+
+%if %{with_python3}
+%files -n python3-sphinx-theme-better
+%doc LICENSE Readme.rst
+%{python3_sitelib}/*
+%endif
+
+
+%changelog
+* Sun Jan 05 2014 Sandro Mani <manisandro at gmail.com> - 0.1.5-3
+- Use pypi source url
+
+* Sun Jan 05 2014 Sandro Mani <manisandro at gmail.com> - 0.1.5-2
+- Use %%{__python2} and %%{python2_sitelib}, define these macros for rhel7
+
+* Fri Jan 03 2014 Sandro Mani <manisandro at gmail.com> - 0.1.5-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1d62fbe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+34c30b2dc703788f4d7e635649c52d22  sphinx-better-theme-0.1.5.tar.gz


More information about the scm-commits mailing list