From 50375f02f8e6be34206d0bac5690d5a877d6eed2b4e2f6b58817a17a4de229b5 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 17 Jan 2026 09:30:13 +0000 Subject: [PATCH] - Provide/obsolete the archmage basename in theprimary_python package version. OBS-URL: https://build.opensuse.org/package/show/Archiving/archmage?expand=0&rev=11 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + archmage-0.4.2.1.tar.gz | 3 ++ archmage.changes | 32 ++++++++++++++++ archmage.spec | 85 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 144 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 archmage-0.4.2.1.tar.gz create mode 100644 archmage.changes create mode 100644 archmage.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/archmage-0.4.2.1.tar.gz b/archmage-0.4.2.1.tar.gz new file mode 100644 index 0000000..8e1e12d --- /dev/null +++ b/archmage-0.4.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:191c3e7dd1b13c08ed5f11597a7cd9c84c28c2312be200b8851b4dc213e30ba4 +size 31514 diff --git a/archmage.changes b/archmage.changes new file mode 100644 index 0000000..5a35a99 --- /dev/null +++ b/archmage.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Fri Jan 9 08:56:11 UTC 2026 - Dominique Leuenberger + +- Provide/obsolete the archmage basename in theprimary_python + package version. + +------------------------------------------------------------------- +Mon May 15 12:50:50 UTC 2023 - Matej Cepl + +- Clean up the SPEC file and correct incorrect Requires (fix + bsc#1210547). +- Make tests working. + +------------------------------------------------------------------- +Fri Feb 19 06:49:45 UTC 2021 - Martin Pluskal + +- Switch to python singlespec + +------------------------------------------------------------------- +Mon Oct 5 07:01:35 UTC 2020 - Martin Pluskal + +- Get rid of unreliable python dependency generator + +------------------------------------------------------------------- +Wed Sep 30 12:14:14 UTC 2020 - Martin Pluskal + +- Update to version 0.4.2.1 + +------------------------------------------------------------------- +Tue Nov 21 11:33:13 UTC 2017 - mpluskal@suse.com + +- Initial changelog entry for version 0.3.1 diff --git a/archmage.spec b/archmage.spec new file mode 100644 index 0000000..444ef9e --- /dev/null +++ b/archmage.spec @@ -0,0 +1,85 @@ +# +# spec file for package archmage +# +# 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/ +# + + +Name: archmage +Version: 0.4.2.1 +Release: 0 +Summary: A reader and decompiler for files in the CHM format +License: GPL-2.0-or-later +Group: Productivity/Archiving/Compression +URL: https://github.com/dottedmag/archmage +Source: https://github.com/dottedmag/archmage/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-beautifulsoup4 +Requires: python-pychm +Requires: python-sgmllib3k +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module pychm} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sgmllib3k} +# /SECTION +%if "%{python_flavor}" == "%{primary_python}" +Provides: archmage = %{version} +Obsoletes: archmage < %{version} +%endif +%python_subpackages + +%description +arCHMage is a reader and decompiler for files in the CHM format. This is +the format used by Microsoft HTML Help, and is also known as Compiled HTML. + +%prep +%autosetup + +%build +echo %{version} > RELEASE-VERSION +%pyproject_wheel + +%install +%pyproject_install +install -Dpm 0644 %{name}.1 \ + %{buildroot}%{_mandir}/man1/%{name}.1 +%python_clone -a %{buildroot}%{_bindir}/archmage +%python_clone -a %{buildroot}%{_mandir}/man1/archmage.1 +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative archmage + +%postun +%python_uninstall_alternative archmage + +%files %{python_files} +%license COPYING +%doc AUTHORS NEWS README.md +%python_alternative %{_bindir}/archmage +%python_alternative %{_mandir}/man1/archmage.1%{?ext_man} +%{python_sitelib}/archmage +%{python_sitelib}/archmage-%{version}*-info + +%changelog -- 2.51.1