]> git.ipfire.org Git - pakfire.git/blame - contrib/pakfire.nm.in
Update translations.
[pakfire.git] / contrib / pakfire.nm.in
CommitLineData
b55979b4
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = @PACKAGE_NAME@
7version = @PACKAGE_VERSION@
8release = 1
9
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = System/Packaging
12url = @PACKAGE_URL@
13license = GPLv3+
14summary = Package installer/updater.
15
16description
17 Pakfire optains package lists from the mirrors and can install and update
18 packages.
19end
20
21source_dl = http://source.ipfire.org/releases/pakfire/
22
23build
24 requires
25 beecrypt-devel
26 elfutils-devel
27 gettext
28 libcap-devel
29 libsolv-devel >= 0.0.0-4
30 popt-devel
31 python-devel
32 systemd-units
33 xz-devel
34 end
35
36 # libgomp was broken in earlier releases.
37 requires += gcc >= 4.6.2-4
38 requires += beecrypt >= 4.2.1-2
39
40 test
41 make check
42 end
43
44 install_cmds
45 # Remove all example repository definitions.
46 # Those will be solely provided by system-release.
47 rm -rfv %{BUILDROOT}%{sysconfdir}/pakfire/repos/*
48 end
49end
50
51packages
52 package %{name}
53 groups += Base
54
55 requires = pakfire-common = %{thisver}
56 end
57
58 package %{name}-common
59 requires
60 libsolv >= 0.0.0-4
61 pygpgme
62 python-progressbar
63 python-urlgrabber
64 system-release
65 end
66
67 files
68 %{sysconfdir}/pakfire/general.conf
69 %{bindir}/pakfire-key
70 %{libdir}/python*/site-packages/pakfire*
71 /usr/share/locale
72 end
73 configfiles = %{sysconfdir}/pakfire/general.conf
74 end
75
76 package %{name}-builder
77 summary = The Pakfire builder.
78 description
79 The tools that are needed to build new pakfire packages.
80 end
81 groups += Build
82
83 requires
84 # For --rpm-requires.
85 bash >= 4.2-7
86
87 %{name} = %{thisver}
88 quality-agent = %{thisver}
89 cpio
90 elfutils
91 end
92 provides = pakfire-build = %{thisver}
93 obsoletes = pakfire-build < %{thisver}
94
95 conflicts
96 build-essentials
97 systemd-devel < 38
98 end
99
100 configfiles
101 /etc/pakfire/builder.conf
102 /etc/pakfire/distros
103 end
104
105 files
106 /etc/pakfire/builder.conf
107 /etc/pakfire/distros
108 %{libdir}/libpakfire_preload.so
109 %{bindir}/pakfire-builder
110 %{bindir}/pakfire-server
111 /usr/lib/pakfire/*
112 !/usr/lib/pakfire/pakfire-multicall.py
113 end
114 end
115
116 package %{name}-client
117 summary = The Pakfire Hub client.
118 description
119 The pakfire client has the power to create build jobs
120 and communicate with the Pakfire Build Service.
121 end
122
123 requires
124 pakfire-common = %{thisver}
125 end
126
127 files
128 %{sysconfdir}/pakfire/client.conf
129 %{bindir}/pakfire-client
130 end
131 configfiles = %{sysconfdir}/pakfire/client.conf
132 end
133
134 package %{name}-daemon
135 summary = The Pakfire daemon.
136 description
137 The Pakfire daemon takes build jobs from the
138 Pakfire Build Service and compiles them.
139 end
140
141 requires
142 pakfire-builder = %{thisver}
143 end
144
145 files
146 %{sysconfdir}/pakfire/daemon.conf
147 %{bindir}/pakfire-daemon
148 end
149 configfiles = %{sysconfdir}/pakfire/daemon.conf
150
151 script postin
152 systemctl daemon-reload >/dev/null 2>&1 || :
153 end
154
155 script preun
156 systemctl --no-reload disable pakfire-daemon.service > /dev/null 2>&1 || :
157 systemctl stop pakfire-daemon.service > /dev/null 2>&1 || :
158 end
159
160 script postun
161 systemctl daemon-reload >/dev/null 2>&1 || :
162 end
163
164 script postup
165 systemctl daemon-reload 2>&1 || :
166 systemctl reload-or-try-restart pakfire-daemon.service >/dev/null 2>&1 || :
167 end
168 end
169
170 package quality-agent
171 arch = noarch
172
173 summary = The pakfire quality agent.
174 description
175 The quality agent tests resulting packages that come out
176 of the build service.
177 It is a collection of scripts that check if everything is
178 working right.
179 end
180
181 files
182 /usr/lib/pakfire/quality-agent
183 /usr/lib/quality-agent*
184 end
185
186 requires
187 gawk
188 binutils
189 coreutils
190 findutils
191 file
192 grep
193 sed
194 end
195 end
196
197 package %{name}-debuginfo
198 template DEBUGINFO
199 end
200end