]>
Commit | Line | Data |
---|---|---|
beed1a42 AM |
1 | # TODO: |
2 | # - package all deps (tarballs 10-29) into separate spec files | |
3 | # (like in fedora) | |
e9f604ed | 4 | # Conditional build: |
5 | %bcond_with pam # PAM authentication support | |
79e489a1 | 6 | %bcond_with logdb # enable mod_logdb (server-side message logging) |
e0a49cef | 7 | %bcond_with new_sql_schema # build with the new SQL schema |
eddf5b64 | 8 | |
fb70a56e | 9 | Summary: Fault-tolerant distributed Jabber/XMPP server |
7abad569 | 10 | Summary(pl.UTF-8): Odporny na awarie rozproszony serwer Jabbera/XMPP |
d798517a | 11 | Name: ejabberd |
cc994b3c | 12 | Version: 20.12 |
89e7e566 | 13 | Release: 1 |
fb70a56e JK |
14 | License: GPL |
15 | Group: Applications/Communications | |
79e489a1 AM |
16 | # Source0: http://www.process-one.net/downloads/ejabberd/%{version}/%{name}-%{version}.tgz |
17 | Source0: https://www.process-one.net/downloads/downloads-action.php?file=/%{version}/%{name}-%{version}.tgz | |
cc994b3c | 18 | # Source0-md5: 564ffd03050a7786bd3b0fa4b761ba19 |
d798517a JK |
19 | Source1: %{name}.init |
20 | Source2: %{name}.sysconfig | |
21 | Source3: %{name}.service | |
f20002e6 | 22 | Source4: %{name}.logrotate |
e2bda3a7 JK |
23 | # |
24 | # Archives created with the ejabberd-pack_deps.sh script (in this repo) | |
cc994b3c AM |
25 | Source10: ejabberd-base64url-20190617.tar.gz |
26 | # Source10-md5: 5a12fd2fb1f992c850aba5115aab3dd4 | |
27 | Source11: ejabberd-cache_tab-20201208.tar.gz | |
28 | # Source11-md5: a8fd129a078c9dd5511104323e43a377 | |
29 | Source12: ejabberd-eimp-20201208.tar.gz | |
30 | # Source12-md5: 6bd486a556712cb689f1845169b84603 | |
31 | Source13: ejabberd-elixir-20170515.tar.gz | |
32 | # Source13-md5: 73be42f7d0cda7aeee5c0e6dadc0c451 | |
33 | Source14: ejabberd-ezlib-20201111.tar.gz | |
34 | # Source14-md5: c4bc9c91ed5e802a3ce1d920ba71d188 | |
35 | Source15: ejabberd-fast_tls-20201208.tar.gz | |
36 | # Source15-md5: 24f582be0dbd36bea6c4dcd423e41350 | |
37 | Source16: ejabberd-fast_xml-20201208.tar.gz | |
38 | # Source16-md5: 28dfd58835057035ec93c92960b8a3a5 | |
39 | Source17: ejabberd-fast_yaml-20201208.tar.gz | |
40 | # Source17-md5: 7d0e0c0f25db2f1fac19d3c862f71e1d | |
41 | Source18: ejabberd-goldrush-20160531.tar.gz | |
42 | # Source18-md5: acac73f0fc85d23671f0c49c68f8df8a | |
43 | Source19: ejabberd-idna-20180830.tar.gz | |
44 | # Source19-md5: e34174d5c5e2e91611d3249c690f6d2d | |
45 | Source20: ejabberd-jiffy-20200630.tar.gz | |
46 | # Source20-md5: e99a512a9c4395bda77f07990aa9aa97 | |
47 | Source21: ejabberd-jose-20181231.tar.gz | |
48 | # Source21-md5: 406b7ceab1b2d3843440dfbdd85f2e79 | |
49 | Source22: ejabberd-lager-20190430.tar.gz | |
50 | # Source22-md5: 66205d931dd27b496529c19addf6d7d9 | |
51 | Source23: ejabberd-mqtree-20201208.tar.gz | |
52 | # Source23-md5: 48b0702481943412b061a0b69bd14e07 | |
53 | Source24: ejabberd-p1_acme-20201208.tar.gz | |
54 | # Source24-md5: c88106b1ebab93e3e22e66f6abbbcebc | |
55 | Source25: ejabberd-p1_mysql-20201208.tar.gz | |
56 | # Source25-md5: b69cab659ed1af39670383bb31c4780f | |
57 | Source26: ejabberd-p1_oauth2-20201208.tar.gz | |
58 | # Source26-md5: 7cf58ad544b03582a9b7e81632f24acb | |
59 | Source27: ejabberd-p1_pgsql-20200728.tar.gz | |
60 | # Source27-md5: dbe3ef9681bb622325137d57e8b8bc11 | |
61 | Source28: ejabberd-p1_utils-20201208.tar.gz | |
62 | # Source28-md5: 1afba267e5908ca0d6cac8d56f1e165b | |
63 | Source29: ejabberd-pkix-20201208.tar.gz | |
64 | # Source29-md5: 14639c53d33057bf4edc7ebfbfc02c11 | |
65 | Source30: ejabberd-rebar_elixir_plugin-20160105.tar.gz | |
66 | # Source30-md5: 6a069a566d71c3daa45fc4736364adf0 | |
67 | Source31: ejabberd-sqlite3-20201210.tar.gz | |
68 | # Source31-md5: d3492fcda182166f23995b603719102c | |
69 | Source32: ejabberd-stringprep-20201208.tar.gz | |
70 | # Source32-md5: 4b7c49c425af79d8abfc4849d0685318 | |
71 | Source33: ejabberd-stun-20201208.tar.gz | |
72 | # Source33-md5: f965bd0d24af792e67351ef0f4704253 | |
73 | Source34: ejabberd-unicode_util_compat-20170729.tar.gz | |
74 | # Source34-md5: 1b348fdf38dba88ebed2f65125ad8590 | |
75 | Source35: ejabberd-xmpp-20201210.tar.gz | |
76 | # Source35-md5: 346062e4b3df365372a369d3ece41672 | |
77 | Source36: ejabberd-yconf-20201208.tar.gz | |
78 | # Source36-md5: 648a96de6f6475e1e7ef8e3ec1592059 | |
ac7e9a78 | 79 | |
d798517a JK |
80 | Patch0: %{name}-paths.patch |
81 | Patch1: %{name}-config.patch | |
3f23be8e | 82 | # https://paleg.github.io/mod_logdb/ |
dd02533f | 83 | # https://github.com/paleg/ejabberd/compare/paleg:19.08...paleg:19.08-mod_logdb.patch |
d798517a | 84 | Patch3: %{name}-mod_logdb.patch |
3f2196e7 | 85 | URL: http://www.ejabberd.im/ |
fb70a56e | 86 | BuildRequires: autoconf |
1a2644b6 | 87 | BuildRequires: automake |
de2dcb11 | 88 | BuildRequires: erlang >= 2:22.2 |
6f0d08c1 | 89 | BuildRequires: expat-devel >= 1.95 |
90 | BuildRequires: openssl-devel | |
e9f604ed | 91 | %if %{with pam} |
92 | BuildRequires: pam-devel | |
93 | %endif | |
126fba49 | 94 | BuildRequires: git-core |
67271627 | 95 | BuildRequires: rpmbuild(macros) >= 1.671 |
f0222aaa | 96 | BuildRequires: sqlite3-devel |
60c3a68c | 97 | BuildRequires: yaml-devel |
01f61704 | 98 | BuildRequires: zlib-devel |
27b10c8b | 99 | Requires(post): /usr/bin/perl |
b15a901d | 100 | Requires(post): jabber-common |
0d54398f | 101 | Requires(post): sed >= 4.0 |
fb70a56e | 102 | Requires(post): textutils |
fb70a56e | 103 | Requires(post,preun): /sbin/chkconfig |
67271627 | 104 | Requires(post,preun,postun): systemd-units >= 38 |
de2dcb11 | 105 | Requires: erlang >= 2:22.2 |
bb159536 | 106 | Requires: expat >= 1.95 |
27b10c8b | 107 | Requires: rc-scripts |
67271627 | 108 | Requires: systemd-units >= 38 |
028763ab | 109 | Conflicts: logrotate < 3.8.0 |
fb70a56e JK |
110 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
111 | ||
fcf4c7a2 JK |
112 | %define _noautoprovfiles %{_libdir}/%{name}/priv/lib/ |
113 | ||
fb70a56e | 114 | %description |
472227c5 | 115 | ejabberd is a Free and Open Source fault-tolerant distributed Jabber |
116 | server. It is written mostly in Erlang. | |
fb70a56e | 117 | |
e0166ea5 JR |
118 | %description -l pl.UTF-8 |
119 | ejabberd to darmowy, z otwartymi źródłami, odporny na awarie | |
120 | rozproszony serwer Jabbera. Jest napisany w większości w Erlangu. | |
378431cb | 121 | |
cba58599 | 122 | %package logdb |
1a2644b6 | 123 | Summary: Server-side logging module |
cba58599 | 124 | Group: Applications/Communications |
125 | Requires: %{name} = %{version}-%{release} | |
126 | ||
127 | %description logdb | |
128 | Server-side logging module. | |
129 | ||
fb70a56e | 130 | %prep |
79e489a1 | 131 | %setup -q -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27 -a 28 -a 29 -a 30 -a 31 -a 32 -a 33 -a 34 -a 35 -a 36 |
fb70a56e | 132 | %patch0 -p1 |
7f71a53c JK |
133 | %patch1 -p1 |
134 | #%%patch2 -p1 | |
9953f9cb | 135 | %if %{with logdb} |
046546ef | 136 | %patch3 -p1 |
9953f9cb | 137 | %endif |
fb70a56e | 138 | |
8e141538 JK |
139 | # Various parts of the build system use 'git describe' |
140 | # which returns nonsense on manual builds using the builder script | |
141 | # and which fails on the PLD builders | |
142 | # I was not able to locate all 'git describe' invocation, sot let's | |
143 | # fool them with this dummy repository | |
144 | unset GIT_DIR GIT_WORK_TREE | |
145 | git init | |
d798661f JK |
146 | git config user.email "dummy@example.com" |
147 | git config user.name "Dummy" | |
8e141538 JK |
148 | git add configure.ac |
149 | git commit -a -m "dummy commit" | |
150 | git tag "%{version}" | |
fb8f9840 | 151 | |
de2dcb11 AM |
152 | sed -i -e 's,#!.*/usr/bin/env.*elixir,#!/usr/bin/elixir,' deps/elixir/bin/mix deps/elixir/lib/mix/lib/mix/tasks/escript.build.ex |
153 | ||
fb70a56e | 154 | %build |
8e141538 | 155 | unset GIT_DIR GIT_WORK_TREE |
e2bda3a7 | 156 | %{__aclocal} -I m4 |
fb70a56e | 157 | %{__autoconf} |
6b419144 | 158 | %configure \ |
5613d9b6 | 159 | %{?with_pam --enable-pam} \ |
e4f8c955 | 160 | --enable-user=jabber \ |
e0a49cef | 161 | %{__enable_disable new_sql_schema new-sql-schema} \ |
8311848d | 162 | --enable-elixir \ |
e2bda3a7 | 163 | --enable-full-xml \ |
e2bda3a7 JK |
164 | --enable-odbc \ |
165 | --enable-mysql \ | |
166 | --enable-pgsql \ | |
f0222aaa | 167 | --enable-sqlite --with-sqlite3 \ |
e2bda3a7 | 168 | %{?with_pam:--enable-pam} \ |
9682d4d5 | 169 | --enable-zlib |
5e08a6fd | 170 | |
e2bda3a7 JK |
171 | touch deps/.got |
172 | ||
beed1a42 | 173 | cd deps/stringprep |
e2bda3a7 JK |
174 | %configure |
175 | cd ../.. | |
beed1a42 | 176 | cd deps/fast_tls |
e2bda3a7 JK |
177 | %configure |
178 | cd ../.. | |
beed1a42 AM |
179 | cd deps/fast_xml |
180 | %configure | |
e2bda3a7 | 181 | cd ../.. |
beed1a42 | 182 | cd deps/fast_yaml |
e2bda3a7 JK |
183 | %configure |
184 | cd ../.. | |
beed1a42 | 185 | cd deps/ezlib |
e2bda3a7 JK |
186 | %configure |
187 | cd ../.. | |
188 | ||
beed1a42 AM |
189 | # for elixir VM |
190 | LC_ALL=en_US.UTF-8; export LC_ALL | |
92a38251 | 191 | %{__make} -j1 |
fb70a56e JK |
192 | |
193 | %install | |
194 | rm -rf $RPM_BUILD_ROOT | |
d798517a | 195 | install -d $RPM_BUILD_ROOT{/var/lib/%{name},/etc/{sysconfig,rc.d/init.d}} \ |
f20002e6 | 196 | $RPM_BUILD_ROOT{%{systemdunitdir},%{_sbindir}} \ |
028763ab | 197 | $RPM_BUILD_ROOT{/etc/logrotate.d,/var/log/archive/%{name}} |
fb70a56e | 198 | |
8e141538 JK |
199 | unset GIT_DIR GIT_WORK_TREE |
200 | ||
e2bda3a7 | 201 | %{__make} install -j1 \ |
e4f8c955 JK |
202 | CHOWN_COMMAND=true \ |
203 | O_USER="" \ | |
204 | G_USER="" \ | |
27b10c8b | 205 | DESTDIR=$RPM_BUILD_ROOT |
fb70a56e | 206 | |
d798517a | 207 | sed -e's,@libdir@,%{_libdir},g' -e 's,@EJABBERD_DOC_PATH@,%{_docdir}/%{name}-%{version}/doc,g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
126fba49 AM |
208 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
209 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service | |
210 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
fb70a56e | 211 | |
d798517a | 212 | chmod u+rw $RPM_BUILD_ROOT%{_sbindir}/%{name}* |
fb70a56e | 213 | |
beed1a42 | 214 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/*/priv/lib/*.so |
5613d9b6 | 215 | |
e2bda3a7 JK |
216 | rm -rf _doc 2>/dev/null || : |
217 | mv $RPM_BUILD_ROOT%{_docdir}/%{name} _doc | |
059c0bab | 218 | |
fcf4c7a2 JK |
219 | touch $RPM_BUILD_ROOT%{_sysconfdir}/jabber/ejabberd.cfg |
220 | touch $RPM_BUILD_ROOT/var/lib/ejabberd/.erlang.cookie | |
221 | ||
fb70a56e JK |
222 | %clean |
223 | rm -rf $RPM_BUILD_ROOT | |
224 | ||
e2bda3a7 JK |
225 | %pre |
226 | if [ -e /etc/jabber/ejabberd.cfg ] ; then | |
fcf4c7a2 JK |
227 | %banner -e %{name} <<'EOF' |
228 | Old-style /etc/jabber/ejabberd.cfg configuration file exists. You should | |
229 | consider converting it to the new YAML format. You can do this with the | |
27161f77 | 230 | 'ejabberdctl convert_to_yaml' command (ejabberd must be already running). |
fcf4c7a2 | 231 | EOF |
e2bda3a7 JK |
232 | fi |
233 | ||
fb70a56e | 234 | %post |
0d54398f | 235 | if [ -f %{_sysconfdir}/jabber/secret ] ; then |
7f71a53c | 236 | SECRET="$(cat %{_sysconfdir}/jabber/secret)" |
fb70a56e | 237 | if [ -n "$SECRET" ] ; then |
7f71a53c JK |
238 | echo -n "Updating component authentication secret in ejabberd config file..." >&2 |
239 | %{__sed} -i -e "s/@service_secret@/$SECRET/" /etc/jabber/ejabberd.yml | |
240 | echo "done" >&2 | |
fb70a56e JK |
241 | fi |
242 | fi | |
fb70a56e | 243 | /sbin/chkconfig --add ejabberd |
7102eb90 JK |
244 | if [ -e /var/run/%{name}-upgrade-trigger ] ; then |
245 | # service will be restarted in the postun trigger | |
246 | rm -f /var/run/%{name}-upgrade-trigger || : | |
247 | else | |
248 | %service ejabberd restart "ejabberd server" | |
249 | %systemd_post %{name}.service | |
250 | fi | |
67271627 | 251 | |
fb70a56e JK |
252 | %preun |
253 | if [ "$1" = "0" ]; then | |
b15a901d | 254 | %service ejabberd stop |
fb70a56e JK |
255 | /sbin/chkconfig --del ejabberd |
256 | fi | |
67271627 JK |
257 | %systemd_preun %{name}.service |
258 | ||
259 | %postun | |
260 | %systemd_reload | |
261 | ||
262 | %triggerprein -- %{name} < 13.10 | |
7102eb90 JK |
263 | if [ -e /etc/jabber/ejabberd.cfg ] ; then |
264 | if grep -Eq '^[^%]*access_get' /etc/jabber/ejabberd.cfg ; then | |
265 | echo "Your 'ejabberd.cfg' config file seems to use 'access_get' option of mod_vcard" >&2 | |
266 | echo "this is not supported by this ejabberd version in PLD" >&2 | |
267 | exit 1 | |
268 | fi | |
269 | rm -f /etc/jabber/ejabberd.yml.rpmnew 2>/dev/null || : | |
270 | fi | |
271 | if [ -e /var/lock/subsys/ejabberd ] ; then | |
67271627 JK |
272 | # old init script won't stop ejabberd correctly |
273 | # stop it's all processes here | |
274 | # we assume any 'epmd', 'beam', 'beam.smp' or 'heart' process | |
275 | # running with uid of jabber is ejabberd process | |
276 | pids="$(ps -C "epmd beam beam.smp heart" -o pid=,user= | awk '/jabber/ { print $1 }')" || : | |
277 | if [ -n "$pids" ] ; then | |
278 | %banner -e %{name} <<'EOF' | |
279 | Killing all 'epmd, beam, beam.smp, heart' processed owned by the 'jabber' user to make sure old ejabberd is down. | |
7102eb90 | 280 | |
67271627 JK |
281 | EOF |
282 | kill $pids || : | |
283 | fi | |
284 | fi | |
7102eb90 | 285 | touch /var/run/%{name}-upgrade-trigger || : |
fb70a56e | 286 | |
fcf4c7a2 JK |
287 | %triggerpostun -- %{name} < 13.10 |
288 | # convert old 'NODENAME' in /etc/sysconfig/ejabberd | |
289 | # to 'ERLANG_NODE' in /etc/jabber/ejabberdctl.cfg | |
290 | # and move other settings | |
291 | NODENAME="$(hostname)" | |
292 | if [ -e /etc/sysconfig/ejabberd ] ; then | |
293 | . /etc/sysconfig/ejabberd || : | |
294 | fi | |
295 | subst="s/^#ERLANG_NODE=.*/ERLANG_NODE=ejabberd@${NODENAME}/" | |
7102eb90 JK |
296 | if [ "$NODENAME" != "localhost" ] ; then |
297 | %banner -e %{name} <<'EOF' | |
298 | Configured node name (ejabberd@${NODENAME}) is not at 'localhost'. | |
299 | – setting INET_DIST_INTERFACE=0.0.0.0 in /etc/jabber/ejabberdctl.cfg. | |
300 | You should consider tuning that or your firewall configuration. | |
301 | ||
302 | EOF | |
303 | subst="$subst;s/^#INET_DIST_INTERFACE=.*/INET_DIST_INTERFACE=0.0.0.0/" | |
304 | fi | |
fcf4c7a2 JK |
305 | if [ -n "$ERL_MAX_PORTS" ] ; then |
306 | subst="$subst;s/^#ERL_MAX_PORTS=.*/ERL_MAX_PORTS=${ERL_MAX_PORTS}/" | |
307 | fi | |
308 | sed -i -e"$subst" /etc/jabber/ejabberdctl.cfg || : | |
309 | if [ -e /etc/sysconfig/ejabberd ] ; then | |
310 | sed -i.rpmsave \ | |
311 | -e'/^[#[:space:]]*NODENAME=/d;/^# Node name/d' \ | |
312 | -e'/^[#[:space:]]*ERL_MAX_PORTS=/d;/^# uncomment this to allow more then 1024 connections/d' \ | |
313 | -e'/^[#[:space:]]*ERL_FULLSWEEP_AFTER=/d;/^# uncomment this to limit memory usage/d' \ | |
314 | /etc/sysconfig/ejabberd || : | |
315 | fi | |
316 | cp %{_sysconfdir}/jabber/cookie /var/lib/ejabberd/.erlang.cookie || : | |
7102eb90 JK |
317 | chown jabber:jabber /var/lib/ejabberd/.erlang.cookie || : |
318 | chmod 400 /var/lib/ejabberd/.erlang.cookie || : | |
319 | if [ -e /etc/jabber/ejabberd.cfg -a ! -e /etc/jabber/ejabberd.yml.rpmnew ] ; then | |
320 | mv /etc/jabber/ejabberd.yml /etc/jabber/ejabberd.yml.rpmnew | |
321 | echo 'include_config_file: "/etc/jabber/ejabberd.cfg"' > /etc/jabber/ejabberd.yml || : | |
322 | fi | |
323 | ||
324 | # post action postponed here | |
325 | %service ejabberd restart "ejabberd server" | |
326 | %systemd_post %{name}.service | |
327 | ||
67271627 | 328 | %systemd_trigger %{name}.service |
fcf4c7a2 | 329 | |
fb70a56e JK |
330 | %files |
331 | %defattr(644,root,root,755) | |
e2bda3a7 | 332 | %doc sql _doc/* |
fb70a56e | 333 | %attr(755,root,root) %{_sbindir}/* |
4852a36b AM |
334 | %attr(755,root,root) %{_bindir}/elixir |
335 | %attr(755,root,root) %{_bindir}/iex | |
336 | %attr(755,root,root) %{_bindir}/mix | |
fcf4c7a2 JK |
337 | %attr(640,root,jabber) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/ejabberd-inetrc |
338 | %attr(640,root,jabber) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/ejabberd.yml | |
339 | %attr(640,root,jabber) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/ejabberdctl.cfg | |
340 | # legacy config may still be there | |
341 | %attr(640,root,jabber) %ghost %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/ejabberd.cfg | |
028763ab JK |
342 | %attr(770,root,jabber) /var/log/%{name} |
343 | %attr(770,root,jabber) /var/log/archive/%{name} | |
61f3ef21 | 344 | %if %{with logdb} |
beed1a42 | 345 | %exclude %{_libdir}/ejabberd-%{version}/ebin/mod_logdb* |
61f3ef21 | 346 | %endif |
beed1a42 | 347 | %{_libdir}/ejabberd-%{version} |
ac7e9a78 | 348 | %{_libdir}/base64url-* |
beed1a42 | 349 | %{_libdir}/cache_tab-* |
105db1e0 JK |
350 | %dir %{_libdir}/eimp-* |
351 | %dir %{_libdir}/eimp-*/priv | |
352 | %dir %{_libdir}/eimp-*/priv/bin | |
353 | %attr(755,root,root) %{_libdir}/eimp-*/priv/bin/eimp | |
354 | %{_libdir}/eimp-*/ebin | |
355 | %{_libdir}/eimp-*/LICENSE.txt | |
beed1a42 | 356 | %{_libdir}/elixir-* |
beed1a42 AM |
357 | %{_libdir}/ezlib-* |
358 | %{_libdir}/fast_tls-* | |
359 | %{_libdir}/fast_xml-* | |
360 | %{_libdir}/fast_yaml-* | |
361 | %{_libdir}/goldrush-* | |
89e7e566 | 362 | %{_libdir}/idna-* |
beed1a42 | 363 | %{_libdir}/jiffy-* |
ac7e9a78 | 364 | %{_libdir}/jose-* |
beed1a42 | 365 | %{_libdir}/lager-* |
9682d4d5 AM |
366 | %dir %{_libdir}/mqtree-* |
367 | %{_libdir}/mqtree-*/ebin | |
368 | %dir %{_libdir}/mqtree-*/priv | |
369 | %dir %{_libdir}/mqtree-*/priv/lib | |
370 | %attr(755,root,root) %{_libdir}/mqtree-*/priv/lib/mqtree.so | |
89e7e566 | 371 | %{_libdir}/p1_acme-* |
beed1a42 AM |
372 | %{_libdir}/p1_mysql-* |
373 | %{_libdir}/p1_oauth2-* | |
374 | %{_libdir}/p1_pgsql-* | |
375 | %{_libdir}/p1_utils-* | |
418fc4bb | 376 | %dir %{_libdir}/pkix-* |
f55bab44 AM |
377 | %{_libdir}/pkix-*/ebin |
378 | %{_libdir}/pkix-*/LICENSE | |
beed1a42 | 379 | %{_libdir}/rebar_elixir_plugin-* |
f0222aaa AM |
380 | %{_libdir}/sqlite3-*/ebin |
381 | %dir %{_libdir}/sqlite3-* | |
382 | %dir %{_libdir}/sqlite3-*/priv | |
383 | %attr(755,root,root) %{_libdir}/sqlite3-*/priv/sqlite3_drv.so | |
beed1a42 | 384 | %{_libdir}/stringprep-* |
79e489a1 | 385 | %{_libdir}/stun-* |
89e7e566 | 386 | %{_libdir}/unicode_util_compat-* |
4852a36b | 387 | %{_libdir}/xmpp-* |
08278fc0 | 388 | %{_libdir}/yconf-* |
fb70a56e | 389 | %dir %attr(770,root,jabber) /var/lib/ejabberd |
fcf4c7a2 | 390 | %ghost %attr(400,jabber,jabber) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/ejabberd/.erlang.cookie |
d798517a JK |
391 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
392 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
67271627 | 393 | %{systemdunitdir}/%{name}.service |
f20002e6 | 394 | /etc/logrotate.d/%{name} |
cc994b3c | 395 | %{_mandir}/man5/ejabberd.yml.5* |
cba58599 | 396 | |
61f3ef21 | 397 | %if %{with logdb} |
cba58599 | 398 | %files logdb |
399 | %defattr(644,root,root,755) | |
beed1a42 | 400 | %{_libdir}/ejabberd-%{version}/ebin/mod_logdb* |
61f3ef21 | 401 | %endif |