diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53eaeeb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/specfile-*.tar.gz diff --git a/python-specfile.spec b/python-specfile.spec new file mode 100644 index 0000000..4a9660b --- /dev/null +++ b/python-specfile.spec @@ -0,0 +1,64 @@ +%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ó - 0.1.1-1 +- New upstream release 0.1.1 + +* Tue Feb 08 2022 Nikola Forró - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..070fb37 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (specfile-0.1.1.tar.gz) = c4714e7170ea27cb309d0137b831e067361d00d384646dd2e07876221256de3f4b32b06addfe78924f17046b96d63f53f33e4fe6f22ca20561e154629c49fbed