1 |
|
# $Id: ejabberd.spec,v 1.5 2008/06/25 19:06:40 slords Exp $ |
2 |
|
# Authority: gnujpl |
3 |
|
# Name: Jean-Paul Leclère |
4 |
|
|
5 |
Name: ejabberd |
Name: ejabberd |
6 |
Version: 2.0.1 |
Version: 2.0.1 |
7 |
Release: 4%{?dist} |
Release: 4%{?dist} |
38 |
BuildRequires: pam-devel |
BuildRequires: pam-devel |
39 |
BuildRequires: erlang |
BuildRequires: erlang |
40 |
BuildRequires: dos2unix |
BuildRequires: dos2unix |
41 |
%if %{undefined rhel} |
%if %{?rhel:0}%{!?rhel:1} |
42 |
BuildRequires: hevea |
BuildRequires: hevea |
43 |
%endif |
%endif |
44 |
|
|
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 |
99 |
|
|
100 |
%build |
%build |
101 |
pushd src |
pushd src |
102 |
%configure --enable-odbc --enable-debug |
%configure --enable-odbc --enable-debug --enable-pam |
103 |
# doesn't builds on SMP currently |
# doesn't builds on SMP currently |
104 |
make |
make |
105 |
popd |
popd |
106 |
%if %{undefined rhel} |
%if %{?rhel:0}%{!?rhel:1} |
107 |
pushd doc |
pushd doc |
108 |
make html pdf |
make html pdf |
109 |
popd |
popd |
173 |
%{_libdir}/%{name}/ebin/*.beam |
%{_libdir}/%{name}/ebin/*.beam |
174 |
%{_libdir}/%{name}/priv/lib/*.so |
%{_libdir}/%{name}/priv/lib/*.so |
175 |
%{_libdir}/%{name}/priv/msgs/*.msg |
%{_libdir}/%{name}/priv/msgs/*.msg |
176 |
|
%{_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 %{undefined rhel} |
%if %{?rhel:0}%{!?rhel:1} |
186 |
%doc ChangeLog COPYING doc/release_notes_* doc/*.pdf doc/*.html doc/*.png |
%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 |
|
* Wed Jun 25 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-4.sme |
193 |
|
- Don't use fedora-usermgmt |
194 |
|
- set ejabberd uid to 33 for SME compatibility |
195 |
|
- enable pam auth (thanks to daniel@firewall-servicers.com) |
196 |
|
- only spec file changes |
197 |
|
|
198 |
* Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4 |
* Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4 |
199 |
- Last minute fix (issue with shortnames/fqdn) |
- Last minute fix (issue with shortnames/fqdn) |
200 |
|
|