From 9faccbd991041a34f27fdd848c8768cad637301c702ba5ea8888f5e2af361e6c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:20:20 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-compressed_rtf?expand=0&rev=7 --- .gitattributes | 23 ++++++++ .gitignore | 1 + 0001-fix-pyproject.toml-license-format.patch | 25 +++++++++ _service | 14 +++++ _servicedata | 4 ++ compressed_rtf-1.0.6.tar.xz | 3 + compressed_rtf-1.0.7.tar.xz | 3 + python-compressed_rtf.changes | 23 ++++++++ python-compressed_rtf.spec | 59 ++++++++++++++++++++ 9 files changed, 155 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-fix-pyproject.toml-license-format.patch create mode 100644 _service create mode 100644 _servicedata create mode 100644 compressed_rtf-1.0.6.tar.xz create mode 100644 compressed_rtf-1.0.7.tar.xz create mode 100644 python-compressed_rtf.changes create mode 100644 python-compressed_rtf.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/0001-fix-pyproject.toml-license-format.patch b/0001-fix-pyproject.toml-license-format.patch new file mode 100644 index 0000000..d0a0110 --- /dev/null +++ b/0001-fix-pyproject.toml-license-format.patch @@ -0,0 +1,25 @@ +From b241c705251b245257ad2c8bdd99cecf0c1d731f Mon Sep 17 00:00:00 2001 +From: Stuart Henderson +Date: Tue, 25 Mar 2025 16:34:36 +0000 +Subject: [PATCH] fix pyproject.toml license format + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index d6728d3..0659e91 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -7,7 +7,7 @@ name = "compressed-rtf" + dynamic = ["version"] + description = "Compressed Rich Text Format (RTF) compression and decompression package" + readme = "README.md" +-license = "MIT" ++license = {text = "MIT"} + authors = [ + { name = "Dmitry Alimov" }, + ] +-- +2.49.0 + diff --git a/_service b/_service new file mode 100644 index 0000000..ca62db4 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/delimitry/compressed_rtf.git + git + 1.0.7 + 1.0.7 + disable + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..5844c85 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/delimitry/compressed_rtf.git + ad93a504ca6a09aff9561eac586ff6d91861d147 \ No newline at end of file diff --git a/compressed_rtf-1.0.6.tar.xz b/compressed_rtf-1.0.6.tar.xz new file mode 100644 index 0000000..10d5d58 --- /dev/null +++ b/compressed_rtf-1.0.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9be5a6380904ef07ad7ea1326c87d0ac56f49a3f2a81b5ff37051099dc5c4e73 +size 6564 diff --git a/compressed_rtf-1.0.7.tar.xz b/compressed_rtf-1.0.7.tar.xz new file mode 100644 index 0000000..7ff8f08 --- /dev/null +++ b/compressed_rtf-1.0.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aef5fee67a7e8b961d3523c29be25de67fb54bf309091f9345cd310c8b682eef +size 6992 diff --git a/python-compressed_rtf.changes b/python-compressed_rtf.changes new file mode 100644 index 0000000..558892f --- /dev/null +++ b/python-compressed_rtf.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:18 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + +------------------------------------------------------------------- +Tue Mar 25 19:16:40 UTC 2025 - Martin Hauke + +- Update to version 1.0.7 + * Fix: resolve circular import in setup.py. + * Fix url. +- Add patch: + * 0001-fix-pyproject.toml-license-format.patch + +------------------------------------------------------------------- +Tue Sep 24 19:10:37 UTC 2024 - Guang Yee + +- Enable sle15_python_module_pythons. + +------------------------------------------------------------------- +Tue Aug 24 14:40:40 UTC 2021 - Martin Hauke + +- Initial package, version 1.0.6 diff --git a/python-compressed_rtf.spec b/python-compressed_rtf.spec new file mode 100644 index 0000000..e56f45c --- /dev/null +++ b/python-compressed_rtf.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-compressed_rtf +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2021-2025, Martin Hauke +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-compressed_rtf +Version: 1.0.7 +Release: 0 +Summary: Compressed Rich Text Format (RTF) compression and decompression package +License: MIT +URL: https://github.com/delimitry/compressed_rtf +Source: compressed_rtf-%{version}.tar.xz +Patch0: 0001-fix-pyproject.toml-license-format.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Compressed Rich Text Format (RTF) compression and decompression package + +%prep +%autosetup -p1 -n compressed_rtf-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest -v + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/compressed_rtf +%{python_sitelib}/compressed_rtf-%{version}.dist-info + +%changelog