forked from bkircher/python-rpm-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython3-pyrpm.spec
74 lines (55 loc) · 2.01 KB
/
python3-pyrpm.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%global reponame python-rpm-spec
# enable tests by default, disable with --without tests
%bcond_without tests
Name: python3-pyrpm
Version: 0.7
Release: 3%{?dist}
Provides: python3-rpm-spec = 2:%{version}-%{release}
Obsoletes: python3-rpm-spec < 2:0.7-1
Summary: Python module for parsing RPM spec files
License: MIT
URL: https://github.com/bkircher/python-rpm-spec
Source0: https://github.com/bkircher/%{reponame}/archive/%{version}.tar.gz#/%{reponame}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
%endif
%{?python_provide:%python_provide %{name}}
%description
python-rpm-spec is a Python module for parsing RPM spec files. RPMs are build
from a package's sources along with a spec file. The spec file controls how the
RPM is built. 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.
%prep
%autosetup -n %{reponame}-%{version}
%build
%py3_build
%install
%py3_install
%check
%if %{with tests}
py.test-%{python3_version} -vv tests || :
%endif
%files
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%changelog
* Thu Sep 14 2017 Benjamin Kircher <[email protected]> - 0.7-3
- Amend missing Provides and Obsoletes
* Tue Sep 12 2017 Benjamin Kircher <[email protected]> - 0.7-2
- Make package adhere naming guidelines
* Thu Aug 10 2017 Benjamin Kircher <[email protected]> - 0.7-1
- New version
* Thu Jul 27 2017 Benjamin Kircher <[email protected]> - 0.6-1
- New version
* Sat Mar 25 2017 Benjamin Kircher <[email protected]> - 0.5-1
- New version
* Thu Feb 09 2017 Benjamin Kircher <[email protected]> - 0.4-1
- New version, allow disabling tests
* Fri Jan 27 2017 Benjamin Kircher <[email protected]> - 0.3-1
- New version
* Thu Jan 26 2017 Benjamin Kircher <[email protected]> - 0.2-1
- Initial spec