-
Notifications
You must be signed in to change notification settings - Fork 7
/
distrobuilder.spec
139 lines (103 loc) · 3.82 KB
/
distrobuilder.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# https://github.com/lxc/distrobuilder
%global goipath github.com/lxc/distrobuilder
Version: 3.1
%gometa
%global godocs AUTHORS CONTRIBUTING.md
%global golicenses COPYING
Name: distrobuilder
Release: 0.1%{?dist}
Summary: System container image builder for LXC and Incus
License: Apache-2.0
URL: %{gourl}
Source0: https://linuxcontainers.org/downloads/distrobuilder/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-Disable-online-tests.patch
BuildRequires: gnupg
BuildRequires: help2man
BuildRequires: squashfs-tools
Requires: gnupg
Requires: rsync
Requires: squashfs-tools
Requires: tar
Requires: util-linux-core
Requires: xz
Recommends: debootstrap
Recommends: genisoimage
%description
%{summary}.
%package doc
Summary: System container image builder for LXC and Incus - Documentation
BuildArch: noarch
BuildRequires: python3-furo
BuildRequires: python3-linkify-it-py
BuildRequires: python3-lxd-sphinx-extensions
BuildRequires: python3-myst-parser
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx-design
BuildRequires: python3-sphinx-reredirects
BuildRequires: python3-sphinx-tabs
BuildRequires: python3-sphinxcontrib-devhelp
BuildRequires: python3-sphinxcontrib-jquery
BuildRequires: python3-sphinxext-opengraph
%description doc
%{summary}.
%gopkg
%prep
%goprep -k
%patch 0 -p1
%generate_buildrequires
%build
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/%{name}
help2man %{gobuilddir}/bin/%{name} -n "System container image builder" --no-info --no-discard-stderr > %{name}.1
sphinx-build -c .sphinx -b dirhtml doc/ doc/html/
rm -vrf doc/html/{.buildinfo,.doctrees}
# remove duplicate files
rm -vrf doc/html/{_sources,_sphinx_design_static}
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vd %{buildroot}%{_mandir}/man1
install -m 0644 -vp %{name}.1 %{buildroot}%{_mandir}/man1/
%check
%gocheck
%files
%license %{golicenses}
%doc doc/examples
%{_bindir}/*
%{_mandir}/man1/%{name}.1.*
%files doc
%license %{golicenses}
%doc doc/html
%gopkgfiles
%changelog
* Sun Nov 03 2024 Reto Gantenbein <[email protected]> 3.1-0.1
- Update to 3.1.
* Sun Nov 19 2023 Reto Gantenbein <[email protected]> 3.0-0.1
- Update to 3.0.
- Create subpackage for documentation
* Wed Jun 29 2022 Reto Gantenbein <[email protected]> 2.1-0.1
- Update to 2.1.
* Sun Feb 27 2022 Reto Gantenbein <[email protected]> 2.0-0.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Oct 28 2021 Reto Gantenbein <[email protected]> 2.0-0.1
- Update to 2.0.
* Sun Aug 22 2021 Reto Gantenbein <[email protected]> 1.3-0.1
- Update to 1.3.
* Wed Apr 14 2021 Reto Gantenbein <[email protected]> 1.2-0.1
- Update to 1.2.
* Sat Oct 03 2020 Reto Gantenbein <[email protected]> 1.1-0.1
- Update to 1.1.
* Thu Oct 24 2019 Reto Gantenbein <[email protected]> 1.0-0.1
- Update to 1.0
- Add man-page through help2man
* Wed Jul 10 2019 Reto Gantenbein <[email protected]> 0-0.1.20190710gitd686c88
- Update to commit d686c88 from July 10, 2019
* Sat Sep 22 2018 Reto Gantenbein <[email protected]> 0-0.1.20180707git7274ea2
- Update to commit 7274ea2 from Jul 7, 2018
* Fri Jun 01 2018 Reto Gantenbein <[email protected]> 0-0.1.20180522gita15b067
- Update to commit a15b067 from May 22, 2018
* Tue May 08 2018 Reto Gantenbein <[email protected]> 0-0.1.20180428git406fd5f
- Update to commit 406fd5f from Apr 28, 2018
* Wed Apr 04 2018 Reto Gantenbein <[email protected]> 0-0.1.20180403gitc0e1763
- Initial package