Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| b7503c4e29 | |||
| bc520aad8a | |||
| 218d09b447 | |||
| 00bf74f6ef | |||
| f6adcda8d3 | |||
| 29177c8a7f |
@@ -1,3 +1,38 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 18 11:34:01 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
- Fix alternatives, and use update-alternatives in SLE-15
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 17 16:58:54 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.1.0:
|
||||||
|
* Unpack integer header data values as unsigned
|
||||||
|
* Fixing incorrect parsing of first headers block (a.k.a.
|
||||||
|
"signature headers")
|
||||||
|
* added new tags
|
||||||
|
- update to 2.0.0:
|
||||||
|
* Store only one version of i18n strings
|
||||||
|
* Fix rpmfile fails to load localized RPM headers
|
||||||
|
- update to 1.1.0:
|
||||||
|
* bz2 support, thank you @OneMoreByte!
|
||||||
|
- update to 1.0.8:
|
||||||
|
* If a CPIO archive contained an entry for a directory we
|
||||||
|
attempted to identify it via nlinks. Since it should have at
|
||||||
|
least two nlinks if it's a directory.
|
||||||
|
However, We stumbled across a case where this is not true. By
|
||||||
|
using the mode bits we should be able to correctly identify
|
||||||
|
directories without relying on nlinks.
|
||||||
|
We're now using mode bits.
|
||||||
|
- update to 1.0.7:
|
||||||
|
* Use setup.cfg and setuptools_scm for version
|
||||||
|
- update to 1.0.6:
|
||||||
|
* For the command line interface, only print file paths when
|
||||||
|
extracting if `-v/--verbose` is given
|
||||||
|
- update to 1.0.5:
|
||||||
|
* Extract rpm files from the command line
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 17 07:28:06 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
Tue Nov 17 07:28:06 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
@@ -17,5 +52,5 @@ Wed Jul 03 07:42:45 UTC 2019 - cbosdonnat@suse.com
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 2 14:26:57 UTC 2019 - Cédric Bosdonnat <cbosdonnat@suse.com>
|
Tue Jul 2 14:26:57 UTC 2019 - Cédric Bosdonnat <cbosdonnat@suse.com>
|
||||||
|
|
||||||
- Initial package
|
- Initial package
|
||||||
Added patch: python3.patch
|
Added patch: python3.patch
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-rpmfile
|
# spec file for package python-rpmfile
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,18 +16,35 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-rpmfile
|
Name: python-rpmfile
|
||||||
Version: 1.0.4
|
Version: 2.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python module to read rpm files
|
Summary: Python module to read rpm files
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/srossross/rpmfile
|
URL: https://github.com/srossross/rpmfile
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/rpmfile/rpmfile-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/rpmfile/rpmfile-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
Recommends: python-zstandard >= 0.13.0
|
Recommends: python-zstandard >= 0.13.0
|
||||||
|
Conflicts: rpmdevtools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -39,26 +56,37 @@ BuildRequires: %{python_module zstandard >= 0.13.0}
|
|||||||
Tools for inspecting RPM files in python. This module is modeled after the tarfile module.
|
Tools for inspecting RPM files in python. This module is modeled after the tarfile module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n rpmfile-%{version}
|
%autosetup -p1 -n rpmfile-%{version}
|
||||||
sed -i '1{/#!/d}' rpmfile/cpiofile.py
|
sed -i '1{/#!/d}' rpmfile/cpiofile.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
%python_clone -a %{buildroot}%{_bindir}/rpmfile
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
}
|
%python_group_libalternatives rpmfile
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative rpmfile
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative rpmfile
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative rpmfile
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# https://github.com/srossross/rpmfile/issues/35
|
# https://github.com/srossross/rpmfile/issues/35
|
||||||
# test_extract depend on github.com
|
# test_extract depend on github.com
|
||||||
%pytest -k 'not test_extract'
|
%pytest -k 'not (test_extract or test_info or test_list)'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%python_alternative %{_bindir}/rpmfile
|
||||||
|
%{python_sitelib}/rpmfile
|
||||||
|
%{python_sitelib}/rpmfile-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4e5ece00039d12cb960ded1992a274bca8c80d2993253d542ec0bff3f9828586
|
|
||||||
size 16113
|
|
||||||
3
rpmfile-2.1.0.tar.gz
Normal file
3
rpmfile-2.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0ac2bba89277c7185cb861c9c6d7d0c9a268be5169516dbc6a68f1556a9e3f99
|
||||||
|
size 21139
|
||||||
Reference in New Issue
Block a user