]>
Commit | Line | Data |
---|---|---|
e5192f6a | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
e5192f6a MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = pakfire |
321469be | 7 | version = 0.9.29 |
5c1900fa | 8 | release = 1 |
e5192f6a | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = System/Packaging | |
5c1900fa | 12 | url = https://git.ipfire.org/?p=pakfire.git;a=summary |
802ea3af | 13 | license = GPLv3+ |
5c1900fa | 14 | summary = Package installer/updater |
e5192f6a | 15 | |
802ea3af | 16 | description |
5c1900fa MT |
17 | Pakfire optains package lists from the mirrors and can install and |
18 | update packages. | |
802ea3af MT |
19 | end |
20 | ||
5c1900fa | 21 | source_dl = https://source.ipfire.org/releases/pakfire/ |
e5192f6a | 22 | |
802ea3af MT |
23 | build |
24 | requires | |
5c1900fa | 25 | asciidoc |
dd584391 MT |
26 | autoconf |
27 | automake | |
5c1900fa MT |
28 | bison |
29 | curl-devel | |
321469be | 30 | file-devel |
5c1900fa | 31 | flex |
dd584391 | 32 | gettext-devel |
5c1900fa MT |
33 | gpgme-devel |
34 | intltool >= 0.40.0 | |
35 | json-c-devel >= 0.15 | |
36 | libarchive-devel >= 3.4.0 | |
321469be | 37 | libbpf-devel |
533ad168 | 38 | libcap-devel |
5c1900fa | 39 | libmount-devel |
321469be | 40 | libnl3-devel |
5c1900fa MT |
41 | libseccomp-devel |
42 | libsolv-devel >= 0.7.5 | |
43 | libuuid-devel | |
44 | openssl-devel >= 1.1.1 | |
45 | pcre2-devel | |
46 | python3-cpuinfo | |
47 | python3-devel >= 3.6 | |
48 | python3-kerberos | |
49 | python3-psutil | |
50 | python3-setproctitle | |
51 | python3-systemd | |
52 | python3-tornado | |
53 | sqlite-devel | |
dd584391 | 54 | systemd-devel |
f0216cd6 | 55 | xz-devel |
5c1900fa | 56 | zstd-devel |
802ea3af | 57 | end |
e5192f6a | 58 | |
dd584391 MT |
59 | prepare_cmds |
60 | # Generate the build system, if this was not a release | |
61 | # tarball. | |
62 | [ -x "configure" ] || sh ./autogen.sh | |
63 | end | |
706e01d9 | 64 | |
5c1900fa MT |
65 | configure_options += \ |
66 | --enable-debug | |
67 | ||
802ea3af | 68 | test |
5c1900fa | 69 | LD_LIBRARY_PATH=%{DIR_APP}/src/.libs make check || true |
802ea3af | 70 | end |
47a5ddc1 MT |
71 | |
72 | install_cmds | |
73 | # Remove all example repository definitions. | |
74 | # Those will be solely provided by system-release. | |
75 | rm -rfv %{BUILDROOT}%{sysconfdir}/pakfire/repos/* | |
76 | end | |
802ea3af | 77 | end |
fd79f072 | 78 | |
802ea3af MT |
79 | packages |
80 | package %{name} | |
5c1900fa MT |
81 | requires |
82 | python3-cpuinfo | |
83 | python3-kerberos | |
84 | python3-psutil | |
85 | python3-setproctitle | |
86 | python3-systemd | |
87 | python3-tornado | |
7afde232 | 88 | |
5c1900fa | 89 | system-release |
dd584391 | 90 | end |
0d37182c | 91 | |
5c1900fa MT |
92 | # Install this package into the build environment by default |
93 | supplements | |
94 | build-essential | |
802ea3af | 95 | end |
0d37182c | 96 | |
47a5ddc1 | 97 | configfiles = %{sysconfdir}/pakfire/general.conf |
802ea3af | 98 | end |
47a5ddc1 | 99 | |
16f3dc5d | 100 | package %{name}-builder |
5c1900fa | 101 | summary = The Pakfire builder |
802ea3af MT |
102 | description |
103 | The tools that are needed to build new pakfire packages. | |
104 | end | |
0d37182c | 105 | |
802ea3af | 106 | requires |
5c1900fa | 107 | pakfire = %{thisver} |
47a5ddc1 MT |
108 | end |
109 | ||
110 | configfiles | |
dd584391 MT |
111 | %{sysconfdir}/pakfire/builder.conf |
112 | %{sysconfdir}/pakfire/distros | |
47a5ddc1 | 113 | end |
0d37182c MT |
114 | |
115 | files | |
dd584391 MT |
116 | %{sysconfdir}/pakfire/builder.conf |
117 | %{sysconfdir}/pakfire/distros | |
47a5ddc1 | 118 | %{bindir}/pakfire-builder |
5c1900fa | 119 | %{mandir}/man*/pakfire-builder* |
0d37182c MT |
120 | end |
121 | end | |
122 | ||
47a5ddc1 | 123 | package %{name}-client |
5c1900fa | 124 | summary = The Pakfire Hub client |
47a5ddc1 MT |
125 | description |
126 | The pakfire client has the power to create build jobs | |
127 | and communicate with the Pakfire Build Service. | |
128 | end | |
129 | ||
130 | requires | |
5c1900fa | 131 | pakfire = %{thisver} |
47a5ddc1 MT |
132 | end |
133 | ||
134 | files | |
135 | %{sysconfdir}/pakfire/client.conf | |
136 | %{bindir}/pakfire-client | |
137 | end | |
138 | configfiles = %{sysconfdir}/pakfire/client.conf | |
139 | end | |
140 | ||
141 | package %{name}-daemon | |
142 | summary = The Pakfire daemon. | |
143 | description | |
144 | The Pakfire daemon takes build jobs from the | |
145 | Pakfire Build Service and compiles them. | |
146 | end | |
147 | ||
148 | requires | |
149 | pakfire-builder = %{thisver} | |
150 | end | |
151 | ||
152 | files | |
153 | %{sysconfdir}/pakfire/daemon.conf | |
154 | %{bindir}/pakfire-daemon | |
155 | end | |
156 | configfiles = %{sysconfdir}/pakfire/daemon.conf | |
eac44f69 MT |
157 | |
158 | script postin | |
159 | systemctl daemon-reload >/dev/null 2>&1 || : | |
160 | end | |
161 | ||
162 | script preun | |
163 | systemctl --no-reload disable pakfire-daemon.service > /dev/null 2>&1 || : | |
164 | systemctl stop pakfire-daemon.service > /dev/null 2>&1 || : | |
165 | end | |
166 | ||
167 | script postun | |
168 | systemctl daemon-reload >/dev/null 2>&1 || : | |
169 | end | |
170 | ||
171 | script postup | |
172 | systemctl daemon-reload 2>&1 || : | |
173 | systemctl reload-or-try-restart pakfire-daemon.service >/dev/null 2>&1 || : | |
174 | end | |
47a5ddc1 MT |
175 | end |
176 | ||
1f9bc2f0 MT |
177 | package %{name}-debuginfo |
178 | template DEBUGINFO | |
179 | end | |
802ea3af | 180 | end |