2019-10-14 06:58:22 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-srcinfo
|
|
|
|
#
|
2025-06-13 10:14:01 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-10-14 06:58:22 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-06-13 10:14:01 +00:00
|
|
|
%bcond_without libalternatives
|
2019-10-14 06:58:22 +00:00
|
|
|
Name: python-srcinfo
|
2023-12-08 16:07:22 +00:00
|
|
|
Version: 0.1.2
|
2019-10-14 06:58:22 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python library to parse Arch SRCINFO files
|
|
|
|
License: ISC
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/kyrias/python-srcinfo
|
2022-12-15 10:12:42 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz
|
2025-06-13 10:14:01 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2025-06-13 10:53:23 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-13 10:14:01 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: alts
|
2019-10-14 06:58:22 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2025-06-13 10:14:01 +00:00
|
|
|
Requires: alts
|
2022-12-15 10:12:42 +00:00
|
|
|
Requires: python-parse >= 1.19.0
|
2019-10-14 06:58:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
2022-12-15 10:12:42 +00:00
|
|
|
BuildRequires: %{python_module parse >= 1.19.0}
|
2020-11-23 18:21:45 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-10-14 06:58:22 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python library to parse Arch .SRCINFO files.
|
|
|
|
|
|
|
|
%prep
|
2022-12-15 10:12:42 +00:00
|
|
|
%setup -q -n srcinfo-%{version}
|
2020-11-23 18:21:45 +00:00
|
|
|
mv test/__init__.py test_srcinfo.py
|
|
|
|
|
2019-10-14 06:58:22 +00:00
|
|
|
%build
|
2025-06-13 10:53:23 +00:00
|
|
|
%python_build
|
2019-10-14 06:58:22 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-13 10:53:23 +00:00
|
|
|
%python_install
|
2020-05-19 08:52:33 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/parse_srcinfo
|
2019-10-14 06:58:22 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-11-23 18:21:45 +00:00
|
|
|
%pytest
|
2019-10-14 06:58:22 +00:00
|
|
|
|
2025-06-13 10:14:01 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative parse_srcinfo
|
2020-05-19 08:52:33 +00:00
|
|
|
|
2019-10-14 06:58:22 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2020-05-19 08:52:33 +00:00
|
|
|
%python_alternative %{_bindir}/parse_srcinfo
|
2022-12-15 10:12:42 +00:00
|
|
|
%{python_sitelib}/srcinfo*/
|
2019-10-14 06:58:22 +00:00
|
|
|
|
|
|
|
%changelog
|