From 4dd44ad4823ced015b73dfee3b24e994fb5af69a5f7b31679e11d61b66622495 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 16:06:04 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-VyattaConfParser?expand=0&rev=8 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + VyattaConfParser-0.5.5.tar.xz | 3 ++ _service | 17 +++++++++ _servicedata | 4 +++ python-VyattaConfParser.changes | 33 ++++++++++++++++++ python-VyattaConfParser.spec | 62 +++++++++++++++++++++++++++++++++ 7 files changed, 143 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 VyattaConfParser-0.5.5.tar.xz create mode 100644 _service create mode 100644 _servicedata create mode 100644 python-VyattaConfParser.changes create mode 100644 python-VyattaConfParser.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/VyattaConfParser-0.5.5.tar.xz b/VyattaConfParser-0.5.5.tar.xz new file mode 100644 index 0000000..afe8c54 --- /dev/null +++ b/VyattaConfParser-0.5.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5eead1562c448a36dfbcff33d50f568230954216acb3a5dd03446dfa8ee75aa9 +size 4844 diff --git a/_service b/_service new file mode 100644 index 0000000..33a1d48 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + https://github.com/hedin/vyatta-conf-parser.git + git + 9a09e8375ecf75c054f1231fa989222e440313bf + no + enable + VyattaConfParser + 0.5.5 + + + *.tar + xz + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..d7441e5 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/hedin/vyatta-conf-parser.git + 9a09e8375ecf75c054f1231fa989222e440313bf \ No newline at end of file diff --git a/python-VyattaConfParser.changes b/python-VyattaConfParser.changes new file mode 100644 index 0000000..c31a58c --- /dev/null +++ b/python-VyattaConfParser.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Mon May 12 15:49:32 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Dec 21 14:49:38 UTC 2019 - mardnh@gmx.de + +- Update to version 0.5.5: + * Add + sign to regexp pattern + * Upd version number + * Fix #9 + +------------------------------------------------------------------- +Thu Oct 24 18:06:19 UTC 2019 - mardnh@gmx.de + +- Update to version 0.5.3: + * Fix error parsing named section config with missing {} curly + brackets +- Do not longer build for python2, upstream dropped support with + this release + +------------------------------------------------------------------- +Tue Oct 1 20:32:45 UTC 2019 - Martin Hauke + +- Update to version 0.5.2 + * Fix parsing of multiple values with same key +- Run tests + +------------------------------------------------------------------- +Mon Aug 7 11:53:58 UTC 2017 - mardnh@gmx.de + +- Initial package, version 0.5.1 diff --git a/python-VyattaConfParser.spec b/python-VyattaConfParser.spec new file mode 100644 index 0000000..bbebd5e --- /dev/null +++ b/python-VyattaConfParser.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-VyattaConfParser +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2017-2019, 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/ +# + + +Name: python-VyattaConfParser +Version: 0.5.5 +Release: 0 +Summary: A python config parser for Vyatta/VyOS +License: MIT +URL: https://github.com/hedin/vyatta-conf-parser +#Source: https://files.pythonhosted.org/packages/source/V/VyattaConfParser/VyattaConfParser-%%{version}.tar.gz +Source: VyattaConfParser-%{version}.tar.xz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module datadiff} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Vyatta/VyOS config parser with unicode support and without dependencies. + +%prep +%setup -q -n VyattaConfParser-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/[Vv]yatta[Cc]onf[Pp]arser +%{python_sitelib}/[Vv]yatta[Cc]onf[Pp]arser-%{version}*-info + +%changelog