[packages/python3-lzo] Update to 1.15 (python3 only)
arekm
arekm at pld-linux.org
Mon Apr 20 18:34:16 CEST 2026
commit c42398ff289702c5fffb902770c7bdd3adf88901
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Apr 20 18:33:37 2026 +0200
Update to 1.15 (python3 only)
python-lzo.spec | 93 --------------------------------------------------------
python3-lzo.spec | 66 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 93 deletions(-)
---
diff --git a/python-lzo.spec b/python-lzo.spec
deleted file mode 100644
index 3b1cc10..0000000
--- a/python-lzo.spec
+++ /dev/null
@@ -1,93 +0,0 @@
-# Conditional build:
-%bcond_with tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%define module lzo
-Summary: Python bindings for the LZO data compression library
-Name: python-%{module}
-Version: 1.12
-Release: 1
-License: GPL v2.0+
-Group: Libraries/Python
-Source0: http://ftp.debian.org/debian/pool/main/p/python-lzo/python-lzo_%{version}.orig.tar.xz
-# Source0-md5: a4735228b29f4c40e1a8feff2185f9c0
-URL: https://github.com/jd-boyd/python-lzo
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.5
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-nose
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-nose
-%endif
-%endif
-BuildRequires: lzo-devel
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.5
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Python-LZO provides Python bindings for LZO, i.e. you can access the
-LZO library from your Python scripts thereby compressing ordinary
-Python strings.
-
-%package -n python3-%{module}
-Summary: Python bindings for the LZO data compression library
-Summary(pl.UTF-8): -
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-%{module}
-Python-LZO provides Python bindings for LZO, i.e. you can access the
-LZO library from your Python scripts thereby compressing ordinary
-Python strings.
-
-%prep
-%setup -q
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%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 NEWS
-%attr(755,root,root) %{py_sitedir}/%{module}.so
-%{py_sitedir}/*%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc NEWS
-%attr(755,root,root) %{py3_sitedir}/%{module}*.so
-%{py3_sitedir}/*%{module}-%{version}-py*.egg-info
-%endif
diff --git a/python3-lzo.spec b/python3-lzo.spec
new file mode 100644
index 0000000..87d79e4
--- /dev/null
+++ b/python3-lzo.spec
@@ -0,0 +1,66 @@
+# Conditional build:
+%bcond_without tests # unit tests
+
+%define module lzo
+Summary: Python bindings for the LZO data compression library
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki kompresji danych LZO
+Name: python3-%{module}
+Version: 1.15
+Release: 1
+License: GPL v2.0+
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/python-lzo/
+Source0: https://files.pythonhosted.org/packages/source/p/python-lzo/python-lzo-%{version}.tar.gz
+# Source0-md5: ee722fda368713f64a02845c053fcc7d
+URL: https://github.com/jd-boyd/python-lzo
+BuildRequires: lzo-devel
+BuildRequires: python3-build
+BuildRequires: python3-devel >= 1:3.6
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.6
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python-LZO provides Python bindings for LZO, i.e. you can access the
+LZO library from your Python scripts thereby compressing ordinary
+Python strings.
+
+%description -l pl.UTF-8
+Python-LZO udostępnia wiązania Pythona do biblioteki LZO, czyli pozwala
+na dostęp do biblioteki LZO ze skryptów Pythona, dzięki czemu można
+kompresować zwykłe łańcuchy Pythona.
+
+%prep
+%setup -q -n python-lzo-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+PYTHONPATH=$(pwd)/build-3-test \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README.md
+%attr(755,root,root) %{py3_sitedir}/%{module}.cpython-*.so
+%{py3_sitedir}/python_lzo-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-lzo.git/commitdiff/c42398ff289702c5fffb902770c7bdd3adf88901
More information about the pld-cvs-commit
mailing list