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