1- %{?! python3_pkgversion:%global python3_pkgversion 3}
2-
3- %global srcname specfile
4-
51%global desc %{expand:
62Python library for parsing and manipulating RPM spec files.
73Main focus is on modifying existing spec files, any change should result
84in a minimal diff.}
95
106
11- Name: python-%{ srcname }
12- Version: 0.1.0
7+ Name: python-specfile
8+ Version: 0.1.1
139Release: 1%{?dist }
1410
1511Summary: A library for parsing and manipulating RPM spec files
1612License: MIT
1713URL: https://github.com/packit/specfile
1814
19- Source0: %{ pypi_source }
15+ Source0: https://github.com/packit/specfile/archive/%{ version }/specfile-%{ version }.tar.gz
2016
2117BuildArch: noarch
2218
@@ -27,13 +23,11 @@ BuildRequires: python%{python3_pkgversion}-devel
2723%{desc }
2824
2925
30- %package -n python%{python3_pkgversion }-%{ srcname }
26+ %package -n python%{python3_pkgversion }-specfile
3127Summary: %{summary }
3228
33- %{?python_provide:%python_provide python3-%{srcname }}
3429
35-
36- %description -n python%{python3_pkgversion }-%{srcname }
30+ %description -n python%{python3_pkgversion }-specfile
3731%{desc }
3832
3933
@@ -42,7 +36,7 @@ Summary: %{summary}
4236
4337
4438%prep
45- %autosetup -p1 -n %{ srcname } -%{version }
39+ %autosetup -p1 -n specfile -%{version }
4640
4741
4842%build
@@ -51,18 +45,20 @@ Summary: %{summary}
5145
5246%install
5347%pyproject_install
54- %pyproject_save_files %{ srcname }
48+ %pyproject_save_files specfile
5549
5650
5751%check
5852%pytest
5953
6054
61- %files -n python%{python3_pkgversion }-%{srcname } -f %{pyproject_files }
62- %license LICENSE
55+ %files -n python%{python3_pkgversion }-specfile -f %{pyproject_files }
6356%doc README.md
6457
6558
6659%changelog
60+ *
Mon Feb 21 2022 Nikola Forró <[email protected] > -
0.1.1-1 61+ - New upstream release 0.1.1
62+
6763*
Tue Feb 08 2022 Nikola Forró <[email protected] > -
0.1.0-1 6864- Initial package
0 commit comments