2018-05-26 10:38:09 +00:00
|
|
|
#
|
2018-06-05 06:01:45 +00:00
|
|
|
# spec file for package python-python-rpm-spec
|
2018-05-26 10:38:09 +00:00
|
|
|
#
|
2024-03-04 03:16:51 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-05-26 10:38:09 +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.
|
|
|
|
|
2019-03-05 22:00:13 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-26 10:38:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-rpm-spec
|
2024-03-04 03:16:51 +00:00
|
|
|
Version: 0.15.0
|
2018-05-26 10:38:09 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python module for parsing RPM spec files
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/bkircher/python-rpm-spec
|
2024-03-04 03:16:51 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python_rpm_spec/python_rpm_spec-%{version}.tar.gz
|
2023-09-13 07:38:28 +00:00
|
|
|
BuildRequires: %{python_module flit}
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-05-26 10:38:09 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-06-05 06:01:45 +00:00
|
|
|
Conflicts: python-pyrpm
|
2018-05-26 10:38:09 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
python-rpm-spec is a Python module for parsing RPM spec files. RPMs are build
|
|
|
|
from a package's sources along with a spec file. The spec file controls how the
|
|
|
|
RPM is built. This module allows you to parse spec files and gives you simple
|
|
|
|
access to various bits of information that is contained in the spec file.
|
|
|
|
|
|
|
|
%prep
|
2024-03-04 03:16:51 +00:00
|
|
|
%autosetup -p1 -n python_rpm_spec-%{version}
|
2018-05-26 10:38:09 +00:00
|
|
|
|
|
|
|
%build
|
2023-09-13 07:38:28 +00:00
|
|
|
%pyproject_wheel
|
2018-05-26 10:38:09 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-13 07:38:28 +00:00
|
|
|
%pyproject_install
|
2018-05-26 10:38:09 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-08-06 05:41:23 +00:00
|
|
|
%pytest tests
|
2018-05-26 10:38:09 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2024-03-04 03:16:51 +00:00
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%license LICENSE
|
2023-09-13 07:38:28 +00:00
|
|
|
%{python_sitelib}/pyrpm
|
2024-03-04 03:16:51 +00:00
|
|
|
%{python_sitelib}/python_rpm_spec-%{version}.dist-info
|
2018-05-26 10:38:09 +00:00
|
|
|
|
|
|
|
%changelog
|