[packages/python-sphinxcontrib-googleanalytics] new

atler atler at pld-linux.org
Thu May 22 16:33:13 CEST 2025


commit 59680f7320420314158924f9e5b3557d5aa08efa
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu May 22 15:58:00 2025 +0200

    new

 python-sphinxcontrib-googleanalytics.spec | 92 +++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
---
diff --git a/python-sphinxcontrib-googleanalytics.spec b/python-sphinxcontrib-googleanalytics.spec
new file mode 100644
index 0000000..4c26369
--- /dev/null
+++ b/python-sphinxcontrib-googleanalytics.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Sphinx extension googleanalytics
+Name:		python-sphinxcontrib-googleanalytics
+Version:	0.4
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinxcontrib-googleanalytics/
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinxcontrib-googleanalytics/sphinxcontrib-googleanalytics-%{version}.tar.gz
+# Source0-md5:	a267c20096c4006bef6605e64cb3a4d3
+URL:		https://pypi.org/project/sphinxcontrib-googleanalytics/
+BuildRequires:	python
+%if %{with python2}
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+BuildRequires:	python3
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules
+Requires:	python-sphinxcontrib
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This extensions allows tracking generated html files with Google
+Analytics web service.
+
+%package -n python3-sphinxcontrib-googleanalytics
+Summary:	Sphinx extension googleanalytics
+Group:		Libraries/Python
+Requires:	python3-modules
+Requires:	python3-sphinxcontrib
+
+%description -n python3-sphinxcontrib-googleanalytics
+This extensions allows tracking generated html files with Google
+Analytics web service.
+
+%prep
+%setup -q -n sphinxcontrib-googleanalytics-%{version}
+
+%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.rst
+%{py_sitescriptdir}/sphinxcontrib/googleanalytics.py[co]
+%{py_sitescriptdir}/sphinxcontrib_googleanalytics-%{version}-py*.egg-info
+%{py_sitescriptdir}/sphinxcontrib_googleanalytics-%{version}-py*-nspkg.pth
+%endif
+
+%if %{with python3}
+%files -n python3-sphinxcontrib-googleanalytics
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/sphinxcontrib/googleanalytics.py
+%{py3_sitescriptdir}/sphinxcontrib/__pycache__/googleanalytics.cpython-*.py[co]
+%{py3_sitescriptdir}/sphinxcontrib_googleanalytics-%{version}-py*.egg-info
+%{py3_sitescriptdir}/sphinxcontrib_googleanalytics-%{version}-py*-nspkg.pth
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinxcontrib-googleanalytics.git/commitdiff/59680f7320420314158924f9e5b3557d5aa08efa



More information about the pld-cvs-commit mailing list