]>
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 |
a56c4369 | 8 | release = 3 |
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 | ||
a56c4369 MT |
107 | # Requires GCC 4.9 or later for -fstack-protector-strong |
108 | conflicts += gcc < 4.9 | |
109 | ||
47a5ddc1 | 110 | configfiles |
dd584391 MT |
111 | %{sysconfdir}/pakfire/builder.conf |
112 | %{sysconfdir}/pakfire/distros | |
47a5ddc1 | 113 | end |
0d37182c MT |
114 | |
115 | files | |
dd584391 MT |
116 | %{sysconfdir}/pakfire/builder.conf |
117 | %{sysconfdir}/pakfire/distros | |
640a1a65 | 118 | %{libdir}/libpakfire_preload.so |
47a5ddc1 | 119 | %{bindir}/pakfire-builder |
dd584391 MT |
120 | |
121 | %{prefix}/lib/pakfire | |
122 | %{libdir}/pakfire | |
0d37182c MT |
123 | end |
124 | end | |
125 | ||
47a5ddc1 | 126 | package %{name}-client |
da24a140 | 127 | summary = The Pakfire Hub client. |
47a5ddc1 MT |
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 | |
eac44f69 MT |
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 | |
47a5ddc1 MT |
178 | end |
179 | ||
0d37182c MT |
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. | |
802ea3af | 189 | end |
7afde232 | 190 | |
802ea3af | 191 | files |
47a5ddc1 MT |
192 | /usr/lib/pakfire/quality-agent |
193 | /usr/lib/quality-agent* | |
802ea3af | 194 | end |
0d37182c | 195 | |
640a1a65 | 196 | requires |
938865ae | 197 | gawk |
640a1a65 | 198 | binutils |
938865ae MT |
199 | coreutils |
200 | findutils | |
640a1a65 MT |
201 | file |
202 | grep | |
938865ae | 203 | sed |
640a1a65 | 204 | end |
802ea3af | 205 | end |
1f9bc2f0 MT |
206 | |
207 | package %{name}-debuginfo | |
208 | template DEBUGINFO | |
209 | end | |
802ea3af | 210 | end |