]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - pakfire/pakfire.nm
libsolv: Update to 0.7.25
[people/pmueller/ipfire-3.x.git] / pakfire / pakfire.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = pakfire
7 version = 0.9.29
8 release = 1
9
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Packaging
12 url = https://git.ipfire.org/?p=pakfire.git;a=summary
13 license = GPLv3+
14 summary = Package installer/updater
15
16 description
17 Pakfire optains package lists from the mirrors and can install and
18 update packages.
19 end
20
21 source_dl = https://source.ipfire.org/releases/pakfire/
22
23 build
24 requires
25 asciidoc
26 autoconf
27 automake
28 bison
29 curl-devel
30 file-devel
31 flex
32 gettext-devel
33 gpgme-devel
34 intltool >= 0.40.0
35 json-c-devel >= 0.15
36 libarchive-devel >= 3.4.0
37 libbpf-devel
38 libcap-devel
39 libmount-devel
40 libnl3-devel
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
54 systemd-devel
55 xz-devel
56 zstd-devel
57 end
58
59 prepare_cmds
60 # Generate the build system, if this was not a release
61 # tarball.
62 [ -x "configure" ] || sh ./autogen.sh
63 end
64
65 configure_options += \
66 --enable-debug
67
68 test
69 LD_LIBRARY_PATH=%{DIR_APP}/src/.libs make check || true
70 end
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
77 end
78
79 packages
80 package %{name}
81 requires
82 python3-cpuinfo
83 python3-kerberos
84 python3-psutil
85 python3-setproctitle
86 python3-systemd
87 python3-tornado
88
89 system-release
90 end
91
92 # Install this package into the build environment by default
93 supplements
94 build-essential
95 end
96
97 configfiles = %{sysconfdir}/pakfire/general.conf
98 end
99
100 package %{name}-builder
101 summary = The Pakfire builder
102 description
103 The tools that are needed to build new pakfire packages.
104 end
105
106 requires
107 pakfire = %{thisver}
108 end
109
110 configfiles
111 %{sysconfdir}/pakfire/builder.conf
112 %{sysconfdir}/pakfire/distros
113 end
114
115 files
116 %{sysconfdir}/pakfire/builder.conf
117 %{sysconfdir}/pakfire/distros
118 %{bindir}/pakfire-builder
119 %{mandir}/man*/pakfire-builder*
120 end
121 end
122
123 package %{name}-client
124 summary = The Pakfire Hub client
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
131 pakfire = %{thisver}
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
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
175 end
176
177 package %{name}-debuginfo
178 template DEBUGINFO
179 end
180 end