]>
Commit | Line | Data |
---|---|---|
e5192f6a | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
e5192f6a MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = pakfire |
dd584391 | 7 | version = 0.9.26 |
6ea95467 | 8 | release = 2 |
e5192f6a | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = System/Packaging | |
dd584391 | 12 | url = http://git.ipfire.org/?p=pakfire.git;a=summary |
802ea3af MT |
13 | license = GPLv3+ |
14 | summary = Package installer/updater. | |
e5192f6a | 15 | |
802ea3af MT |
16 | description |
17 | Pakfire optains package lists from the mirrors and can install and update | |
f5b41606 | 18 | packages. |
802ea3af MT |
19 | end |
20 | ||
0d37182c | 21 | source_dl = http://source.ipfire.org/releases/pakfire/ |
e5192f6a | 22 | |
802ea3af MT |
23 | build |
24 | requires | |
dd584391 MT |
25 | autoconf |
26 | automake | |
f0216cd6 MT |
27 | beecrypt-devel |
28 | elfutils-devel | |
dd584391 MT |
29 | gettext-devel |
30 | intltool | |
533ad168 | 31 | libcap-devel |
d72d822f | 32 | libsolv-devel >= 0.0.0-4 |
f0216cd6 | 33 | popt-devel |
802ea3af | 34 | python-devel |
dd584391 | 35 | systemd-devel |
eac44f69 | 36 | systemd-units |
f0216cd6 | 37 | xz-devel |
802ea3af | 38 | end |
e5192f6a | 39 | |
f0216cd6 | 40 | # libgomp was broken in earlier releases. |
938865ae MT |
41 | requires += gcc >= 4.6.2-4 |
42 | requires += beecrypt >= 4.2.1-2 | |
f0216cd6 | 43 | |
dd584391 MT |
44 | prepare_cmds |
45 | # Generate the build system, if this was not a release | |
46 | # tarball. | |
47 | [ -x "configure" ] || sh ./autogen.sh | |
48 | end | |
706e01d9 | 49 | |
802ea3af | 50 | test |
dd584391 | 51 | make check |
802ea3af | 52 | end |
47a5ddc1 MT |
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 | |
802ea3af | 59 | end |
fd79f072 | 60 | |
802ea3af MT |
61 | packages |
62 | package %{name} | |
63 | groups += Base | |
7afde232 | 64 | |
dd584391 MT |
65 | provides |
66 | pakfire-common = %{thisver} | |
67 | end | |
68 | obsoletes | |
69 | pakfire-common < %{thisver} | |
70 | end | |
0d37182c | 71 | |
802ea3af | 72 | requires |
d72d822f | 73 | libsolv >= 0.0.0-4 |
47a5ddc1 | 74 | pygpgme |
802ea3af MT |
75 | python-progressbar |
76 | python-urlgrabber | |
802ea3af MT |
77 | system-release |
78 | end | |
0d37182c | 79 | |
47a5ddc1 | 80 | configfiles = %{sysconfdir}/pakfire/general.conf |
802ea3af | 81 | end |
47a5ddc1 | 82 | |
16f3dc5d | 83 | package %{name}-builder |
47a5ddc1 | 84 | summary = The Pakfire builder. |
802ea3af MT |
85 | description |
86 | The tools that are needed to build new pakfire packages. | |
87 | end | |
88 | groups += Build | |
0d37182c | 89 | |
802ea3af | 90 | requires |
47a5ddc1 MT |
91 | # For --rpm-requires. |
92 | bash >= 4.2-7 | |
93 | ||
938865ae MT |
94 | %{name} = %{thisver} |
95 | quality-agent = %{thisver} | |
f0216cd6 MT |
96 | cpio |
97 | elfutils | |
0d37182c | 98 | end |
938865ae MT |
99 | provides = pakfire-build = %{thisver} |
100 | obsoletes = pakfire-build < %{thisver} | |
47a5ddc1 MT |
101 | |
102 | conflicts | |
103 | build-essentials | |
104 | systemd-devel < 38 | |
105 | end | |
106 | ||
107 | configfiles | |
dd584391 MT |
108 | %{sysconfdir}/pakfire/builder.conf |
109 | %{sysconfdir}/pakfire/distros | |
47a5ddc1 | 110 | end |
0d37182c MT |
111 | |
112 | files | |
dd584391 MT |
113 | %{sysconfdir}/pakfire/builder.conf |
114 | %{sysconfdir}/pakfire/distros | |
640a1a65 | 115 | %{libdir}/libpakfire_preload.so |
47a5ddc1 | 116 | %{bindir}/pakfire-builder |
dd584391 MT |
117 | |
118 | %{prefix}/lib/pakfire | |
119 | %{libdir}/pakfire | |
0d37182c MT |
120 | end |
121 | end | |
122 | ||
47a5ddc1 | 123 | package %{name}-client |
da24a140 | 124 | summary = The Pakfire Hub client. |
47a5ddc1 MT |
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 | |
eac44f69 MT |
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 | |
47a5ddc1 MT |
175 | end |
176 | ||
0d37182c MT |
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. | |
802ea3af | 186 | end |
7afde232 | 187 | |
802ea3af | 188 | files |
47a5ddc1 MT |
189 | /usr/lib/pakfire/quality-agent |
190 | /usr/lib/quality-agent* | |
802ea3af | 191 | end |
0d37182c | 192 | |
640a1a65 | 193 | requires |
938865ae | 194 | gawk |
640a1a65 | 195 | binutils |
938865ae MT |
196 | coreutils |
197 | findutils | |
640a1a65 MT |
198 | file |
199 | grep | |
938865ae | 200 | sed |
640a1a65 | 201 | end |
802ea3af | 202 | end |
1f9bc2f0 MT |
203 | |
204 | package %{name}-debuginfo | |
205 | template DEBUGINFO | |
206 | end | |
802ea3af | 207 | end |