/[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.4 by slords, Wed Jun 25 19:02:58 2008 UTC
# Line 1  Line 1 
1  Name:           ejabberd  Name:           ejabberd
2  Version:        2.0.0  Version:        2.0.1
3  Release:        3%{?dist}  Release:        4%{?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}_2.tar.gz
10  Source1:        ejabberd.init  Source1:        ejabberd.init
11  Source2:        ejabberd.logrotate  Source2:        ejabberd.logrotate
12    
# Line 22  Source7:        mod_vcard_ad.erl Line 22  Source7:        mod_vcard_ad.erl
22  Source9:        ejabberdctl.pam  Source9:        ejabberdctl.pam
23  Source10:       ejabberdctl.apps  Source10:       ejabberdctl.apps
24    
25  # originally from  # Fedora-specific stuff - fixing paths
 # https://support.process-one.net/secure/attachment/11788/ejab-446.patch  
 Patch0: ejab-446.patch  
   
 # local stuff  
26  Patch1: ejabberd-build.patch  Patch1: ejabberd-build.patch
27    # BZ# 439583, 452326, 451554
28  # R12B  Patch2: ejabberd-ejabberdctl_fix.diff
 Patch2: ejabberd-ssl.patch  
   
 # R11B SSL  
 Patch3: ejabberd_s2s_in_erl.diff  
29    
30  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
31    
# Line 41  BuildRequires:  expat-devel Line 33  BuildRequires:  expat-devel
33  BuildRequires:  openssl-devel  BuildRequires:  openssl-devel
34  BuildRequires:  pam-devel  BuildRequires:  pam-devel
35  BuildRequires:  erlang  BuildRequires:  erlang
36  %if %{?rhel:0}%{!?rhel:1}  BuildRequires:  dos2unix
37    %if %{undefined rhel}
38  BuildRequires:  hevea  BuildRequires:  hevea
39  %endif  %endif
40    
# Line 91  fi Line 84  fi
84    
85  %prep  %prep
86  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
87  %patch0 -p1 -b .Er12b-build  %patch1 -p0 -b .fix_paths
88  %patch1 -p1 -b .MC-build  %patch2 -p0 -b .fix_user
89  #%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  
90    
91  cp %{S:4} src  cp %{S:4} src
92  cp %{S:5} src  cp %{S:5} src
# Line 108  cp %{S:7} src Line 96  cp %{S:7} src
96  %build  %build
97  pushd src  pushd src
98  %configure --enable-odbc --enable-debug  %configure --enable-odbc --enable-debug
99  make %{?_smp_mflags}  # doesn't builds on SMP currently
100    make
101  popd  popd
102  %if %{?rhel:0}%{!?rhel:1}  %if %{undefined rhel}
103  pushd doc  pushd doc
104  make html pdf  make html pdf
105  popd  popd
# Line 123  pushd src Line 112  pushd src
112  make install DESTDIR=%{buildroot}  make install DESTDIR=%{buildroot}
113  popd  popd
114    
115  chmod a+x %{buildroot}%{_libdir}/ejabberd-%{version}/priv/lib/*.so  chmod a+x %{buildroot}%{_libdir}/%{name}/priv/lib/*.so
116    
117  %{__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
118    
# Line 143  chmod a+x %{buildroot}%{_initrddir}/ejab Line 132  chmod a+x %{buildroot}%{_initrddir}/ejab
132  mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d  mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
133  cp -p %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd  cp -p %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd
134    
135  %{__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
136  %{__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
137    
138  #cp %{S:3} %{buildroot}%{_sysconfdir}/ejabberd/inetrc  # BZ# 439583
139  #mv %{buildroot}%{_sysconfdir}/ejabberd/{ejabberd.,}inetrc  %{__perl} -pi -e 's!MAINDIR=!MAINDIR=%{_libdir}/ejabberd!g' %{buildroot}%{_sbindir}/ejabberdctl
140    
141  %clean  %clean
142  rm -rf %{buildroot}  rm -rf %{buildroot}
143    
144  %files  %files
145  %defattr(-,root,root,-)  %defattr(-,root,root,-)
146  %doc COPYING  %doc COPYING src/odbc/mysql.sql src/odbc/mssql.sql src/odbc/pg.sql
147    
148  %attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd  %attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd
149  %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg  %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg
# Line 169  rm -rf %{buildroot} Line 158  rm -rf %{buildroot}
158  %{_bindir}/ejabberdctl  %{_bindir}/ejabberdctl
159  %{_sbindir}/ejabberdctl  %{_sbindir}/ejabberdctl
160    
161  %dir %{_libdir}/ejabberd-%{version}  %dir %{_libdir}/%{name}
162  %dir %{_libdir}/ejabberd-%{version}/ebin  %dir %{_libdir}/%{name}/ebin
163  %{_libdir}/ejabberd-%{version}/ebin/*.app  %dir %{_libdir}/%{name}/priv
164  %{_libdir}/ejabberd-%{version}/ebin/*.beam  %dir %{_libdir}/%{name}/priv/bin
165    %dir %{_libdir}/%{name}/priv/lib
166  %dir %{_libdir}/ejabberd-%{version}/priv  %dir %{_libdir}/%{name}/priv/msgs
167    
168  %dir %{_libdir}/ejabberd-%{version}/priv/lib  %{_libdir}/%{name}/ebin/*.app
169  %{_libdir}/ejabberd-%{version}/priv/lib/*.so  %{_libdir}/%{name}/ebin/*.beam
170    %{_libdir}/%{name}/priv/lib/*.so
171  %dir %{_libdir}/ejabberd-%{version}/priv/msgs  %{_libdir}/%{name}/priv/msgs/*.msg
 %{_libdir}/ejabberd-%{version}/priv/msgs/*.msg  
172    
173  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd
174  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool  %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool
   
175  %attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd  %attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd
176    
177  %files doc  %files doc
178  %defattr(-,root,root,-)  %defattr(-,root,root,-)
179  %if %{?rhel:0}%{!?rhel:1}  %if %{undefined rhel}
180  %doc ChangeLog COPYING doc/*.pdf doc/*.html doc/*.png doc/release_notes_*  %doc ChangeLog COPYING doc/release_notes_* doc/*.pdf doc/*.html doc/*.png
181  %else  %else
182  %doc ChangeLog COPYING doc/release_notes_*  %doc ChangeLog COPYING doc/release_notes_*
183  %endif  %endif
184    
185  %changelog  %changelog
186    * Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4
187    - Last minute fix (issue with shortnames/fqdn)
188    
189    * Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-3
190    -Fixed BZ# 439583, 452326, 451554
191    
192    * Thu May 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-2
193    - Fixed BZ# 439583
194    
195    * Sat May 24 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-1
196    - Ver. 2.0.1
197    - Upstreamed patches dropped
198    - No longer uses versioned libdir (/usr/lib/ejabberd-x.x.x)
199    - Added sql-scripts in docs-directory
200    
201  * 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
202  - Fix build against R11B-2  - Fix build against R11B-2
203    
# Line 213  rm -rf %{buildroot} Line 215  rm -rf %{buildroot}
215    
216  * 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
217  - Enabled some previously disabled modules  - Enabled some previously disabled modules
218    
219  * 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
220  - Upgrade to the current upsteram version.  - Upgrade to the current upsteram version.
221  - 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