]>
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 |
da24a140 | 7 | version = 0.9.25 |
eac44f69 | 8 | release = 3 |
e5192f6a | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = System/Packaging | |
12 | url = http://www.ipfire.org/ | |
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 | |
f0216cd6 MT |
25 | beecrypt-devel |
26 | elfutils-devel | |
de9c6811 | 27 | gettext |
533ad168 | 28 | libcap-devel |
d72d822f | 29 | libsolv-devel >= 0.0.0-4 |
f0216cd6 | 30 | popt-devel |
802ea3af | 31 | python-devel |
eac44f69 | 32 | systemd-units |
f0216cd6 | 33 | xz-devel |
802ea3af | 34 | end |
e5192f6a | 35 | |
f0216cd6 | 36 | # libgomp was broken in earlier releases. |
938865ae MT |
37 | requires += gcc >= 4.6.2-4 |
38 | requires += beecrypt >= 4.2.1-2 | |
f0216cd6 | 39 | |
802ea3af | 40 | CFLAGS += -fno-strict-aliasing |
706e01d9 | 41 | |
802ea3af | 42 | test |
f0216cd6 | 43 | # Check, if the binary modules are loadable. |
0d37182c | 44 | cd %{DIR_APP}/python/src/ && python -c "import _pakfire" |
f0216cd6 | 45 | cd %{DIR_APP}/python/src/ && python -c "import _lzma" |
802ea3af | 46 | end |
47a5ddc1 MT |
47 | |
48 | install_cmds | |
49 | # Remove all example repository definitions. | |
50 | # Those will be solely provided by system-release. | |
51 | rm -rfv %{BUILDROOT}%{sysconfdir}/pakfire/repos/* | |
52 | end | |
802ea3af | 53 | end |
fd79f072 | 54 | |
802ea3af MT |
55 | packages |
56 | package %{name} | |
57 | groups += Base | |
7afde232 | 58 | |
938865ae | 59 | requires = pakfire-common = %{thisver} |
0d37182c MT |
60 | end |
61 | ||
62 | package %{name}-common | |
802ea3af | 63 | requires |
d72d822f | 64 | libsolv >= 0.0.0-4 |
47a5ddc1 | 65 | pygpgme |
802ea3af MT |
66 | python-progressbar |
67 | python-urlgrabber | |
802ea3af MT |
68 | system-release |
69 | end | |
0d37182c MT |
70 | |
71 | files | |
47a5ddc1 MT |
72 | %{sysconfdir}/pakfire/general.conf |
73 | %{bindir}/pakfire-key | |
0d37182c | 74 | /usr/lib/pakfire/pakfire-multicall.py |
640a1a65 | 75 | %{libdir}/python*/site-packages/pakfire* |
0d37182c MT |
76 | /usr/share/locale |
77 | end | |
47a5ddc1 | 78 | configfiles = %{sysconfdir}/pakfire/general.conf |
802ea3af | 79 | end |
47a5ddc1 | 80 | |
16f3dc5d | 81 | package %{name}-builder |
47a5ddc1 | 82 | summary = The Pakfire builder. |
802ea3af MT |
83 | description |
84 | The tools that are needed to build new pakfire packages. | |
85 | end | |
86 | groups += Build | |
0d37182c | 87 | |
802ea3af | 88 | requires |
47a5ddc1 MT |
89 | # For --rpm-requires. |
90 | bash >= 4.2-7 | |
91 | ||
938865ae MT |
92 | %{name} = %{thisver} |
93 | quality-agent = %{thisver} | |
f0216cd6 MT |
94 | cpio |
95 | elfutils | |
0d37182c | 96 | end |
938865ae MT |
97 | provides = pakfire-build = %{thisver} |
98 | obsoletes = pakfire-build < %{thisver} | |
47a5ddc1 MT |
99 | |
100 | conflicts | |
101 | build-essentials | |
102 | systemd-devel < 38 | |
103 | end | |
104 | ||
105 | configfiles | |
106 | /etc/pakfire/builder.conf | |
107 | /etc/pakfire/distros | |
108 | end | |
0d37182c MT |
109 | |
110 | files | |
47a5ddc1 MT |
111 | /etc/pakfire/builder.conf |
112 | /etc/pakfire/distros | |
640a1a65 | 113 | %{libdir}/libpakfire_preload.so |
47a5ddc1 MT |
114 | %{bindir}/pakfire-builder |
115 | %{bindir}/pakfire-server | |
0d37182c MT |
116 | /usr/lib/pakfire/* |
117 | !/usr/lib/pakfire/pakfire-multicall.py | |
118 | end | |
119 | end | |
120 | ||
47a5ddc1 | 121 | package %{name}-client |
da24a140 | 122 | summary = The Pakfire Hub client. |
47a5ddc1 MT |
123 | description |
124 | The pakfire client has the power to create build jobs | |
125 | and communicate with the Pakfire Build Service. | |
126 | end | |
127 | ||
128 | requires | |
129 | pakfire-common = %{thisver} | |
130 | end | |
131 | ||
132 | files | |
133 | %{sysconfdir}/pakfire/client.conf | |
134 | %{bindir}/pakfire-client | |
135 | end | |
136 | configfiles = %{sysconfdir}/pakfire/client.conf | |
137 | end | |
138 | ||
139 | package %{name}-daemon | |
140 | summary = The Pakfire daemon. | |
141 | description | |
142 | The Pakfire daemon takes build jobs from the | |
143 | Pakfire Build Service and compiles them. | |
144 | end | |
145 | ||
146 | requires | |
147 | pakfire-builder = %{thisver} | |
148 | end | |
149 | ||
150 | files | |
151 | %{sysconfdir}/pakfire/daemon.conf | |
152 | %{bindir}/pakfire-daemon | |
153 | end | |
154 | configfiles = %{sysconfdir}/pakfire/daemon.conf | |
eac44f69 MT |
155 | |
156 | script postin | |
157 | systemctl daemon-reload >/dev/null 2>&1 || : | |
158 | end | |
159 | ||
160 | script preun | |
161 | systemctl --no-reload disable pakfire-daemon.service > /dev/null 2>&1 || : | |
162 | systemctl stop pakfire-daemon.service > /dev/null 2>&1 || : | |
163 | end | |
164 | ||
165 | script postun | |
166 | systemctl daemon-reload >/dev/null 2>&1 || : | |
167 | end | |
168 | ||
169 | script postup | |
170 | systemctl daemon-reload 2>&1 || : | |
171 | systemctl reload-or-try-restart pakfire-daemon.service >/dev/null 2>&1 || : | |
172 | end | |
47a5ddc1 MT |
173 | end |
174 | ||
0d37182c MT |
175 | package quality-agent |
176 | arch = noarch | |
177 | ||
178 | summary = The pakfire quality agent. | |
179 | description | |
180 | The quality agent tests resulting packages that come out | |
181 | of the build service. | |
182 | It is a collection of scripts that check if everything is | |
183 | working right. | |
802ea3af | 184 | end |
7afde232 | 185 | |
802ea3af | 186 | files |
47a5ddc1 MT |
187 | /usr/lib/pakfire/quality-agent |
188 | /usr/lib/quality-agent* | |
802ea3af | 189 | end |
0d37182c | 190 | |
640a1a65 | 191 | requires |
938865ae | 192 | gawk |
640a1a65 | 193 | binutils |
938865ae MT |
194 | coreutils |
195 | findutils | |
640a1a65 MT |
196 | file |
197 | grep | |
938865ae | 198 | sed |
640a1a65 | 199 | end |
802ea3af | 200 | end |
1f9bc2f0 MT |
201 | |
202 | package %{name}-debuginfo | |
203 | template DEBUGINFO | |
204 | end | |
802ea3af | 205 | end |