forked from pool/python-srcinfo
- Convert to pip-based build and libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srcinfo?expand=0&rev=11
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
33
python-srcinfo.changes
Normal file
33
python-srcinfo.changes
Normal file
@@ -0,0 +1,33 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 10:13:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build and libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 8 16:06:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- Remove pr_10.patch merged upstream
|
||||
- Update to v0.1.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Use pytest instead of nose during check
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 08:03:02 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 12 03:28:25 PM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Added pr_10.patch for Python 2 compatibility
|
||||
- Initial spec for v0.0.8
|
||||
70
python-srcinfo.spec
Normal file
70
python-srcinfo.spec
Normal file
@@ -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
|
||||
3
srcinfo-0.1.2.tar.gz
Normal file
3
srcinfo-0.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c8296c710015a6b25c1dc750a494841a8094a2cf4fdb33a375fbe9720ec976e6
|
||||
size 5262
|
||||
Reference in New Issue
Block a user