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