1 |
# $Id$ |
# $Id: ejabberd.spec,v 1.3 2008/05/10 15:41:02 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: 3%{?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 |
#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/fedora-groupadd 27 -r ejabberd &>/dev/null || : |
/usr/sbin/groupadd 33 -r ejabberd &>/dev/null || : |
72 |
/usr/sbin/fedora-useradd 27 -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 |
100 |
%build |
%build |
101 |
pushd src |
pushd src |
102 |
%configure --enable-odbc --enable-debug |
%configure --enable-odbc --enable-debug |
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 |
|
%{_libdir}/ejabberd-%{version}/priv/msgs/*.msg |
|
176 |
|
|
177 |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd |
178 |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool |
%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool |
|
|
|
179 |
%attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd |
%attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd |
180 |
|
|
181 |
%files doc |
%files doc |
182 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
183 |
%if %{?rhel:0}%{!?rhel:1} |
%if %{?rhel:0}%{!?rhel:1} |
184 |
%doc ChangeLog COPYING doc/*.pdf doc/*.html doc/*.png doc/release_notes_* |
%doc ChangeLog COPYING doc/release_notes_* doc/*.pdf doc/*.html doc/*.png |
185 |
%else |
%else |
186 |
%doc ChangeLog COPYING doc/release_notes_* |
%doc ChangeLog COPYING doc/release_notes_* |
187 |
%endif |
%endif |
188 |
|
|
189 |
%changelog |
%changelog |
190 |
|
* Wed Jun 25 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-4.sme |
191 |
|
- Don't use fedora-usermgmt |
192 |
|
- set ejabberd uid to 33 for SME compatibility |
193 |
|
- only spec file changes |
194 |
|
|
195 |
|
* Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4 |
196 |
|
- Last minute fix (issue with shortnames/fqdn) |
197 |
|
|
198 |
|
* Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-3 |
199 |
|
-Fixed BZ# 439583, 452326, 451554 |
200 |
|
|
201 |
|
* Thu May 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-2 |
202 |
|
- Fixed BZ# 439583 |
203 |
|
|
204 |
|
* Sat May 24 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-1 |
205 |
|
- Ver. 2.0.1 |
206 |
|
- Upstreamed patches dropped |
207 |
|
- No longer uses versioned libdir (/usr/lib/ejabberd-x.x.x) |
208 |
|
- Added sql-scripts in docs-directory |
209 |
|
|
210 |
* 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 |
211 |
- Fix build against R11B-2 |
- Fix build against R11B-2 |
212 |
|
|
224 |
|
|
225 |
* 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 |
226 |
- Enabled some previously disabled modules |
- Enabled some previously disabled modules |
227 |
|
|
228 |
* 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 |
229 |
- Upgrade to the current upsteram version. |
- Upgrade to the current upsteram version. |
230 |
- Make ejabberd.init LSB compliant (missing Provides: tag) |
- Make ejabberd.init LSB compliant (missing Provides: tag) |