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