/[smecontribs]/rpms/ejabberd/contribs7/ejabberd.spec
ViewVC logotype

Diff of /rpms/ejabberd/contribs7/ejabberd.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by slords, Wed Jun 25 19:02:58 2008 UTC Revision 1.6 by gnujpl, Wed Jun 25 20:50:43 2008 UTC
# Line 1  Line 1 
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}
# Line 34  BuildRequires:  openssl-devel Line 38  BuildRequires:  openssl-devel
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
# Line 64  Group: Documentation Line 68  Group: Documentation
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
# Line 95  cp %{S:7} src Line 99  cp %{S:7} src
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
# Line 169  rm -rf %{buildroot} Line 173  rm -rf %{buildroot}
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    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed