* Experimental support for free-threaded Python.
* Fix memory leak in acebitstream module.
* Add pytest smoke tests and configure GitHub Actions CI for
testing.
* Remove deprecated setup.py features.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acefile?expand=0&rev=14
72 lines
2.1 KiB
RPMSpec
72 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-acefile
|
|
#
|
|
# Copyright (c) 2026 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
|
|
# 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
|
|
%bcond_without libalternatives
|
|
Name: python-acefile
|
|
Version: 0.6.14
|
|
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: alts
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: alts
|
|
Requires: python-setuptools
|
|
%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}
|
|
|
|
%pre
|
|
%python_libalternatives_reset_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
|