]> git.pld-linux.org Git - packages/python3-sphinx_click.git/commitdiff
- python-sphinx_click.spec updated to 5.1.0 for python 3.8+/Sphinx 2+ master auto/th/python3-sphinx_click-5.1.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 6 Dec 2023 20:53:06 +0000 (21:53 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 6 Dec 2023 20:53:06 +0000 (21:53 +0100)
python-sphinx_click.spec [deleted file]
python3-sphinx_click.spec [new file with mode: 0644]

diff --git a/python-sphinx_click.spec b/python-sphinx_click.spec
deleted file mode 100644 (file)
index 923a3d7..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-#
-# Conditional build:
-%bcond_without doc     # Sphinx documentation
-%bcond_without tests   # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_with    python3 # CPython 3.x module
-
-Summary:       Sphinx extension that automatically documents click applications
-Summary(pl.UTF-8):     Rozszerzenie Sphinksa automatycznie dokumentujące aplikacje clicka
-Name:          python-sphinx_click
-# keep 2.x here for python2 support
-Version:       2.7.1
-Release:       1
-License:       MIT
-Group:         Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinx-click/
-Source0:       https://files.pythonhosted.org/packages/source/s/sphinx-click/sphinx-click-%{version}.tar.gz
-# Source0-md5: 26365da1469bf8b8f00872994471c7d2
-URL:           https://pypi.org/project/sphinx-click/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-pbr >= 2.0
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-Sphinx >= 1.5
-BuildRequires: python-click >= 6.0
-BuildRequires: python-docutils
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-pbr >= 2.0
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-Sphinx >= 1.5
-BuildRequires: python3-Sphinx < 4
-BuildRequires: python3-click >= 6.0
-BuildRequires: python3-click < 8
-BuildRequires: python3-docutils
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires: sphinx-pdg-2 >= 1.5
-%endif
-Requires:      python-modules >= 1:2.7
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-sphinx-click is a Sphinx plugin that allows you to automatically
-extract documentation from a click-based application and include it in
-your docs.
-
-%description -l pl.UTF-8
-sphinx-click to wtyczka Sphinksa, pozwalająca automatycznie wydobywać
-opisy z aplikacji opartych na module click i dołączać je do
-dokumentacji.
-
-%package -n python3-sphinx_click
-Summary:       Sphinx extension that automatically documents click applications
-Summary(pl.UTF-8):     Rozszerzenie Sphinksa automatycznie dokumentujące aplikacje clicka
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.5
-
-%description -n python3-sphinx_click
-sphinx-click is a Sphinx plugin that allows you to automatically
-extract documentation from a click-based application and include it in
-your docs.
-
-%description -n python3-sphinx_click -l pl.UTF-8
-sphinx-click to wtyczka Sphinksa, pozwalająca automatycznie wydobywać
-opisy z aplikacji opartych na module click i dołączać je do
-dokumentacji.
-
-%package apidocs
-Summary:       API documentation for Python sphinx-click module
-Summary(pl.UTF-8):     Dokumentacja API modułu Pythona sphinx-click
-Group:         Documentation
-
-%description apidocs
-API documentation for Python sphinx-click module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona sphinx-click.
-
-%prep
-%setup -q -n sphinx-click-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s tests
-%endif
-%endif
-
-%if %{with doc}
-PYTHONPATH=$(pwd) \
-sphinx-build-2 -b html docs docs/_build/html
-%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 AUTHORS ChangeLog LICENSE README.rst
-%{py_sitescriptdir}/sphinx_click
-%{py_sitescriptdir}/sphinx_click-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinx_click
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog LICENSE README.rst
-%{py3_sitescriptdir}/sphinx_click
-%{py3_sitescriptdir}/sphinx_click-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/*
-%endif
diff --git a/python3-sphinx_click.spec b/python3-sphinx_click.spec
new file mode 100644 (file)
index 0000000..0a78829
--- /dev/null
@@ -0,0 +1,88 @@
+#
+# Conditional build:
+%bcond_without doc     # Sphinx documentation
+%bcond_without tests   # unit tests
+
+Summary:       Sphinx extension that automatically documents click applications
+Summary(pl.UTF-8):     Rozszerzenie Sphinksa automatycznie dokumentujące aplikacje clicka
+Name:          python3-sphinx_click
+Version:       5.1.0
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-click/
+Source0:       https://files.pythonhosted.org/packages/source/s/sphinx-click/sphinx-click-%{version}.tar.gz
+# Source0-md5: 9baf1d4e0fbc83d3c56b5b5fc75b0887
+URL:           https://pypi.org/project/sphinx-click/
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-pbr >= 2.0
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-Sphinx >= 2.0
+BuildRequires: python3-click >= 7.0
+BuildRequires: python3-docutils
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3 >= 2.0
+%endif
+Requires:      python3-modules >= 1:3.8
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+sphinx-click is a Sphinx plugin that allows you to automatically
+extract documentation from a click-based application and include it in
+your docs.
+
+%description -l pl.UTF-8
+sphinx-click to wtyczka Sphinksa, pozwalająca automatycznie wydobywać
+opisy z aplikacji opartych na module click i dołączać je do
+dokumentacji.
+
+%package apidocs
+Summary:       API documentation for Python sphinx-click module
+Summary(pl.UTF-8):     Dokumentacja API modułu Pythona sphinx-click
+Group:         Documentation
+
+%description apidocs
+API documentation for Python sphinx-click module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona sphinx-click.
+
+%prep
+%setup -q -n sphinx-click-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog LICENSE README.rst
+%{py3_sitescriptdir}/sphinx_click
+%{py3_sitescriptdir}/sphinx_click-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,examples,*.html,*.js}
+%endif
This page took 0.072723 seconds and 4 git commands to generate.