commit 5a0b25931c82b449676080cf29c51682e503f9937d7003285daf876bc8464952 Author: Markéta Machová Date: Fri Jun 13 10:14:01 2025 +0000 - Convert to pip-based build and libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srcinfo?expand=0&rev=11 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/python-srcinfo.changes b/python-srcinfo.changes new file mode 100644 index 0000000..4b52e6a --- /dev/null +++ b/python-srcinfo.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Fri Jun 13 10:13:37 UTC 2025 - Markéta Machová + +- Convert to pip-based build and libalternatives + +------------------------------------------------------------------- +Fri Dec 8 16:06:46 UTC 2023 - Dirk Müller + +- update to 0.1.2: + * Revert "Don't check for prefix matches in is_array" + * Add test to make sure architecture-specific arrays work + +------------------------------------------------------------------- +Wed Dec 14 23:16:31 UTC 2022 - John Vandenberg + +- Remove pr_10.patch merged upstream +- Update to v0.1.1 + +------------------------------------------------------------------- +Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg + +- Use pytest instead of nose during check + +------------------------------------------------------------------- +Tue May 19 08:03:02 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Sat Oct 12 03:28:25 PM UTC 2019 - John Vandenberg + +- Added pr_10.patch for Python 2 compatibility +- Initial spec for v0.0.8 diff --git a/python-srcinfo.spec b/python-srcinfo.spec new file mode 100644 index 0000000..7f753ca --- /dev/null +++ b/python-srcinfo.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-srcinfo +# +# 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/ +# + + +%bcond_without libalternatives +Name: python-srcinfo +Version: 0.1.2 +Release: 0 +Summary: Python library to parse Arch SRCINFO files +License: ISC +Group: Development/Languages/Python +URL: https://github.com/kyrias/python-srcinfo +Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-parse >= 1.19.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module parse >= 1.19.0} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Python library to parse Arch .SRCINFO files. + +%prep +%setup -q -n srcinfo-%{version} +mv test/__init__.py test_srcinfo.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/parse_srcinfo +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%pre +%python_libalternatives_reset_alternative parse_srcinfo + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/parse_srcinfo +%{python_sitelib}/srcinfo*/ + +%changelog diff --git a/srcinfo-0.1.2.tar.gz b/srcinfo-0.1.2.tar.gz new file mode 100644 index 0000000..05cbf09 --- /dev/null +++ b/srcinfo-0.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8296c710015a6b25c1dc750a494841a8094a2cf4fdb33a375fbe9720ec976e6 +size 5262