Mageia Bugzilla – Attachment 14341 Details for
Bug 32811
upgrading/rebuilding patool for python-3.12
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch for new spec file
patool-2.1.1-for-python-3.12.diff (text/plain), 2.60 KB, created by
Aurelian R
on 2024-02-06 21:08:19 CET
(
hide
)
Description:
patch for new spec file
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-02-06 21:08:19 CET
Size:
2.60 KB
patch
obsolete
>--- patool.spec 2024-01-07 12:39:27.164841151 +0200 >+++ patool-2.1.1.spec 2024-02-06 19:50:02.081118860 +0200 >@@ -1,15 +1,30 @@ >+%bcond_with tests >+ > Name: patool >-Version: 1.12 >-Release: %mkrel 7 >+Version: 2.1.1 >+Release: %mkrel 1 > Summary: Portable command line archive file manager > License: GPLv2+ > Group: Archiving/Compression >-Url: https://wummel.github.io/patool/ >+Url: https://wummel.github.io/patool > # Source0: https://wummel.github.io/%%{name}/dist/%%{name}-%%{version}.tar.gz > Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz >+ > BuildArch: noarch >+ >+BuildRequires: pyproject-rpm-macros > BuildRequires: python3-devel >-BuildRequires: python3-setuptools >+BuildRequires: python3dist(setuptools) >+BuildRequires: python3dist(argcomplete) >+%if %{with tests} >+BuildRequires: python3dist(pytest) >+BuildRequires: arj, archmage, bzip2, bzip3, cabextract, chmlib, cpio >+BuildRequires: cdrkit-genisoimage, cdrkit-isotools, dpkg, flac, gzip, >+BuildRequires: lbzip2, lcab, lha, lz4, lzip, lzop, mac, mscompress >+BuildRequires: nomarch, ncompress, p7zip, pbzip2, sharutils >+BuildRequires: shorten, unrar, xz, zip, zopfli, zstd, unzip >+#BuildRequires: unace, star, mac, lrzip >+%endif > > %description > Various archive types can be created, extracted, tested and listed by >@@ -33,29 +48,28 @@ installed. > > > %prep >-%setup -q >+%autosetup -p1 > > %build >-%py3_build >+%pyproject_wheel > > %install >-%py3_install >-# 'brp-compress' compresses the manpages without distutils knowing. >-# The sed script appends a * suffix to the affected manpage filename. >-# This is because they can be installed under any of several extensions. >-RPM_MANDIR=usr/share/man >-RPM_LOCALMANDIR=usr/local/share/man >+%pyproject_install >+%pyproject_save_files patoolib > >-install -Dpm0644 patool.bash-completion \ >- %{buildroot}%{_datadir}/bash-completion/completions/patool >+install -Dpm0644 doc/patool.1 %{buildroot}%{_mandir}/man1/patool.1 >+install -dm755 %{buildroot}%{_datadir}/bash-completion/completions >+register-python-argcomplete patool > \ >+ %{buildroot}%{_datadir}/bash-completion/completions/patool >+ >+%check >+%pyproject_check_import >+# test but don't stop on failure. false-positive issues!?. >+%{?with_tests:%pytest tests || true} > >-%files >+%files -f %{pyproject_files} > %license COPYING > %doc doc/*.txt > %{_bindir}/patool >-%{python3_sitelib}/patoolib/ >-%{python3_sitelib}/*.egg-info >-%{python3_sitelib}/_patool_configdata.py* >-%{python3_sitelib}/__pycache__/* >-%{_datadir}/bash-completion/completions/patool > %{_mandir}/man1/patool.1.* >+%{_datadir}/bash-completion/completions/patool
--- patool.spec 2024-01-07 12:39:27.164841151 +0200 +++ patool-2.1.1.spec 2024-02-06 19:50:02.081118860 +0200 @@ -1,15 +1,30 @@ +%bcond_with tests + Name: patool -Version: 1.12 -Release: %mkrel 7 +Version: 2.1.1 +Release: %mkrel 1 Summary: Portable command line archive file manager License: GPLv2+ Group: Archiving/Compression -Url: https://wummel.github.io/patool/ +Url: https://wummel.github.io/patool # Source0: https://wummel.github.io/%%{name}/dist/%%{name}-%%{version}.tar.gz Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz + BuildArch: noarch + +BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(argcomplete) +%if %{with tests} +BuildRequires: python3dist(pytest) +BuildRequires: arj, archmage, bzip2, bzip3, cabextract, chmlib, cpio +BuildRequires: cdrkit-genisoimage, cdrkit-isotools, dpkg, flac, gzip, +BuildRequires: lbzip2, lcab, lha, lz4, lzip, lzop, mac, mscompress +BuildRequires: nomarch, ncompress, p7zip, pbzip2, sharutils +BuildRequires: shorten, unrar, xz, zip, zopfli, zstd, unzip +#BuildRequires: unace, star, mac, lrzip +%endif %description Various archive types can be created, extracted, tested and listed by @@ -33,29 +48,28 @@ installed. %prep -%setup -q +%autosetup -p1 %build -%py3_build +%pyproject_wheel %install -%py3_install -# 'brp-compress' compresses the manpages without distutils knowing. -# The sed script appends a * suffix to the affected manpage filename. -# This is because they can be installed under any of several extensions. -RPM_MANDIR=usr/share/man -RPM_LOCALMANDIR=usr/local/share/man +%pyproject_install +%pyproject_save_files patoolib -install -Dpm0644 patool.bash-completion \ - %{buildroot}%{_datadir}/bash-completion/completions/patool +install -Dpm0644 doc/patool.1 %{buildroot}%{_mandir}/man1/patool.1 +install -dm755 %{buildroot}%{_datadir}/bash-completion/completions +register-python-argcomplete patool > \ + %{buildroot}%{_datadir}/bash-completion/completions/patool + +%check +%pyproject_check_import +# test but don't stop on failure. false-positive issues!?. +%{?with_tests:%pytest tests || true} -%files +%files -f %{pyproject_files} %license COPYING %doc doc/*.txt %{_bindir}/patool -%{python3_sitelib}/patoolib/ -%{python3_sitelib}/*.egg-info -%{python3_sitelib}/_patool_configdata.py* -%{python3_sitelib}/__pycache__/* -%{_datadir}/bash-completion/completions/patool %{_mandir}/man1/patool.1.* +%{_datadir}/bash-completion/completions/patool
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32811
:
14339
| 14341