1 |
# $Id: smeserver-ejabberd.spec,v 1.2 2008/05/21 20:10:23 snetram Exp $ |
# $Id: smeserver-ejabberd.spec,v 1.13 2008/11/25 16:20:22 slords Exp $ |
2 |
# Authority: gnujpl |
# Authority: gnujpl |
3 |
# Name: Jean-Paul Leclère |
# Name: Jean-Paul Leclère |
4 |
|
|
5 |
Summary: SME Server ejabberd Jabber service |
Summary: SME Server ejabberd Jabber service |
6 |
%define name smeserver-ejabberd |
%define name smeserver-ejabberd |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 2.0.0 |
%define version 2.0.1 |
9 |
%define release 3 |
%define release 6 |
10 |
|
|
11 |
Version: %{version} |
Version: %{version} |
12 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
13 |
License: GPL |
License: GPL |
14 |
Group: Networking/Daemons |
Group: Networking/Daemons |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-ejabberd-2.0.0-locale-2008-05-21.patch |
Patch1: smeserver-ejabberd-2.0.1-locale-2008-07-01.patch |
17 |
Patch1: %{name}-%{version}-removeOpt.patch |
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 |
|
Patch5: smeserver-ejabberd-2.0.1-locale-2008-11-30.patch |
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArch: noarch |
BuildArch: noarch |
23 |
BuildRequires: e-smith-devtools >= 1.7.5 |
BuildRequires: e-smith-devtools >= 1.7.5 |
24 |
Requires: ejabberd = 2.0.0 |
Requires: ejabberd >= 2.0.1 |
25 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
26 |
Obsoletes: e-smith-jabber |
Obsoletes: e-smith-jabber |
27 |
AutoReqProv: no |
AutoReqProv: no |
28 |
|
|
29 |
%changelog |
%changelog |
30 |
|
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-6 |
31 |
|
- Apply 30 Nov 2008 locale patch |
32 |
|
|
33 |
|
* Wed Nov 19 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-5 |
34 |
|
- Apply 19 Nov 2008 locale patch |
35 |
|
|
36 |
|
* Thu Oct 16 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-4 |
37 |
|
- Apply 16 Oct 2008 locale patch |
38 |
|
|
39 |
|
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-3 |
40 |
|
- Apply 14 Oct 2008 locale patch |
41 |
|
|
42 |
|
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-2 |
43 |
|
- Apply 1 July 2008 locale patch |
44 |
|
|
45 |
|
* Fri Jun 27 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-1 |
46 |
|
- update for ejabberd >= 2.0.1 |
47 |
|
- disable polling (thanks to Daniel Berteaud) |
48 |
|
|
49 |
|
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-5 |
50 |
|
- Apply 27 Jun 2008 locale patch |
51 |
|
- Added missing dependency on e-smith-formmagick >= 1.4.0-12 |
52 |
|
|
53 |
|
* Sun Jun 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-4 |
54 |
|
- use new ejabberd ssl cert file in /var/service/ejabberd/ssl |
55 |
|
- sync ejabberd cert file with SME cert file |
56 |
|
|
57 |
* Thu May 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-3 |
* Thu May 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-3 |
58 |
- no more use /opt |
- no more use /opt |
59 |
- use SME server ssl certs |
- use SME server ssl certs |
107 |
|
|
108 |
%prep |
%prep |
109 |
%setup |
%setup |
|
%patch0 -p1 |
|
110 |
%patch1 -p1 |
%patch1 -p1 |
111 |
|
%patch2 -p1 |
112 |
|
%patch3 -p1 |
113 |
|
%patch4 -p1 |
114 |
|
%patch5 -p1 |
115 |
|
|
116 |
%build |
%build |
117 |
perl createlinks |
perl createlinks |
125 |
--file '/var/service/ejabberd/down' 'attr(0644,root,root)' \ |
--file '/var/service/ejabberd/down' 'attr(0644,root,root)' \ |
126 |
--file '/var/service/ejabberd/run' 'attr(0755,root,root)' \ |
--file '/var/service/ejabberd/run' 'attr(0755,root,root)' \ |
127 |
--dir '/var/service/ejabberd/supervise' 'attr(0700,root,root)' \ |
--dir '/var/service/ejabberd/supervise' 'attr(0700,root,root)' \ |
128 |
|
--file '/var/service/ejabberd/control/2' 'attr(0755,root,root)' \ |
129 |
--dir '/var/service/ejabberd/log' 'attr(1755,root,root)' \ |
--dir '/var/service/ejabberd/log' 'attr(1755,root,root)' \ |
130 |
--file '/var/service/ejabberd/log/run' 'attr(0755,root,root)' \ |
--file '/var/service/ejabberd/log/run' 'attr(0755,root,root)' \ |
131 |
--dir '/var/service/ejabberd/log/supervise' 'attr(0700,root,root)' \ |
--dir '/var/service/ejabberd/log/supervise' 'attr(0700,root,root)' \ |
132 |
--dir '/var/log/ejabberd' 'attr(0750,ejabberd,ejabberd)' \ |
--dir '/var/log/ejabberd' 'attr(0750,ejabberd,ejabberd)' \ |
133 |
--dir '/var/log/ejabberd.run' 'attr(0750,smelog,root)' \ |
--dir '/var/log/ejabberd.run' 'attr(0750,smelog,root)' \ |
|
--ignoredir '/opt/ejabberd/database/ejabberd' \ |
|
|
--ignoredir '/opt/ejabberd/database' \ |
|
|
--ignoredir '/opt/ejabberd/conf/ssl.pem' \ |
|
|
--ignoredir '/opt/ejabberd/conf' \ |
|
|
--ignoredir '/opt/ejabberd' \ |
|
|
--ignoredir '/opt' \ |
|
134 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
135 |
|
|
136 |
%clean |
%clean |
137 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
138 |
|
|
139 |
%post |
%post |
140 |
|
mkdir -p /var/service/ejabberd/ssl |
141 |
|
|
142 |
%postun |
%postun |
143 |
|
|