diff --git a/pycdlib-1.14.0.tar.gz b/pycdlib-1.14.0.tar.gz deleted file mode 100644 index 029ad36..0000000 --- a/pycdlib-1.14.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ec306b31d9c850f28c5fda52438d904edd1e8fcf862c5ffd756272efac9f422 -size 287166 diff --git a/pycdlib-1.15.0.tar.gz b/pycdlib-1.15.0.tar.gz new file mode 100644 index 0000000..244081f --- /dev/null +++ b/pycdlib-1.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39e95a0d90cee4ecc3472d0fcf7167d2a5c30b209dc4b156e39e0cdc441529f2 +size 359823 diff --git a/python-pycdlib.changes b/python-pycdlib.changes index 1893ce8..6731f17 100644 --- a/python-pycdlib.changes +++ b/python-pycdlib.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Aug 28 10:23:04 UTC 2025 - Daniel Garcia + +- Use libalternatives in TW and Leap 16.0 +- Change source to github tag archive, the last tag is not released in + pypi. +- update to 1.15.0: + * Remove Python 2 compatibility + * Add an encoding parameter to the walk API so non-standard ISOs can be used + * Fix ISOs that only have a single extent for Path Tables + * Add the 'udf_path' argument to add_file so UDF ISOs can add paths + * Fix timestamps for UDF + ------------------------------------------------------------------- Wed Jun 4 09:27:02 UTC 2025 - Markéta Machová diff --git a/python-pycdlib.spec b/python-pycdlib.spec index a8e36e1..b83af5d 100644 --- a/python-pycdlib.spec +++ b/python-pycdlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycdlib # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,14 +16,20 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + Name: python-pycdlib -Version: 1.14.0 +Version: 1.15.0 Release: 0 Summary: Pure python ISO manipulation library License: LGPL-2.0-only Group: Development/Languages/Python URL: https://github.com/clalancette/pycdlib -Source: https://files.pythonhosted.org/packages/source/p/pycdlib/pycdlib-%{version}.tar.gz +Source: %{URL}/archive/v%{version}.tar.gz#/pycdlib-%{version}.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -32,6 +38,15 @@ BuildRequires: fdupes BuildRequires: mkisofs BuildRequires: python-rpm-macros BuildRequires: timezone + +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif + Requires: mkisofs Requires: python3-pycdlib-common BuildArch: noarch @@ -71,12 +86,17 @@ This package includes the common files. %python_clone -a %{buildroot}%{_bindir}/pycdlib-explorer %python_clone -a %{buildroot}%{_bindir}/pycdlib-extract-files %python_clone -a %{buildroot}%{_bindir}/pycdlib-genisoimage +%python_group_libalternatives pycdlib-explorer pycdlib-extract-files pycdlib-genisoimage %check export LC_ALL=ja_JP.UTF-8 export TZ=Asia/Tokyo %pytest -k unit +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative pycdlib-explorer + %post %{python_install_alternative pycdlib-explorer pycdlib-extract-files pycdlib-genisoimage}