[packages/python3-sphinx_last_updated_by_git] - new

qboosh qboosh at pld-linux.org
Sat Dec 27 18:15:51 CET 2025


commit e6c813e9f0085e3ab1187286df191674c5660bd2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 27 18:16:12 2025 +0100

    - new

 python3-sphinx_last_updated_by_git.spec | 68 +++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/python3-sphinx_last_updated_by_git.spec b/python3-sphinx_last_updated_by_git.spec
new file mode 100644
index 0000000..ac43ae1
--- /dev/null
+++ b/python3-sphinx_last_updated_by_git.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (tests data missing in sdist)
+
+Summary:	Get the "last updated" time for each Sphinx page from Git
+Summary(pl.UTF-8):	Pobieranie z Gita czasu ostatniej aktualizacji dla każdej strony Sphinksa
+Name:		python3-sphinx_last_updated_by_git
+Version:	0.3.8
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-last-updated-by-git/
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinx-last-updated-by-git/sphinx_last_updated_by_git-%{version}.tar.gz
+# Source0-md5:	41ec27aafeb3f5dbb68d5e2be0ea8e9c
+URL:		https://pypi.org/project/sphinx-last-updated-by-git/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:40.8.0
+%if %{with tests}
+BuildRequires:	python3-Sphinx >= 1.8
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a little Sphinx extension that does exactly that. It also
+checks for included files and other dependencies and uses their "last
+updated" time if it's more recent. For each file, the "author date" of
+the Git commit where it was last changed is taken to be its "last
+updated" time. Uncommitted changes are ignored.
+
+%description -l pl.UTF-8
+Małe rozszerzenie Sphinka robiące dokładnie to, co mówi nazwa -
+odczytujące czas ostatniej aktualizacji stron Sphinksa z Gita. Ponato
+sprawdza włączane pliki i inne zależności, i używa ich czasu ich
+ostatniej aktualizacji, jeśli jest nowszy. Dla każdego pliku czas jest
+pobierany z "daty autora" zatwierdzenia Gita, gdzie plik był ostatnio
+zmieniany. Zmiany niezatwierdzone są ignorowane.
+
+%prep
+%setup -q -n sphinx_last_updated_by_git-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE NEWS.rst README.rst
+%{py3_sitescriptdir}/sphinx_last_updated_by_git.py
+%{py3_sitescriptdir}/__pycache__/sphinx_last_updated_by_git.cpython-*.py[co]
+%{py3_sitescriptdir}/sphinx_last_updated_by_git-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_last_updated_by_git.git/commitdiff/e6c813e9f0085e3ab1187286df191674c5660bd2



More information about the pld-cvs-commit mailing list