From 66d9f31268bd75b8fc5787e9f964d129b188b691e92cf8318f1410ee7641735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 23 May 2025 11:49:02 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfgdiff?expand=0&rev=8 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 16 +++++ _servicedata | 4 ++ cfgdiff-0.0.0+git.1641843506.dc1234a.tar.xz | 3 + python-cfgdiff.changes | 33 +++++++++ python-cfgdiff.spec | 78 +++++++++++++++++++++ 7 files changed, 158 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cfgdiff-0.0.0+git.1641843506.dc1234a.tar.xz create mode 100644 python-cfgdiff.changes create mode 100644 python-cfgdiff.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/_service b/_service new file mode 100644 index 0000000..706d20e --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + git + https://github.com/evgeni/cfgdiff.git + devel + 0.0.0+git + enable + + + xz + *.tar + + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..01f6ea2 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/evgeni/cfgdiff.git + dc1234a9d8f9238509c863801bb7bf3b75083f60 \ No newline at end of file diff --git a/cfgdiff-0.0.0+git.1641843506.dc1234a.tar.xz b/cfgdiff-0.0.0+git.1641843506.dc1234a.tar.xz new file mode 100644 index 0000000..a60920c --- /dev/null +++ b/cfgdiff-0.0.0+git.1641843506.dc1234a.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7afb6b15425133a8ba4b94b666c542d7c70831a091c56265e05acb37a6b1739a +size 7924 diff --git a/python-cfgdiff.changes b/python-cfgdiff.changes new file mode 100644 index 0000000..7752d6a --- /dev/null +++ b/python-cfgdiff.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Fri May 23 09:05:55 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Thu Jan 20 17:24:30 UTC 2022 - dimstar@opensuse.org + +- Update to version 0.0.0+git.1641843506.dc1234a: + * Bump pypa/gh-action-pypi-publish from 1.4.2 to 1.5.0 + * make version pep440 compatible + +------------------------------------------------------------------- +Wed Jan 20 04:37:21 UTC 2021 - Steve Kowalik + +- Also clone the cfgdiff.1 manual page as an alternative + +------------------------------------------------------------------- +Tue Nov 24 16:22:01 UTC 2020 - John Vandenberg + +- Add build dependency and recommends for python-reconfigure + +------------------------------------------------------------------- +Mon Aug 03 20:12:37 UTC 2020 - mardnh@gmx.de + +- Update to version 0.0.0+git.1487961889.dc4e96e +- Specfile overhaul +- Run testsuite + +------------------------------------------------------------------- +Thu May 21 17:34:42 UTC 2020 - John Vandenberg + +- Initial spec for v0.1 diff --git a/python-cfgdiff.spec b/python-cfgdiff.spec new file mode 100644 index 0000000..cac7790 --- /dev/null +++ b/python-cfgdiff.spec @@ -0,0 +1,78 @@ +# +# spec file for package python-cfgdiff +# +# 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/ +# + + +Name: python-cfgdiff +Version: 0.0.0+git.1641843506.dc1234a +Release: 0 +Summary: Cfgdiff -- diff(1) all your configuration files +License: MIT +Group: Development/Languages/Python +URL: https://github.com/evgeni/cfgdiff +Source: cfgdiff-%{version}.tar.xz +### SECTION test requirements +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +## /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: cfgdiff +BuildArch: noarch +%python_subpackages + +%description +cfgdiff will try to parse your configuration files, fetching all +the relevant keys and values from them and then pretty-printing +them in the original format. +These results are then diffed and the diff is shown to you. + +cfgdiff currently supports the following formats: + - INI using Python's ConfigParser library + - JSON using Python's JSON library + - YAML if the Python YAML library is installed + - XML if the Python lxml library is installed + +%prep +%setup -q -n cfgdiff-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/cfgdiff + +%post +%python_install_alternative cfgdiff + +%postun +%python_uninstall_alternative cfgdiff + +%check +export PYTHONPATH=. +%pyunittest tests/test_cfgdiff.py -v + +%files %{python_files} +%license LICENSE README.md +%{python_sitelib}/cfgdiff.py +%{python_sitelib}/cfgdiff-*-info +%pycache_only %{python_sitelib}/__pycache__/cfgdiff* +%python_alternative %{_bindir}/cfgdiff + +%changelog