[packages/python-logbook] - initial (based on python3-logbook.spec, but downgraded to 1.5.3)

qboosh qboosh at pld-linux.org
Fri Dec 15 22:27:15 CET 2023


commit fac082c43c45282d56b720dbb71118f5c67fd849
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Dec 15 22:21:51 2023 +0100

    - initial (based on python3-logbook.spec, but downgraded to 1.5.3)

 python-logbook.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/python-logbook.spec b/python-logbook.spec
new file mode 100644
index 0000000..c487d43
--- /dev/null
+++ b/python-logbook.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	A logging replacement for Python
+Summary(pl.UTF-8):	Zamiennik biblioteki logging dla Pythona
+Name:		python-logbook
+# keep 1.5.x here for python2 support
+Version:	1.5.3
+Release:	1
+License:	BSD
+Group:		Development/Languages/Python
+#Source0Download: https://pypi.org/simple/logbook/
+Source0:	https://files.pythonhosted.org/packages/source/l/logbook/Logbook-%{version}.tar.gz
+# Source0-md5:	719970ea22dd274797bb4328161d700f
+URL:		https://pypi.org/project/Logbook/
+BuildRequires:	python >= 1:2.7
+BuildRequires:	python-Cython
+BuildRequires:	python-devel >= 1:2.7
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-mock
+BuildRequires:	python-pytest
+%endif
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Logbook is a nice logging replacement.
+
+%description -l pl.UTF-8
+Logbook to przyjemny zamiennik biblioteki logging.
+
+%prep
+%setup -q -n Logbook-%{version}
+
+%build
+cd logbook
+cythonize _speedups.pyx
+cd ..
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(echo $(pwd)/build-2/lib.linux-*) \
+%{__python} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES LICENSE README.md
+%dir %{py_sitedir}/logbook
+%attr(755,root,root) %{py_sitedir}/logbook/_speedups.so
+%{py_sitedir}/logbook/*.py[co]
+%{py_sitedir}/Logbook-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-logbook.git/commitdiff/fac082c43c45282d56b720dbb71118f5c67fd849



More information about the pld-cvs-commit mailing list