2020-09-30 09:24:31 +08:00
|
|
|
%global repo_name python-rpm-spec
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
Name: python-pyrpm
|
2023-04-11 17:20:58 +08:00
|
|
|
Version: 0.14.1
|
2023-04-24 17:08:42 +08:00
|
|
|
Release: 2
|
2020-09-30 09:24:31 +08:00
|
|
|
Summary: python-pyrpm is a Python library for parsing RPM spec files
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/bkircher/%{repo_name}
|
2023-04-11 17:20:58 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/a8/35/b00d2a67f5116f6690db70c915f0c58d190174d585b7171f007110d28b1e/python-rpm-spec-0.14.1.tar.gz
|
2020-09-30 09:24:31 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
python-pyrpm is a Python library for parsing RPM spec files. 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.
|
|
|
|
|
|
|
|
|
|
%package -n python3-pyrpm
|
|
|
|
|
Summary: python3-pyrpm is a Python 3 library for parsing RPM spec files
|
2022-11-28 11:20:27 +08:00
|
|
|
Provides: python-rpm-spec = %{version}-%{release}
|
2020-09-30 09:24:31 +08:00
|
|
|
BuildRequires: python3-devel
|
2023-04-24 17:08:42 +08:00
|
|
|
BuildRequires: python3-pip python3-wheel python3-flit
|
2020-09-30 09:24:31 +08:00
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
%endif
|
|
|
|
|
%description -n python3-pyrpm
|
|
|
|
|
It is a Python 3 library for python-pyrpm.
|
|
|
|
|
|
2022-11-28 11:20:27 +08:00
|
|
|
%package help
|
|
|
|
|
Summary: Development documents and examples for python3-pyrpm
|
|
|
|
|
Provides: python3-python-rpm-spec-doc
|
|
|
|
|
%description help
|
|
|
|
|
It is a Python 3 library for python-pyrpm.
|
|
|
|
|
|
2020-09-30 09:24:31 +08:00
|
|
|
%prep
|
2022-11-28 11:20:27 +08:00
|
|
|
%autosetup -n python-rpm-spec-%{version}
|
2020-09-30 09:24:31 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-04-24 17:08:42 +08:00
|
|
|
%pyproject_build
|
2020-09-30 09:24:31 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-04-24 17:08:42 +08:00
|
|
|
%pyproject_install python-rpm-spec==%{version}
|
2022-11-28 11:20:27 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
2020-09-30 09:24:31 +08:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
py.test-%{python3_version} -vv tests || :
|
|
|
|
|
%endif
|
|
|
|
|
|
2023-04-24 17:08:42 +08:00
|
|
|
%files -n python3-pyrpm
|
|
|
|
|
%{python3_sitelib}/*
|
2020-09-30 09:24:31 +08:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md AUTHORS examples
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-04-24 17:08:42 +08:00
|
|
|
* Mon Apr 24 2023 Ge Wang <wang__ge@126.com> - 0.14.1-2
|
|
|
|
|
- Use pyproject to compile package
|
|
|
|
|
|
2023-04-11 17:20:58 +08:00
|
|
|
* Tue Apr 11 2023 Ge Wang <wang--ge@126.com> - 0.14.1-1
|
|
|
|
|
- Update package to version 0.14.1
|
|
|
|
|
|
2022-11-28 11:20:27 +08:00
|
|
|
* Fri Nov 25 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.13-1
|
|
|
|
|
- Update package to version 0.13
|
|
|
|
|
|
2020-09-30 09:24:31 +08:00
|
|
|
* Tue Sep 29 2020 Leo Fang <leofang_94@163.com>
|
|
|
|
|
- Package Init
|