Skip to content

Commit 22ff071

Browse files
committed
Update Fedora spec file
Signed-off-by: Nikola Forró <[email protected]>
1 parent 1e5f02a commit 22ff071

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

fedora/python-specfile.spec

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
%{?!python3_pkgversion:%global python3_pkgversion 3}
2-
3-
%global srcname specfile
4-
51
%global desc %{expand:
62
Python library for parsing and manipulating RPM spec files.
73
Main focus is on modifying existing spec files, any change should result
84
in a minimal diff.}
95

106

11-
Name: python-%{srcname}
12-
Version: 0.1.0
7+
Name: python-specfile
8+
Version: 0.1.1
139
Release: 1%{?dist}
1410

1511
Summary: A library for parsing and manipulating RPM spec files
1612
License: MIT
1713
URL: https://github.com/packit/specfile
1814

19-
Source0: %{pypi_source}
15+
Source0: https://github.com/packit/specfile/archive/%{version}/specfile-%{version}.tar.gz
2016

2117
BuildArch: 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
3127
Summary: %{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

Comments
 (0)