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