]> git.pld-linux.org Git - packages/python3-sphinx_copybutton.git/commitdiff
- python-sphinx_copybutton.spec updated to 0.5.0 for python 3.6+ auto/th/python3-sphinx_copybutton-0.5.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2022 07:34:30 +0000 (08:34 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Mar 2022 07:34:30 +0000 (08:34 +0100)
python-sphinx_copybutton-deps.patch [deleted file]
python-sphinx_copybutton.spec [deleted file]
python3-sphinx_copybutton.spec [new file with mode: 0644]

diff --git a/python-sphinx_copybutton-deps.patch b/python-sphinx_copybutton-deps.patch
deleted file mode 100644 (file)
index ae4cefc..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- sphinx-copybutton-0.2.6/setup.py.orig      2019-12-03 03:40:46.000000000 +0100
-+++ sphinx-copybutton-0.2.6/setup.py   2022-03-20 07:44:45.836657992 +0100
-@@ -19,6 +19,6 @@ setup(
-                                         '_static/copybutton.js',
-                                         '_static/copy-button.svg']},
-     include_package_data=True,
--    install_requires=["flit", "setuptools", "wheel", "sphinx"],
-+    install_requires=["setuptools", "sphinx"],
-     classifiers=["License :: OSI Approved :: MIT License"]
- )
diff --git a/python-sphinx_copybutton.spec b/python-sphinx_copybutton.spec
deleted file mode 100644 (file)
index b72137a..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary:       Add a copy button to each of your code cells
-Summary(pl.UTF-8):     Dodanie przycisku do kopiowania do każdej komórki z kodem
-Name:          python-sphinx_copybutton
-# keep 0.2.6 here for python2 support
-Version:       0.2.6
-Release:       1
-License:       MIT
-Group:         Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinx-copybutton/
-Source0:       https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-%{version}.tar.gz
-# Source0-md5: 0c3380264ff0b7543bdff0f0f154c87f
-Patch0:                %{name}-deps.patch
-URL:           https://pypi.org/project/sphinx-copybutton/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.5
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%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
-A small Sphinx extension to add a "copy" button to code blocks.
-
-%description -l pl.UTF-8
-Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
-kodu.
-
-%package -n python3-sphinx_copybutton
-Summary:       Add a copy button to each of your code cells
-Summary(pl.UTF-8):     Dodanie przycisku do kopiowania do każdej komórki z kodem
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.2
-
-%description -n python3-sphinx_copybutton
-A small Sphinx extension to add a "copy" button to code blocks.
-
-%description -n python3-sphinx_copybutton -l pl.UTF-8
-Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
-kodu.
-
-%prep
-%setup -q -n sphinx-copybutton-%{version}
-%patch0 -p1
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%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 README.md
-%{py_sitescriptdir}/sphinx_copybutton
-%{py_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinx_copybutton
-%defattr(644,root,root,755)
-%doc README.md
-%{py3_sitescriptdir}/sphinx_copybutton
-%{py3_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info
-%endif
diff --git a/python3-sphinx_copybutton.spec b/python3-sphinx_copybutton.spec
new file mode 100644 (file)
index 0000000..e82dbdc
--- /dev/null
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_with    doc     # Sphinx documentation (some files missing in sdist)
+
+Summary:       Add a copy button to each of your code cells
+Summary(pl.UTF-8):     Dodanie przycisku do kopiowania do każdej komórki z kodem
+Name:          python3-sphinx_copybutton
+Version:       0.5.0
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-copybutton/
+Source0:       https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-%{version}.tar.gz
+# Source0-md5: 223f26b9ba5397e5554075bc540a3b46
+URL:           https://pypi.org/project/sphinx-copybutton/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python3-ipython
+BuildRequires: python3-myst_nb
+BuildRequires: python3-sphinx_book_theme
+BuildRequires: sphinx-pdg-3 >= 1.8
+%endif
+Requires:      python3-modules >= 1:3.6
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A small Sphinx extension to add a "copy" button to code blocks.
+
+%description -l pl.UTF-8
+Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
+kodu.
+
+%prep
+%setup -q -n sphinx-copybutton-%{version}
+
+%build
+%py3_build
+
+%if %{with doc}
+%{__make} -C docs html \
+       SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/sphinx_copybutton
+%{py3_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info
This page took 0.158228 seconds and 4 git commands to generate.