]> git.pld-linux.org Git - packages/python-readthedocs-sphinx-ext.git/commitdiff
- new auto/th/python-readthedocs-sphinx-ext-1.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Sep 2019 19:09:19 +0000 (21:09 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Sep 2019 19:09:19 +0000 (21:09 +0200)
python-readthedocs-sphinx-ext.spec [new file with mode: 0644]

diff --git a/python-readthedocs-sphinx-ext.spec b/python-readthedocs-sphinx-ext.spec
new file mode 100644 (file)
index 0000000..ab421ba
--- /dev/null
@@ -0,0 +1,105 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary:       Sphinx extension for Read the Docs overrides
+Summary(pl.UTF-8):     Rozszerzenie Sphinksa do modyfikacji Read the Docs
+Name:          python-readthedocs-sphinx-ext
+Version:       1.0.0
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/readthedocs-sphinx-ext/
+Source0:       https://files.pythonhosted.org/packages/source/r/readthedocs-sphinx-ext/readthedocs-sphinx-ext-%{version}.tar.gz
+# Source0-md5: 8a2910e97ba65a22a288cb040425c297
+URL:           https://pypi.org/project/readthedocs-sphinx-ext/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-Sphinx
+BuildRequires: python-jinja2 >= 2.9
+BuildRequires: python-requests
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-Sphinx
+BuildRequires: python3-jinja2 >= 2.9
+BuildRequires: python3-requests
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python-modules >= 1:2.5
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module adds extensions that make Sphinx easier to use.
+
+%description -l pl.UTF-8
+Ten moduł dodaje rozszerzenia ułatwiające używanie Sphinksa.
+
+%package -n python3-readthedocs-sphinx-ext
+Summary:       Sphinx extension for Read the Docs overrides
+Summary(pl.UTF-8):     Rozszerzenie Sphinksa do modyfikacji Read the Docs
+Group:         Libraries/Python
+Requires:      python3-modules >= 1:3.2
+
+%description -n python3-readthedocs-sphinx-ext
+This module adds extensions that make Sphinx easier to use.
+
+%description -n python3-readthedocs-sphinx-ext -l pl.UTF-8
+Ten moduł dodaje rozszerzenia ułatwiające używanie Sphinksa.
+
+%prep
+%setup -q -n readthedocs-sphinx-ext-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
+%endif
+
+%if %{with python3}
+%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/tests
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py_sitescriptdir}/readthedocs_ext
+%{py_sitescriptdir}/readthedocs_sphinx_ext-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-readthedocs-sphinx-ext
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/readthedocs_ext
+%{py3_sitescriptdir}/readthedocs_sphinx_ext-%{version}-py*.egg-info
+%endif
This page took 0.113186 seconds and 4 git commands to generate.