1 |
slords |
1.20 |
# $Id: smeserver-ejabberd.spec,v 1.19 2009/04/27 16:11:20 slords 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 |
slords |
1.7 |
%define version 2.0.1 |
9 |
slords |
1.20 |
%define release 12 |
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 |
slords |
1.8 |
Patch1: smeserver-ejabberd-2.0.1-locale-2008-07-01.patch |
17 |
snetram |
1.9 |
Patch2: smeserver-ejabberd-2.0.1-locale-2008-10-14.patch |
18 |
snetram |
1.10 |
Patch3: smeserver-ejabberd-2.0.1-locale-2008-10-16.patch |
19 |
snetram |
1.11 |
Patch4: smeserver-ejabberd-2.0.1-locale-2008-11-19.patch |
20 |
snetram |
1.14 |
Patch5: smeserver-ejabberd-2.0.1-locale-2008-11-30.patch |
21 |
snetram |
1.15 |
Patch6: smeserver-ejabberd-2.0.1-locale-2009-01-01.patch |
22 |
snetram |
1.16 |
Patch7: smeserver-ejabberd-2.0.1-locale-2009-01-31.patch |
23 |
snetram |
1.17 |
Patch8: smeserver-ejabberd-2.0.1-locale-2009-03-01.patch |
24 |
slords |
1.18 |
Patch9: smeserver-ejabberd-2.0.1-locale-2009-03-03.patch |
25 |
slords |
1.19 |
Patch10: smeserver-ejabberd-2.0.1-locale-2009-04-27.patch |
26 |
slords |
1.20 |
Patch11: smeserver-ejabberd-2.0.1-locale-2009-05-20.patch |
27 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
gnujpl |
1.3 |
BuildArch: noarch |
29 |
slords |
1.1 |
BuildRequires: e-smith-devtools >= 1.7.5 |
30 |
slords |
1.7 |
Requires: ejabberd >= 2.0.1 |
31 |
snetram |
1.5 |
Requires: e-smith-formmagick >= 1.4.0-12 |
32 |
slords |
1.1 |
Obsoletes: e-smith-jabber |
33 |
|
|
AutoReqProv: no |
34 |
|
|
|
35 |
gnujpl |
1.3 |
%changelog |
36 |
slords |
1.20 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 2.0.1-12.sme |
37 |
|
|
- apply locale 2009-05-20 patch |
38 |
|
|
|
39 |
slords |
1.19 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 2.0.1-11.sme |
40 |
|
|
- apply locale 2009-04-27 patch |
41 |
|
|
|
42 |
slords |
1.18 |
* Tue Mar 03 2009 SME Translation Server |
43 |
|
|
- apply locale 2009-03-03 patch |
44 |
|
|
|
45 |
snetram |
1.17 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-9 |
46 |
|
|
- Apply 1 Mar 2009 locale patch [SME: 5018] |
47 |
|
|
|
48 |
snetram |
1.16 |
* Sat Jan 31 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-8 |
49 |
|
|
- Apply 31 Jan 2009 locale patch [SME: 4951] |
50 |
|
|
|
51 |
snetram |
1.15 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-7 |
52 |
|
|
- Apply 1 Jan 2009 locale patch [SME: 4900] |
53 |
|
|
|
54 |
snetram |
1.14 |
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-6 |
55 |
|
|
- Apply 30 Nov 2008 locale patch |
56 |
|
|
|
57 |
snetram |
1.11 |
* Wed Nov 19 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-5 |
58 |
|
|
- Apply 19 Nov 2008 locale patch |
59 |
|
|
|
60 |
snetram |
1.10 |
* Thu Oct 16 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-4 |
61 |
|
|
- Apply 16 Oct 2008 locale patch |
62 |
|
|
|
63 |
snetram |
1.9 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-3 |
64 |
|
|
- Apply 14 Oct 2008 locale patch |
65 |
|
|
|
66 |
slords |
1.8 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-2 |
67 |
|
|
- Apply 1 July 2008 locale patch |
68 |
|
|
|
69 |
slords |
1.7 |
* Fri Jun 27 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-1 |
70 |
|
|
- update for ejabberd >= 2.0.1 |
71 |
|
|
- disable polling (thanks to Daniel Berteaud) |
72 |
snetram |
1.6 |
|
73 |
snetram |
1.5 |
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-5 |
74 |
|
|
- Apply 27 Jun 2008 locale patch |
75 |
|
|
- Added missing dependency on e-smith-formmagick >= 1.4.0-12 |
76 |
|
|
|
77 |
gnujpl |
1.4 |
* Sun Jun 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-4 |
78 |
|
|
- use new ejabberd ssl cert file in /var/service/ejabberd/ssl |
79 |
|
|
- sync ejabberd cert file with SME cert file |
80 |
|
|
|
81 |
gnujpl |
1.3 |
* Thu May 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-3 |
82 |
|
|
- no more use /opt |
83 |
|
|
- use SME server ssl certs |
84 |
|
|
- db migrate process |
85 |
slords |
1.1 |
|
86 |
snetram |
1.2 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-2 |
87 |
|
|
- Apply 21 May 2008 locale patch |
88 |
|
|
|
89 |
slords |
1.1 |
* Wed May 14 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-1 |
90 |
|
|
- bump to ejabberd 2.0.0 |
91 |
|
|
- no more contains ejabberd Process-One binary installer (due to GPL violation) |
92 |
|
|
- use smecontribs ejabberd rpm |
93 |
|
|
|
94 |
|
|
* Thu Apr 24 2008 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-5 |
95 |
|
|
- convert fr locale to UTF-8 |
96 |
|
|
|
97 |
|
|
* Wed Oct 17 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-5 |
98 |
|
|
- fix another bug for starttls in ejabberd.cfg template |
99 |
|
|
|
100 |
|
|
* Tue Oct 16 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-4 |
101 |
|
|
- fix bug for starttls in ejabberd.cfg template |
102 |
|
|
|
103 |
|
|
* Sun Oct 14 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-3 |
104 |
|
|
- modify ejabberd.cfg template for ejabberd services add-ons |
105 |
|
|
|
106 |
|
|
* Sat Oct 6 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-2 |
107 |
|
|
- fix bug in ejabberd.cfg template for users acls |
108 |
|
|
- add more ejabberd restarting events |
109 |
|
|
- add more ejabberd.cfg generation events |
110 |
|
|
|
111 |
|
|
* Sun Sep 30 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-1 |
112 |
|
|
- Initial Release with ejabberd 1.1.4 |
113 |
|
|
|
114 |
|
|
%description |
115 |
|
|
SME Server implementation of ejabberd XMPP server |
116 |
|
|
|
117 |
|
|
%pre |
118 |
|
|
|
119 |
|
|
%preun |
120 |
|
|
if [ $1 -eq 0 ]; then |
121 |
gnujpl |
1.3 |
# remove, not upgrade |
122 |
|
|
/sbin/e-smith/db configuration delete ejabberd |
123 |
|
|
/sbin/e-smith/db configuration delete ejabberd.init |
124 |
|
|
/usr/bin/sv down /service/ejabberd |
125 |
|
|
/usr/lib/erlang/bin/epmd -kill |
126 |
|
|
cd /service/ejabberd |
127 |
|
|
rm /service/ejabberd |
128 |
|
|
/usr/bin/sv exit . log |
129 |
slords |
1.1 |
fi |
130 |
gnujpl |
1.3 |
exit 0 |
131 |
slords |
1.1 |
|
132 |
|
|
%prep |
133 |
|
|
%setup |
134 |
slords |
1.8 |
%patch1 -p1 |
135 |
snetram |
1.9 |
%patch2 -p1 |
136 |
snetram |
1.10 |
%patch3 -p1 |
137 |
snetram |
1.11 |
%patch4 -p1 |
138 |
snetram |
1.14 |
%patch5 -p1 |
139 |
snetram |
1.15 |
%patch6 -p1 |
140 |
snetram |
1.16 |
%patch7 -p1 |
141 |
snetram |
1.17 |
%patch8 -p1 |
142 |
slords |
1.18 |
%patch9 -p1 |
143 |
slords |
1.19 |
%patch10 -p1 |
144 |
slords |
1.20 |
%patch11 -p1 |
145 |
slords |
1.1 |
|
146 |
|
|
%build |
147 |
|
|
perl createlinks |
148 |
|
|
|
149 |
|
|
%install |
150 |
|
|
rm -rf $RPM_BUILD_ROOT |
151 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
152 |
|
|
rm -f %{name}-%{version}-%{release}-filelist |
153 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
154 |
|
|
--dir '/var/service/ejabberd' 'attr(1755,root,root)' \ |
155 |
|
|
--file '/var/service/ejabberd/down' 'attr(0644,root,root)' \ |
156 |
|
|
--file '/var/service/ejabberd/run' 'attr(0755,root,root)' \ |
157 |
|
|
--dir '/var/service/ejabberd/supervise' 'attr(0700,root,root)' \ |
158 |
gnujpl |
1.4 |
--file '/var/service/ejabberd/control/2' 'attr(0755,root,root)' \ |
159 |
slords |
1.1 |
--dir '/var/service/ejabberd/log' 'attr(1755,root,root)' \ |
160 |
|
|
--file '/var/service/ejabberd/log/run' 'attr(0755,root,root)' \ |
161 |
|
|
--dir '/var/service/ejabberd/log/supervise' 'attr(0700,root,root)' \ |
162 |
|
|
--dir '/var/log/ejabberd' 'attr(0750,ejabberd,ejabberd)' \ |
163 |
|
|
--dir '/var/log/ejabberd.run' 'attr(0750,smelog,root)' \ |
164 |
gnujpl |
1.3 |
> %{name}-%{version}-%{release}-filelist |
165 |
slords |
1.1 |
|
166 |
|
|
%clean |
167 |
|
|
rm -rf $RPM_BUILD_ROOT |
168 |
|
|
|
169 |
|
|
%post |
170 |
gnujpl |
1.4 |
mkdir -p /var/service/ejabberd/ssl |
171 |
slords |
1.1 |
|
172 |
|
|
%postun |
173 |
|
|
|
174 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
175 |
|
|
%defattr(-,root,root) |