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