forked from pykickstart/pykickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pykickstart.spec.in
77 lines (62 loc) · 1.85 KB
/
pykickstart.spec.in
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
75
76
77
# Enable tests by default. To disable them use:
# rpmbuild -ba --without runtests pykickstart.spec
%bcond_without runtests
%bcond_with signed
Name: pykickstart
Version: %%VERSION%%
Release: 1%{?dist}
License: GPL-2.0-only AND MIT
Summary: Python utilities for manipulating kickstart files.
Url: http://fedoraproject.org/wiki/pykickstart
Source0: https://github.com/pykickstart/%{name}/releases/download/r%{version}/%{name}-%{version}.tar.gz
%if %{with signed}
Source1: https://github.com/pykickstart/%{name}/releases/download/r%{version}/%{name}-%{version}.tar.gz.asc
%endif
BuildArch: noarch
BuildRequires: gettext
BuildRequires: python3-devel
BuildRequires: python3-requests
BuildRequires: python3-setuptools
BuildRequires: make
# Only required when building with runtests
%if %{with runtests}
BuildRequires: python3-sphinx
%endif
Requires: python3-kickstart = %{version}-%{release}
%description
Python utilities for manipulating kickstart files.
%package -n python3-kickstart
Summary: Python 3 library for manipulating kickstart files.
Requires: python3-requests
%description -n python3-kickstart
Python 3 library for manipulating kickstart files. The binaries are found in
the pykickstart package.
%prep
%setup -q
%build
make PYTHON=%{__python3}
%install
make PYTHON=%{__python3} DESTDIR=%{buildroot} install
%check
%if %{with runtests}
LC_ALL=C make PYTHON=%{__python3} test-no-coverage
%endif
%files
%license COPYING
%doc README.rst
%doc data/kickstart.vim
%{_bindir}/ksvalidator
%{_bindir}/ksflatten
%{_bindir}/ksverdiff
%{_bindir}/ksshell
%{_mandir}/man1/ksflatten.1.gz
%{_mandir}/man1/ksshell.1.gz
%{_mandir}/man1/ksvalidator.1.gz
%{_mandir}/man1/ksverdiff.1.gz
%files -n python3-kickstart
%doc docs/2to3
%doc docs/programmers-guide
%doc docs/kickstart-docs.txt
%{python3_sitelib}/pykickstart
%{python3_sitelib}/pykickstart*.egg-info
%changelog