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