[python-sphinx_rtd_theme] Initial import.
Jerry James
jjames at fedoraproject.org
Tue Jul 8 15:40:42 UTC 2014
commit 7727b2c93fe4c0f1971c501778e1c8dc76ef9873
Author: Jerry James <jamesjer at betterlinux.com>
Date: Tue Jul 8 09:40:50 2014 -0600
Initial import.
.gitignore | 1 +
python-sphinx_rtd_theme.spec | 99 ++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 101 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a6bf9a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sphinx_rtd_theme-0.1.6.tar.gz
diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec
new file mode 100644
index 0000000..446c3fa
--- /dev/null
+++ b/python-sphinx_rtd_theme.spec
@@ -0,0 +1,99 @@
+%if 0%{?fedora} >= 12 || 0%{?rhel} >= 8
+%global with_py3 1
+%endif
+
+%global pkgname sphinx_rtd_theme
+
+Name: python-%{pkgname}
+Version: 0.1.6
+Release: 1%{?dist}
+Summary: Sphinx theme for readthedocs.org
+
+License: MIT
+URL: https://github.com/snide/sphinx_rtd_theme
+Source0: https://pypi.python.org/packages/source/s/%{pkgname}/%{pkgname}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+
+%if 0%{?with_py3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+
+Requires: fontawesome-fonts
+
+%description
+This is a prototype mobile-friendly sphinx theme for readthedocs.org.
+It's currently in development and includes some rtd variable checks that
+can be ignored if you're just trying to use it on your project outside
+of that site.
+
+%if 0%{?with_py3}
+%package -n python3-%{pkgname}
+Summary: Sphinx theme for readthedocs.org
+Requires: fontawesome-fonts
+
+%description -n python3-%{pkgname}
+This is a prototype mobile-friendly sphinx theme for readthedocs.org.
+It's currently in development and includes some rtd variable checks that
+can be ignored if you're just trying to use it on your project outside
+of that site.
+%endif
+
+%prep
+%setup -q -c
+
+# Prepare for python3 build
+cp -a %{pkgname}-%{version} python3-%{pkgname}-%{version}
+
+%build
+# Python 2 build
+pushd %{pkgname}-%{version}
+%{__python2} setup.py build
+popd
+
+%if 0%{?with_py3}
+# Python 3 build
+pushd python3-%{pkgname}-%{version}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+# Python 2 install
+pushd %{pkgname}-%{version}
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+popd
+
+# Don't use the bundled font
+rm %{buildroot}/%{python2_sitelib}/%{pkgname}/static/fonts/*.ttf
+ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
+ %{buildroot}/%{python2_sitelib}/%{pkgname}/static/fonts/
+
+%if 0%{?with_py3}
+# Python 3 install
+pushd python3-%{pkgname}-%{version}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+popd
+
+# Don't use the bundled font
+rm %{buildroot}/%{python3_sitelib}/%{pkgname}/static/fonts/*.ttf
+ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
+ %{buildroot}/%{python3_sitelib}/%{pkgname}/static/fonts/
+%endif
+
+%files
+%doc %{pkgname}-%{version}/LICENSE %{pkgname}-%{version}/README.rst
+%{python2_sitelib}/%{pkgname}*
+
+%if 0%{?with_py3}
+%files -n python3-%{pkgname}
+%doc %{pkgname}-%{version}/LICENSE %{pkgname}-%{version}/README.rst
+%{python3_sitelib}/%{pkgname}*
+%endif
+
+%changelog
+* Thu Jul 3 2014 Jerry James <loganjerry at gmail.com> - 0.1.6-1
+- Initial RPM
diff --git a/sources b/sources
index e69de29..bf03587 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8df56a300c8c69f17e1ffbee194b2a26 sphinx_rtd_theme-0.1.6.tar.gz
More information about the scm-commits
mailing list