]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pakfire/pakfire.nm
ppp: Re-add ifname patch
[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 = 3
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 # Requires GCC 4.9 or later for -fstack-protector-strong
108 conflicts += gcc < 4.9
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 %{libdir}/libpakfire_preload.so
119 %{bindir}/pakfire-builder
120
121 %{prefix}/lib/pakfire
122 %{libdir}/pakfire
123 end
124 end
125
126 package %{name}-client
127 summary = The Pakfire Hub client.
128 description
129 The pakfire client has the power to create build jobs
130 and communicate with the Pakfire Build Service.
131 end
132
133 requires
134 pakfire-common = %{thisver}
135 end
136
137 files
138 %{sysconfdir}/pakfire/client.conf
139 %{bindir}/pakfire-client
140 end
141 configfiles = %{sysconfdir}/pakfire/client.conf
142 end
143
144 package %{name}-daemon
145 summary = The Pakfire daemon.
146 description
147 The Pakfire daemon takes build jobs from the
148 Pakfire Build Service and compiles them.
149 end
150
151 requires
152 pakfire-builder = %{thisver}
153 end
154
155 files
156 %{sysconfdir}/pakfire/daemon.conf
157 %{bindir}/pakfire-daemon
158 end
159 configfiles = %{sysconfdir}/pakfire/daemon.conf
160
161 script postin
162 systemctl daemon-reload >/dev/null 2>&1 || :
163 end
164
165 script preun
166 systemctl --no-reload disable pakfire-daemon.service > /dev/null 2>&1 || :
167 systemctl stop pakfire-daemon.service > /dev/null 2>&1 || :
168 end
169
170 script postun
171 systemctl daemon-reload >/dev/null 2>&1 || :
172 end
173
174 script postup
175 systemctl daemon-reload 2>&1 || :
176 systemctl reload-or-try-restart pakfire-daemon.service >/dev/null 2>&1 || :
177 end
178 end
179
180 package quality-agent
181 arch = noarch
182
183 summary = The pakfire quality agent.
184 description
185 The quality agent tests resulting packages that come out
186 of the build service.
187 It is a collection of scripts that check if everything is
188 working right.
189 end
190
191 files
192 /usr/lib/pakfire/quality-agent
193 /usr/lib/quality-agent*
194 end
195
196 requires
197 gawk
198 binutils
199 coreutils
200 findutils
201 file
202 grep
203 sed
204 end
205 end
206
207 package %{name}-debuginfo
208 template DEBUGINFO
209 end
210 end