64 lines
1.2 KiB
RPMSpec
64 lines
1.2 KiB
RPMSpec
%global desc %{expand:
|
|
Python library for parsing and manipulating RPM spec files.
|
|
Main focus is on modifying existing spec files, any change should result
|
|
in a minimal diff.}
|
|
|
|
|
|
Name: python-specfile
|
|
Version: 0.1.1
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A library for parsing and manipulating RPM spec files
|
|
License: MIT
|
|
URL: https://github.com/packit/specfile
|
|
|
|
Source0: https://github.com/packit/specfile/archive/%{version}/specfile-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
|
%description
|
|
%{desc}
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-specfile
|
|
Summary: %{summary}
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-specfile
|
|
%{desc}
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -x testing
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n specfile-%{version}
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files specfile
|
|
|
|
|
|
%check
|
|
%pytest
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-specfile -f %{pyproject_files}
|
|
%doc README.md
|
|
|
|
|
|
%changelog
|
|
* Mon Feb 21 2022 Nikola Forró <nforro@redhat.com> - 0.1.1-1
|
|
- New upstream release 0.1.1
|
|
|
|
* Tue Feb 08 2022 Nikola Forró <nforro@redhat.com> - 0.1.0-1
|
|
- Initial package
|