1 |
# $Id: ejabberd.spec,v 1.2 2008/05/08 21:12:30 slords Exp $ |
# $Id: ejabberd.spec,v 1.6 2008/06/25 20:50:43 gnujpl Exp $ |
2 |
# Authority: gnujpl |
# Authority: gnujpl |
3 |
# Name: Jean-Paul Leclère |
# Name: Jean-Paul Leclère |
4 |
|
|
5 |
Name: ejabberd |
Name: ejabberd |
6 |
Version: 2.0.0 |
Version: 2.0.1 |
7 |
Release: 4%{?dist} |
Release: 4%{?dist} |
8 |
Summary: A distributed, fault-tolerant Jabber/XMPP server |
Summary: A distributed, fault-tolerant Jabber/XMPP server |
9 |
|
|
10 |
Group: Applications/Internet |
Group: Applications/Internet |
11 |
License: GPLv2 |
License: GPLv2+ |
12 |
URL: http://www.ejabberd.im/ |
URL: http://www.ejabberd.im/ |
13 |
Source0: http://www.process-one.net/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz |
Source0: http://www.process-one.net/downloads/%{name}/%{version}/%{name}-%{version}_2.tar.gz |
14 |
Source1: ejabberd.init |
Source1: ejabberd.init |
15 |
Source2: ejabberd.logrotate |
Source2: ejabberd.logrotate |
16 |
|
|
26 |
Source9: ejabberdctl.pam |
Source9: ejabberdctl.pam |
27 |
Source10: ejabberdctl.apps |
Source10: ejabberdctl.apps |
28 |
|
|
29 |
# originally from |
# Fedora-specific stuff - fixing paths |
|
# https://support.process-one.net/secure/attachment/11788/ejab-446.patch |
|
|
Patch0: ejab-446.patch |
|
|
|
|
|
# local stuff |
|
30 |
Patch1: ejabberd-build.patch |
Patch1: ejabberd-build.patch |
31 |
|
# BZ# 439583, 452326, 451554 |
32 |
# R12B |
Patch2: ejabberd-ejabberdctl_fix.diff |
|
Patch2: ejabberd-ssl.patch |
|
|
|
|
|
# R11B SSL |
|
|
Patch3: ejabberd_s2s_in_erl.diff |
|
33 |
|
|
34 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
35 |
|
|
37 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
38 |
BuildRequires: pam-devel |
BuildRequires: pam-devel |
39 |
BuildRequires: erlang |
BuildRequires: erlang |
40 |
|
BuildRequires: dos2unix |
41 |
%if %{?rhel:0}%{!?rhel:1} |
%if %{?rhel:0}%{!?rhel:1} |
42 |
BuildRequires: hevea |
BuildRequires: hevea |
43 |
%endif |
%endif |
45 |
Requires: erlang |
Requires: erlang |
46 |
Requires: usermode |
Requires: usermode |
47 |
|
|
48 |
|
#Requires(pre): fedora-usermgmt |
49 |
Requires(post): /sbin/chkconfig |
Requires(post): /sbin/chkconfig |
50 |
Requires(preun): /sbin/chkconfig |
Requires(preun): /sbin/chkconfig |
51 |
Requires(preun): /sbin/service |
Requires(preun): /sbin/service |
68 |
Documentation for ejabberd. |
Documentation for ejabberd. |
69 |
|
|
70 |
%pre |
%pre |
71 |
/usr/sbin/groupadd -g 33 -r ejabberd &>/dev/null || : |
/usr/sbin/groupadd 33 -r ejabberd &>/dev/null || : |
72 |
/usr/sbin/useradd -u 33 -r -s /sbin/nologin -d /var/lib/ejabberd -M \ |
/usr/sbin/useradd 33 -r -s /sbin/nologin -d /var/lib/ejabberd -M \ |
73 |
-c 'ejabberd' -g ejabberd ejabberd &>/dev/null || : |
-c 'ejabberd' -g ejabberd ejabberd &>/dev/null || : |
74 |
|
|
75 |
%post |
%post |
88 |
|
|
89 |
%prep |
%prep |
90 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
91 |
%patch0 -p1 -b .Er12b-build |
%patch1 -p0 -b .fix_paths |
92 |
%patch1 -p1 -b .MC-build |
%patch2 -p0 -b .fix_user |
93 |
#%patch2 -p1 -b .R12B |
dos2unix src/odbc/mssql.sql |
|
%patch3 -p0 -b .r11_ssl |
|
|
|
|
|
%{__perl} -pi -e "s!/var/lib/ejabberd!%{_libdir}/ejabberd-%{version}!g" src/Makefile.in |
|
|
%{__perl} -pi -e "s!/etc!%{_sysconfdir}!g" src/Makefile.in |
|
|
%{__perl} -pi -e "s!\@prefix\@!!g" src/Makefile.in |
|
94 |
|
|
95 |
cp %{S:4} src |
cp %{S:4} src |
96 |
cp %{S:5} src |
cp %{S:5} src |
99 |
|
|
100 |
%build |
%build |
101 |
pushd src |
pushd src |
102 |
%configure --enable-odbc --enable-debug |
%configure --enable-odbc --enable-debug --enable-pam |
103 |
make %{?_smp_mflags} |
# doesn't builds on SMP currently |
104 |
|
make |
105 |
popd |
popd |
106 |
%if %{?rhel:0}%{!?rhel:1} |
%if %{?rhel:0}%{!?rhel:1} |
107 |
pushd doc |
pushd doc |
116 |
make install DESTDIR=%{buildroot} |
make install DESTDIR=%{buildroot} |
117 |
popd |
popd |
118 |
|
|
119 |
chmod a+x %{buildroot}%{_libdir}/ejabberd-%{version}/priv/lib/*.so |
chmod a+x %{buildroot}%{_libdir}/%{name}/priv/lib/*.so |
120 |
|
|
121 |
%{__perl} -pi -e 's!./ssl.pem!/etc/ejabberd/ejabberd.pem!g' %{buildroot}/etc/ejabberd/ejabberd.cfg |
%{__perl} -pi -e 's!./ssl.pem!/etc/ejabberd/ejabberd.pem!g' %{buildroot}/etc/ejabberd/ejabberd.cfg |
122 |
|
|
136 |
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d |
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d |
137 |
cp -p %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd |
cp -p %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd |
138 |
|
|
139 |
%{__perl} -pi -e 's!\@libdir\@!%{_libdir}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl |
%{__perl} -pi -e 's!\@libdir\@!%{_libdir}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl |
140 |
%{__perl} -pi -e 's!\@version\@!%{version}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl |
%{__perl} -pi -e 's!\@version\@!%{version}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl |
141 |
|
|
142 |
#cp %{S:3} %{buildroot}%{_sysconfdir}/ejabberd/inetrc |
# BZ# 439583 |
143 |
#mv %{buildroot}%{_sysconfdir}/ejabberd/{ejabberd.,}inetrc |
%{__perl} -pi -e 's!MAINDIR=!MAINDIR=%{_libdir}/ejabberd!g' %{buildroot}%{_sbindir}/ejabberdctl |
144 |
|
|
145 |
%clean |
%clean |
146 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
147 |
|
|
148 |
%files |
%files |
149 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
150 |
%doc COPYING |
%doc COPYING src/odbc/mysql.sql src/odbc/mssql.sql src/odbc/pg.sql |
151 |
|
|
152 |
%attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd |
%attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd |
153 |
%attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg |
%attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg |
162 |
%{_bindir}/ejabberdctl |
%{_bindir}/ejabberdctl |
163 |
%{_sbindir}/ejabberdctl |
%{_sbindir}/ejabberdctl |
164 |
|
|
165 |
%dir %{_libdir}/ejabberd-%{version} |
%dir %{_libdir}/%{name} |
166 |
%dir %{_libdir}/ejabberd-%{version}/ebin |
%dir %{_libdir}/%{name}/ebin |
167 |
%{_libdir}/ejabberd-%{version}/ebin/*.app |
%dir %{_libdir}/%{name}/priv |
168 |
%{_libdir}/ejabberd-%{version}/ebin/*.beam |
%dir %{_libdir}/%{name}/priv/bin |
169 |
|
%dir %{_libdir}/%{name}/priv/lib |
170 |
%dir %{_libdir}/ejabberd-%{version}/priv |
%dir %{_libdir}/%{name}/priv/msgs |
171 |
|
|
172 |
%dir %{_libdir}/ejabberd-%{version}/priv/lib |
%{_libdir}/%{name}/ebin/*.app |
173 |
%{_libdir}/ejabberd-%{version}/priv/lib/*.so |
%{_libdir}/%{name}/ebin/*.beam |
174 |
|
%{_libdir}/%{name}/priv/lib/*.so |
175 |
%dir %{_libdir}/ejabberd-%{version}/priv/msgs |
%{_libdir}/%{name}/priv/msgs/*.msg |
176 |
%{_libdir}/ejabberd-%{version}/priv/msgs/*.msg |
%{_libdir}/%{name}/priv/bin/epam |
177 |
|
|
178 |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd |
179 |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool |
|
|
|
180 |
%attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd |
%attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd |
181 |
|
%attr(4750,root,ejabberd) %{_libdir}/%{name}/priv/bin/epam |
182 |
|
|
183 |
%files doc |
%files doc |
184 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
185 |
%if %{?rhel:0}%{!?rhel:1} |
%if %{?rhel:0}%{!?rhel:1} |
186 |
%doc ChangeLog COPYING doc/*.pdf doc/*.html doc/*.png doc/release_notes_* |
%doc ChangeLog COPYING doc/release_notes_* doc/*.pdf doc/*.html doc/*.png |
187 |
%else |
%else |
188 |
%doc ChangeLog COPYING doc/release_notes_* |
%doc ChangeLog COPYING doc/release_notes_* |
189 |
%endif |
%endif |
190 |
|
|
191 |
%changelog |
%changelog |
192 |
* Sat May 10 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-4 |
* Wed Jun 25 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-4.sme |
193 |
- Don't use fedora-usermgmt |
- Don't use fedora-usermgmt |
194 |
- set ejabberd uid to 33 for SME compatibility |
- set ejabberd uid to 33 for SME compatibility |
195 |
|
- enable pam auth (thanks to daniel@firewall-servicers.com) |
196 |
- only spec file changes |
- only spec file changes |
197 |
|
|
198 |
|
* Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4 |
199 |
|
- Last minute fix (issue with shortnames/fqdn) |
200 |
|
|
201 |
|
* Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-3 |
202 |
|
-Fixed BZ# 439583, 452326, 451554 |
203 |
|
|
204 |
|
* Thu May 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-2 |
205 |
|
- Fixed BZ# 439583 |
206 |
|
|
207 |
|
* Sat May 24 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-1 |
208 |
|
- Ver. 2.0.1 |
209 |
|
- Upstreamed patches dropped |
210 |
|
- No longer uses versioned libdir (/usr/lib/ejabberd-x.x.x) |
211 |
|
- Added sql-scripts in docs-directory |
212 |
|
|
213 |
* Mon May 5 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-3 |
* Mon May 5 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-3 |
214 |
- Fix build against R11B-2 |
- Fix build against R11B-2 |
215 |
|
|
227 |
|
|
228 |
* Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-0.2.rc1 |
* Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-0.2.rc1 |
229 |
- Enabled some previously disabled modules |
- Enabled some previously disabled modules |
230 |
|
|
231 |
* Sat Jan 19 2008 Matej Cepl <mcepl@redhat.com> 2.0.0-0.1.rc1 |
* Sat Jan 19 2008 Matej Cepl <mcepl@redhat.com> 2.0.0-0.1.rc1 |
232 |
- Upgrade to the current upsteram version. |
- Upgrade to the current upsteram version. |
233 |
- Make ejabberd.init LSB compliant (missing Provides: tag) |
- Make ejabberd.init LSB compliant (missing Provides: tag) |