/[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.1 by slords, Thu May 8 19:50:17 2008 UTC Revision 1.9 by slords, Mon Aug 24 18:19:21 2009 UTC
# Line 1  Line 1 
1  Name:           ejabberd  Name:           ejabberd
2  Version:        2.0.0  Version:        2.0.5
3  Release:        3%{?dist}  Release:        2%{?dist}
4  Summary:        A distributed, fault-tolerant Jabber/XMPP server  Summary:        A distributed, fault-tolerant Jabber/XMPP server
5    
6  Group:          Applications/Internet  Group:          Applications/Internet
7  License:        GPLv2  License:        GPLv2+
8  URL:            http://www.ejabberd.im/  URL:            http://www.ejabberd.im/
9  Source0:        http://www.process-one.net/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz  Source0:        http://www.process-one.net/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
10  Source1:        ejabberd.init  Source1:        ejabberd.init
11  Source2:        ejabberd.logrotate  Source2:        ejabberd.logrotate
12    Source3:        ejabberd.sysconfig
13    
14  # http://ejabberd.jabber.ru/ejabberdctl-extra  # http://www.ejabberd.im/mod_ctlextra
15  Source4:        https://svn.process-one.net/ejabberd-modules/mod_ctlextra/trunk/src/mod_ctlextra.erl  # svn export -r 873 https://svn.process-one.net/ejabberd-modules/mod_ctlextra/trunk/src/mod_ctlextra.erl
16    Source4:        mod_ctlextra.erl
17    
18  # The following were extracted from a patch found on http://realloc.spb.ru/share/ejabberdad.html  # The following were extracted from a patch found on http://realloc.spb.ru/share/ejabberdad.html
19  Source5:        ejabberd_auth_ad.erl  Source5:        ejabberd_auth_ad.erl
20  Source6:        mod_shared_roster_ad.erl  Source6:        mod_shared_roster_ad.erl
21  Source7:        mod_vcard_ad.erl  Source7:        mod_vcard_ad.erl
22  #  
23  #Source8:        ejabberdctl  # PAM support
24  Source9:        ejabberdctl.pam  Source9:        ejabberdctl.pam
25  Source10:       ejabberdctl.apps  Source10:       ejabberdctl.apps
26    Source11:       ejabberd.pam
27    
28  # originally from  # Fedora-specific stuff - fixing paths
 # https://support.process-one.net/secure/attachment/11788/ejab-446.patch  
 Patch0: ejab-446.patch  
   
 # local stuff  
29  Patch1: ejabberd-build.patch  Patch1: ejabberd-build.patch
30    # BZ# 439583, 452326, 451554, 465196
31    Patch2: ejabberd-ejabberdctl_fix.diff
32    # Use ejabberd as an example for PAM service name
33    Patch3: ejabberd-ejabberd_cfg_pam_name.diff
34    # CAPTCHA support, see https://support.process-one.net/doc/display/XAAI/Fighting+Multi-User+Chat+SPAM+with+CAPTCHA
35    # wget https://support.process-one.net/secure/attachment/13851/XEP-0158_ejabberd-2.0.4.patch -O ejabberd-captcha.patch
36    Patch4: ejabberd-captcha.patch
37    
 # R12B  
 Patch2: ejabberd-ssl.patch  
   
 # R11B SSL  
 Patch3: ejabberd_s2s_in_erl.diff  
38    
39  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
40    
# Line 41  BuildRequires:  expat-devel Line 42  BuildRequires:  expat-devel
42  BuildRequires:  openssl-devel  BuildRequires:  openssl-devel
43  BuildRequires:  pam-devel  BuildRequires:  pam-devel
44  BuildRequires:  erlang  BuildRequires:  erlang
45  %if %{?rhel:0}%{!?rhel:1}  BuildRequires:  dos2unix
46    %if %{undefined rhel}
47  BuildRequires:  hevea  BuildRequires:  hevea
48  %endif  %endif
49    
# Line 50  Requires:       usermode Line 52  Requires:       usermode
52    
53  Requires(pre): fedora-usermgmt  Requires(pre): fedora-usermgmt
54  Requires(post): /sbin/chkconfig  Requires(post): /sbin/chkconfig
55    Requires(post): /usr/bin/openssl
56  Requires(preun): /sbin/chkconfig  Requires(preun): /sbin/chkconfig
57  Requires(preun): /sbin/service  Requires(preun): /sbin/service
58  Requires(postun): /sbin/service  Requires(postun): /sbin/service
# Line 78  Documentation for ejabberd. Line 81  Documentation for ejabberd.
81  %post  %post
82  /sbin/chkconfig --add ejabberd  /sbin/chkconfig --add ejabberd
83    
84    (cd /etc/ejabberd
85    if [ ! -f ejabberd.pem ]
86    then
87        echo "Generating SSL certificate /etc/ejabberd/ejabberd.pem..."
88        HOSTNAME=$(hostname -s)
89        DOMAINNAME=$(hostname -d)
90        openssl req -new -x509 -days 365 -nodes -out ejabberd.pem \
91                    -keyout ejabberd.pem > /dev/null 2>&1 <<+++
92    .
93    .
94    .
95    $DOMAINNAME
96    $HOSTNAME
97    ejabberd
98    root@$HOSTNAME.$DOMAINNAME
99    +++
100    chown ejabberd:ejabberd ejabberd.pem
101    chmod 600 ejabberd.pem
102    fi)
103    
104  %preun  %preun
105  if [ $1 = 0 ]; then  if [ $1 = 0 ]; then
106          /sbin/service ejabberd stop >/dev/null 2>&1          /sbin/service ejabberd stop >/dev/null 2>&1
# Line 90  if [ "$1" -ge "1" ]; then Line 113  if [ "$1" -ge "1" ]; then
113  fi  fi
114    
115  %prep  %prep
116  %setup -q -n %{name}-%{version}  %setup -q
117  %patch0 -p1 -b .Er12b-build  %patch1 -p0 -b .fix_paths
118  %patch1 -p1 -b .MC-build  %patch2 -p0 -b .fix_user
119  #%patch2 -p1 -b .R12B  %patch3 -p0 -b .pam_name
120  %patch3 -p0 -b .r11_ssl  #%patch4 -p1 -b .captcha
121    dos2unix src/odbc/mssql.sql
 %{__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  
122    
123  cp %{S:4} src  cp %{S:4} src
124  cp %{S:5} src  cp %{S:5} src
# Line 107  cp %{S:7} src Line 127  cp %{S:7} src
127    
128  %build  %build
129  pushd src  pushd src
130  %configure --enable-odbc --enable-debug  %configure --enable-odbc --enable-debug --enable-pam
131  make %{?_smp_mflags}  # doesn't builds on SMP currently
132    make
133  popd  popd
134  %if %{?rhel:0}%{!?rhel:1}  %if %{undefined rhel}
135  pushd doc  pushd doc
136  make html pdf  make html pdf
137  popd  popd
# Line 123  pushd src Line 144  pushd src
144  make install DESTDIR=%{buildroot}  make install DESTDIR=%{buildroot}
145  popd  popd
146    
147  chmod a+x %{buildroot}%{_libdir}/ejabberd-%{version}/priv/lib/*.so  chmod a+x %{buildroot}%{_libdir}/%{name}/priv/lib/*.so
148    
149  %{__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
150    
# Line 132  mkdir -p %{buildroot}/var/lib/ejabberd/s Line 153  mkdir -p %{buildroot}/var/lib/ejabberd/s
153    
154  mkdir -p %{buildroot}%{_bindir}  mkdir -p %{buildroot}%{_bindir}
155  ln -s consolehelper %{buildroot}%{_bindir}/ejabberdctl  ln -s consolehelper %{buildroot}%{_bindir}/ejabberdctl
 #install -D -p -m 0755 %{S:8} %{buildroot}%{_sbindir}/ejabberdctl  
156  install -D -p -m 0644 %{S:9} %{buildroot}%{_sysconfdir}/pam.d/ejabberdctl  install -D -p -m 0644 %{S:9} %{buildroot}%{_sysconfdir}/pam.d/ejabberdctl
157  install -D -p -m 0644 %{S:10} %{buildroot}%{_sysconfdir}/security/console.apps/ejabberdctl  install -D -p -m 0644 %{S:10} %{buildroot}%{_sysconfdir}/security/console.apps/ejabberdctl
158    install -D -p -m 0644 %{S:11} %{buildroot}%{_sysconfdir}/pam.d/ejabberd
159    
160  mkdir -p %{buildroot}%{_initrddir}  # install init-script
161  install -p -m 0755 %{S:1} %{buildroot}%{_initrddir}/ejabberd  install -D -p -m 0755 %{S:1} %{buildroot}%{_initrddir}/ejabberd
 chmod a+x %{buildroot}%{_initrddir}/ejabberd  
162    
163  mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d  # install config for logrotate
164  cp -p %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd  install -D -p -m 0644  %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd
165    
166  %{__perl} -pi -e 's!\@libdir\@!%{_libdir}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl  # install sysconfig file
167    install -D -p -m 0644  %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/ejabberd
168    
169    %{__perl} -pi -e 's!\@libdir\@!%{_libdir}!g'  %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl
170  %{__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
171    
172  #cp %{S:3} %{buildroot}%{_sysconfdir}/ejabberd/inetrc  # BZ# 439583
173  #mv %{buildroot}%{_sysconfdir}/ejabberd/{ejabberd.,}inetrc  %{__perl} -pi -e 's!MAINDIR=!MAINDIR=%{_libdir}/ejabberd!g' %{buildroot}%{_sbindir}/ejabberdctl
174    
175  %clean  %clean
176  rm -rf %{buildroot}  rm -rf %{buildroot}
177    
178  %files  %files
179  %defattr(-,root,root,-)  %defattr(-,root,root,-)
180  %doc COPYING  %doc COPYING src/odbc/mysql.sql src/odbc/mssql.sql src/odbc/pg.sql
181    # tools/captcha.sh
182    
183  %attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd  %attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd
184  %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg  %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg
# Line 163  rm -rf %{buildroot} Line 187  rm -rf %{buildroot}
187    
188  %{_initrddir}/ejabberd  %{_initrddir}/ejabberd
189  %config(noreplace) %{_sysconfdir}/logrotate.d/ejabberd  %config(noreplace) %{_sysconfdir}/logrotate.d/ejabberd
190    %config(noreplace) %{_sysconfdir}/sysconfig/ejabberd
191    %config(noreplace) %{_sysconfdir}/pam.d/ejabberd
192  %config(noreplace) %{_sysconfdir}/pam.d/ejabberdctl  %config(noreplace) %{_sysconfdir}/pam.d/ejabberdctl
193  %config(noreplace) %{_sysconfdir}/security/console.apps/ejabberdctl  %config(noreplace) %{_sysconfdir}/security/console.apps/ejabberdctl
194  %{_bindir}/ejabberdctl  %{_bindir}/ejabberdctl
195  %{_sbindir}/ejabberdctl  %{_sbindir}/ejabberdctl
196    
197  %dir %{_libdir}/ejabberd-%{version}  %dir %{_libdir}/%{name}
198  %dir %{_libdir}/ejabberd-%{version}/ebin  %dir %{_libdir}/%{name}/ebin
199  %{_libdir}/ejabberd-%{version}/ebin/*.app  %dir %{_libdir}/%{name}/priv
200  %{_libdir}/ejabberd-%{version}/ebin/*.beam  %dir %{_libdir}/%{name}/priv/bin
201    %attr(4750,root,ejabberd)    %{_libdir}/%{name}/priv/bin/epam
202  %dir %{_libdir}/ejabberd-%{version}/priv  %dir %{_libdir}/%{name}/priv/lib
203    %dir %{_libdir}/%{name}/priv/msgs
204  %dir %{_libdir}/ejabberd-%{version}/priv/lib  
205  %{_libdir}/ejabberd-%{version}/priv/lib/*.so  %{_libdir}/%{name}/ebin/*.app
206    %{_libdir}/%{name}/ebin/*.beam
207  %dir %{_libdir}/ejabberd-%{version}/priv/msgs  %{_libdir}/%{name}/priv/lib/*.so
208  %{_libdir}/ejabberd-%{version}/priv/msgs/*.msg  %{_libdir}/%{name}/priv/msgs/*.msg
209    
210  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd
211  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool
   
212  %attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd  %attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd
213    
214  %files doc  %files doc
215  %defattr(-,root,root,-)  %defattr(-,root,root,-)
216  %if %{?rhel:0}%{!?rhel:1}  %if %{undefined rhel}
217  %doc ChangeLog COPYING doc/*.pdf doc/*.html doc/*.png doc/release_notes_*  %doc ChangeLog COPYING doc/release_notes_* doc/*.pdf doc/*.html doc/*.png
218  %else  %else
219  %doc ChangeLog COPYING doc/release_notes_*  %doc ChangeLog COPYING doc/release_notes_*
220  %endif  %endif
221    
222  %changelog  %changelog
223    * Sat Apr  4 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.5-2
224    - Really disable CAPTCHA
225    
226    * Fri Apr  3 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.5-1
227    - Ver. 2.0.5
228    - Temporarily disabled CAPTCHA support
229    
230    * Sun Mar 15 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.4-2
231    - Support for CAPTCHA (XEP-0158)
232    - Updated mod_ctlextra.erl (fixed EJAB-789, EJAB-864)
233    
234    * Sun Mar 15 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.4-1
235    - Ver. 2.0.4
236    
237    * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
238    - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
239    
240    * Mon Jan 26 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.3-1
241    - Ver. 2.0.3
242    - Merged some stuff from git://dev.laptop.org/users/martin/ejabberd-xs.git
243    
244    * Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> 2.0.2-4
245    - rebuild with new openssl
246    
247    * Thu Oct  2 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-3
248    - Fixed broken ejabberdctl (BZ# 465196)
249    
250    * Sat Aug 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-2
251    - Added missing Requires
252    
253    * Fri Aug 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-1
254    - Ver. 2.0.2
255    
256    * Sat Aug  9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-0.3.beta1
257    - PAM support (BZ# 452803)
258    
259    * Sat Aug  9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-0.2.beta1
260    - Fix build with --fuzz=0
261    
262    * Sat Aug  9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-0.1.beta1
263    - Version 2.0.2-beta1
264    - Fixed BZ# 452326
265    - Fixed BZ# 227270
266    
267    * Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4
268    - Last minute fix (issue with shortnames/fqdn)
269    
270    * Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-3
271    -Fixed BZ# 439583, 452326, 451554
272    
273    * Thu May 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-2
274    - Fixed BZ# 439583
275    
276    * Sat May 24 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-1
277    - Ver. 2.0.1
278    - Upstreamed patches dropped
279    - No longer uses versioned libdir (/usr/lib/ejabberd-x.x.x)
280    - Added sql-scripts in docs-directory
281    
282  * 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
283  - Fix build against R11B-2  - Fix build against R11B-2
284    
# Line 213  rm -rf %{buildroot} Line 296  rm -rf %{buildroot}
296    
297  * 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
298  - Enabled some previously disabled modules  - Enabled some previously disabled modules
299    
300  * 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
301  - Upgrade to the current upsteram version.  - Upgrade to the current upsteram version.
302  - Make ejabberd.init LSB compliant (missing Provides: tag)  - Make ejabberd.init LSB compliant (missing Provides: tag)


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