]> git.ipfire.org Git - ipfire-3.x.git/blob - pakfire/pakfire.nm
pakfire: Update to 0.9.27
[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.27
8 release = 1
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
59 mkdir -pv %{BUILDROOT}%{datadir}/pakfire
60 for i in $(find %{datadir}/automake-* -name config.guess -or -name config.sub); do
61 cp -vf ${i} %{BUILDROOT}%{datadir}/pakfire/
62 done
63 end
64 end
65
66 packages
67 package %{name}
68 groups += Base
69
70 provides
71 pakfire-common = %{thisver}
72 end
73 obsoletes
74 pakfire-common < %{thisver}
75 end
76
77 requires
78 libsolv >= 0.0.0-4
79 pygpgme
80 python-progressbar
81 python-urlgrabber
82 system-release
83 end
84
85 configfiles = %{sysconfdir}/pakfire/general.conf
86 end
87
88 package %{name}-builder
89 summary = The Pakfire builder.
90 description
91 The tools that are needed to build new pakfire packages.
92 end
93 groups += Build
94
95 requires
96 # For --rpm-requires.
97 bash >= 4.2-7
98
99 %{name} = %{thisver}
100 quality-agent = %{thisver}
101 cpio
102 elfutils
103 end
104 provides = pakfire-build = %{thisver}
105 obsoletes = pakfire-build < %{thisver}
106
107 conflicts
108 build-essentials
109 systemd-devel < 38
110 end
111
112 # Requires GCC 4.9 or later for -fstack-protector-strong
113 conflicts += gcc < 4.9
114
115 configfiles
116 %{sysconfdir}/pakfire/builder.conf
117 %{sysconfdir}/pakfire/distros
118 end
119
120 files
121 %{sysconfdir}/pakfire/builder.conf
122 %{sysconfdir}/pakfire/distros
123 %{libdir}/libpakfire_preload.so
124 %{bindir}/pakfire-builder
125
126 %{prefix}/lib/pakfire
127 %{libdir}/pakfire
128 end
129 end
130
131 package %{name}-client
132 summary = The Pakfire Hub client.
133 description
134 The pakfire client has the power to create build jobs
135 and communicate with the Pakfire Build Service.
136 end
137
138 requires
139 pakfire-common = %{thisver}
140 end
141
142 files
143 %{sysconfdir}/pakfire/client.conf
144 %{bindir}/pakfire-client
145 end
146 configfiles = %{sysconfdir}/pakfire/client.conf
147 end
148
149 package %{name}-daemon
150 summary = The Pakfire daemon.
151 description
152 The Pakfire daemon takes build jobs from the
153 Pakfire Build Service and compiles them.
154 end
155
156 requires
157 pakfire-builder = %{thisver}
158 end
159
160 files
161 %{sysconfdir}/pakfire/daemon.conf
162 %{bindir}/pakfire-daemon
163 end
164 configfiles = %{sysconfdir}/pakfire/daemon.conf
165
166 script postin
167 systemctl daemon-reload >/dev/null 2>&1 || :
168 end
169
170 script preun
171 systemctl --no-reload disable pakfire-daemon.service > /dev/null 2>&1 || :
172 systemctl stop pakfire-daemon.service > /dev/null 2>&1 || :
173 end
174
175 script postun
176 systemctl daemon-reload >/dev/null 2>&1 || :
177 end
178
179 script postup
180 systemctl daemon-reload 2>&1 || :
181 systemctl reload-or-try-restart pakfire-daemon.service >/dev/null 2>&1 || :
182 end
183 end
184
185 package quality-agent
186 arch = noarch
187
188 summary = The pakfire quality agent.
189 description
190 The quality agent tests resulting packages that come out
191 of the build service.
192 It is a collection of scripts that check if everything is
193 working right.
194 end
195
196 files
197 /usr/lib/pakfire/quality-agent
198 /usr/lib/quality-agent*
199 end
200
201 requires
202 gawk
203 binutils
204 coreutils
205 findutils
206 file
207 grep
208 sed
209 end
210 end
211
212 package %{name}-debuginfo
213 template DEBUGINFO
214 end
215 end