From 3870713268146cab86c9eee0cbec65a5fdca60d237e68178a0bed8a76851cf31 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 05:39:20 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acefile?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + acefile-0.6.12.tar.gz | 3 ++ acefile-0.6.13.tar.gz | 3 ++ python-acefile.changes | 36 +++++++++++++++++++++ python-acefile.spec | 73 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 acefile-0.6.12.tar.gz create mode 100644 acefile-0.6.13.tar.gz create mode 100644 python-acefile.changes create mode 100644 python-acefile.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/acefile-0.6.12.tar.gz b/acefile-0.6.12.tar.gz new file mode 100644 index 0000000..4ea5c1f --- /dev/null +++ b/acefile-0.6.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e02c1eac068d2db14c7fbda526d7648c8921ace8cc30b9e5228241cde82cdeaa +size 49840 diff --git a/acefile-0.6.13.tar.gz b/acefile-0.6.13.tar.gz new file mode 100644 index 0000000..78c04e9 --- /dev/null +++ b/acefile-0.6.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42274f3d412728682fc1b2c8448b464ae315282f5023b5a765cd61218c1c9039 +size 54595 diff --git a/python-acefile.changes b/python-acefile.changes new file mode 100644 index 0000000..a90264e --- /dev/null +++ b/python-acefile.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Fri Jun 13 05:35:23 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Tue Nov 19 12:04:15 UTC 2024 - Dirk Müller + +- update to 0.6.13: + * Rephrase setup failure notices for clarity. + * Improve seekable conformance of internal file-like + wrappers. + * Minor maintainability and test improvements. + +------------------------------------------------------------------- +Wed May 27 09:35:56 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Fri Jun 7 11:38:05 UTC 2019 - pgajdos@suse.com + +- require setup-tools +- call spec-cleaner +- note there are no upstream testsuite + +------------------------------------------------------------------- +Wed Apr 10 08:04:43 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Sun Apr 7 03:27:24 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.6.12 diff --git a/python-acefile.spec b/python-acefile.spec new file mode 100644 index 0000000..8c3dbe6 --- /dev/null +++ b/python-acefile.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-acefile +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python2 1 +Name: python-acefile +Version: 0.6.13 +Release: 0 +Summary: ACE 1.0 and 2.0 archive reader/extractor in pure Python +License: BSD-2-Clause +Group: Development/Languages/Python +URL: https://www.roe.ch/acefile +Source: https://files.pythonhosted.org/packages/source/a/acefile/acefile-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +Read/test/extract ACE 1.0 and 2.0 archives in pure python. + +%prep +%setup -q -n acefile-%{version} +sed -i '1 {/^#!/d}' acefile.py + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/acefile-unace +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%post +%python_install_alternative acefile-unace + +%postun +%python_uninstall_alternative acefile-unace + +%files %{python_files} +%doc NEWS.md README.md +%license LICENSE.md +%python_alternative %{_bindir}/acefile-unace +%{python_sitearch}/acefile.py +%pycache_only %{python_sitearch}/__pycache__/acefile.*.pyc +%{python_sitearch}/acebitstream.cpython-*-linux-gnu.so +%{python_sitearch}/acefile-%{version}.dist-info + +%check +# no testsuite found + +%changelog