]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pakfire/pakfire.nm
pakfire: Fix for database conversion.
[people/ms/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.26
8 release = 2
9
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Packaging
12 url = http://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 update
18 packages.
19 end
20
21 source_dl = http://source.ipfire.org/releases/pakfire/
22
23 build
24 requires
25 autoconf
26 automake
27 beecrypt-devel
28 elfutils-devel
29 gettext-devel
30 intltool
31 libcap-devel
32 libsolv-devel >= 0.0.0-4
33 popt-devel
34 python-devel
35 systemd-devel
36 systemd-units
37 xz-devel
38 end
39
40 # libgomp was broken in earlier releases.
41 requires += gcc >= 4.6.2-4
42 requires += beecrypt >= 4.2.1-2
43
44 prepare_cmds
45 # Generate the build system, if this was not a release
46 # tarball.
47 [ -x "configure" ] || sh ./autogen.sh
48 end
49
50 test
51 make check
52 end
53
54 install_cmds
55 # Remove all example repository definitions.
56 # Those will be solely provided by system-release.
57 rm -rfv %{BUILDROOT}%{sysconfdir}/pakfire/repos/*
58 end
59 end
60
61 packages
62 package %{name}
63 groups += Base
64
65 provides
66 pakfire-common = %{thisver}
67 end
68 obsoletes
69 pakfire-common < %{thisver}
70 end
71
72 requires
73 libsolv >= 0.0.0-4
74 pygpgme
75 python-progressbar
76 python-urlgrabber
77 system-release
78 end
79
80 configfiles = %{sysconfdir}/pakfire/general.conf
81 end
82
83 package %{name}-builder
84 summary = The Pakfire builder.
85 description
86 The tools that are needed to build new pakfire packages.
87 end
88 groups += Build
89
90 requires
91 # For --rpm-requires.
92 bash >= 4.2-7
93
94 %{name} = %{thisver}
95 quality-agent = %{thisver}
96 cpio
97 elfutils
98 end
99 provides = pakfire-build = %{thisver}
100 obsoletes = pakfire-build < %{thisver}
101
102 conflicts
103 build-essentials
104 systemd-devel < 38
105 end
106
107 configfiles
108 %{sysconfdir}/pakfire/builder.conf
109 %{sysconfdir}/pakfire/distros
110 end
111
112 files
113 %{sysconfdir}/pakfire/builder.conf
114 %{sysconfdir}/pakfire/distros
115 %{libdir}/libpakfire_preload.so
116 %{bindir}/pakfire-builder
117
118 %{prefix}/lib/pakfire
119 %{libdir}/pakfire
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-common = %{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 quality-agent
178 arch = noarch
179
180 summary = The pakfire quality agent.
181 description
182 The quality agent tests resulting packages that come out
183 of the build service.
184 It is a collection of scripts that check if everything is
185 working right.
186 end
187
188 files
189 /usr/lib/pakfire/quality-agent
190 /usr/lib/quality-agent*
191 end
192
193 requires
194 gawk
195 binutils
196 coreutils
197 findutils
198 file
199 grep
200 sed
201 end
202 end
203
204 package %{name}-debuginfo
205 template DEBUGINFO
206 end
207 end