1 |
gnujpl |
1.4 |
# $Id: smeserver-ejabberd.spec,v 1.3 2008/05/22 18:44:09 gnujpl Exp $ |
2 |
slords |
1.1 |
# Authority: gnujpl |
3 |
|
|
# Name: Jean-Paul Leclère |
4 |
|
|
|
5 |
|
|
Summary: SME Server ejabberd Jabber service |
6 |
|
|
%define name smeserver-ejabberd |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 2.0.0 |
9 |
gnujpl |
1.4 |
%define release 4 |
10 |
slords |
1.1 |
|
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GPL |
14 |
|
|
Group: Networking/Daemons |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
snetram |
1.2 |
Patch0: smeserver-ejabberd-2.0.0-locale-2008-05-21.patch |
17 |
gnujpl |
1.3 |
Patch1: %{name}-%{version}-removeOpt.patch |
18 |
gnujpl |
1.4 |
Patch2: %{name}-%{version}-SSLCert.patch |
19 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
gnujpl |
1.3 |
BuildArch: noarch |
21 |
slords |
1.1 |
BuildRequires: e-smith-devtools >= 1.7.5 |
22 |
gnujpl |
1.3 |
Requires: ejabberd = 2.0.0 |
23 |
slords |
1.1 |
Obsoletes: e-smith-jabber |
24 |
|
|
AutoReqProv: no |
25 |
|
|
|
26 |
gnujpl |
1.3 |
%changelog |
27 |
gnujpl |
1.4 |
* Sun Jun 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-4 |
28 |
|
|
- use new ejabberd ssl cert file in /var/service/ejabberd/ssl |
29 |
|
|
- sync ejabberd cert file with SME cert file |
30 |
|
|
|
31 |
gnujpl |
1.3 |
* Thu May 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-3 |
32 |
|
|
- no more use /opt |
33 |
|
|
- use SME server ssl certs |
34 |
|
|
- db migrate process |
35 |
slords |
1.1 |
|
36 |
snetram |
1.2 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-2 |
37 |
|
|
- Apply 21 May 2008 locale patch |
38 |
|
|
|
39 |
slords |
1.1 |
* Wed May 14 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-1 |
40 |
|
|
- bump to ejabberd 2.0.0 |
41 |
|
|
- no more contains ejabberd Process-One binary installer (due to GPL violation) |
42 |
|
|
- use smecontribs ejabberd rpm |
43 |
|
|
|
44 |
|
|
* Thu Apr 24 2008 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-5 |
45 |
|
|
- convert fr locale to UTF-8 |
46 |
|
|
|
47 |
|
|
* Wed Oct 17 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-5 |
48 |
|
|
- fix another bug for starttls in ejabberd.cfg template |
49 |
|
|
|
50 |
|
|
* Tue Oct 16 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-4 |
51 |
|
|
- fix bug for starttls in ejabberd.cfg template |
52 |
|
|
|
53 |
|
|
* Sun Oct 14 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-3 |
54 |
|
|
- modify ejabberd.cfg template for ejabberd services add-ons |
55 |
|
|
|
56 |
|
|
* Sat Oct 6 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-2 |
57 |
|
|
- fix bug in ejabberd.cfg template for users acls |
58 |
|
|
- add more ejabberd restarting events |
59 |
|
|
- add more ejabberd.cfg generation events |
60 |
|
|
|
61 |
|
|
* Sun Sep 30 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-1 |
62 |
|
|
- Initial Release with ejabberd 1.1.4 |
63 |
|
|
|
64 |
|
|
%description |
65 |
|
|
SME Server implementation of ejabberd XMPP server |
66 |
|
|
|
67 |
|
|
%pre |
68 |
|
|
|
69 |
|
|
%preun |
70 |
|
|
if [ $1 -eq 0 ]; then |
71 |
gnujpl |
1.3 |
# remove, not upgrade |
72 |
|
|
/sbin/e-smith/db configuration delete ejabberd |
73 |
|
|
/sbin/e-smith/db configuration delete ejabberd.init |
74 |
|
|
/usr/bin/sv down /service/ejabberd |
75 |
|
|
/usr/lib/erlang/bin/epmd -kill |
76 |
|
|
cd /service/ejabberd |
77 |
|
|
rm /service/ejabberd |
78 |
|
|
/usr/bin/sv exit . log |
79 |
slords |
1.1 |
fi |
80 |
gnujpl |
1.3 |
exit 0 |
81 |
slords |
1.1 |
|
82 |
|
|
%prep |
83 |
|
|
%setup |
84 |
snetram |
1.2 |
%patch0 -p1 |
85 |
gnujpl |
1.3 |
%patch1 -p1 |
86 |
gnujpl |
1.4 |
%patch2 -p1 |
87 |
slords |
1.1 |
|
88 |
|
|
%build |
89 |
|
|
perl createlinks |
90 |
|
|
|
91 |
|
|
%install |
92 |
|
|
rm -rf $RPM_BUILD_ROOT |
93 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
94 |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
95 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
96 |
|
|
--dir '/var/service/ejabberd' 'attr(1755,root,root)' \ |
97 |
|
|
--file '/var/service/ejabberd/down' 'attr(0644,root,root)' \ |
98 |
|
|
--file '/var/service/ejabberd/run' 'attr(0755,root,root)' \ |
99 |
|
|
--dir '/var/service/ejabberd/supervise' 'attr(0700,root,root)' \ |
100 |
gnujpl |
1.4 |
--file '/var/service/ejabberd/control/2' 'attr(0755,root,root)' \ |
101 |
slords |
1.1 |
--dir '/var/service/ejabberd/log' 'attr(1755,root,root)' \ |
102 |
|
|
--file '/var/service/ejabberd/log/run' 'attr(0755,root,root)' \ |
103 |
|
|
--dir '/var/service/ejabberd/log/supervise' 'attr(0700,root,root)' \ |
104 |
|
|
--dir '/var/log/ejabberd' 'attr(0750,ejabberd,ejabberd)' \ |
105 |
|
|
--dir '/var/log/ejabberd.run' 'attr(0750,smelog,root)' \ |
106 |
gnujpl |
1.3 |
--ignoredir '/opt/ejabberd/database/ejabberd' \ |
107 |
|
|
--ignoredir '/opt/ejabberd/database' \ |
108 |
|
|
--ignoredir '/opt/ejabberd/conf/ssl.pem' \ |
109 |
|
|
--ignoredir '/opt/ejabberd/conf' \ |
110 |
|
|
--ignoredir '/opt/ejabberd' \ |
111 |
|
|
--ignoredir '/opt' \ |
112 |
|
|
> %{name}-%{version}-%{release}-filelist |
113 |
slords |
1.1 |
|
114 |
|
|
%clean |
115 |
|
|
rm -rf $RPM_BUILD_ROOT |
116 |
|
|
|
117 |
|
|
%post |
118 |
gnujpl |
1.4 |
mkdir -p /var/service/ejabberd/ssl |
119 |
slords |
1.1 |
|
120 |
|
|
%postun |
121 |
|
|
|
122 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
123 |
|
|
%defattr(-,root,root) |