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

Annotation of /rpms/ejabberd/contribs7/ejabberd.spec

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


Revision 1.10 - (hide annotations) (download)
Thu Mar 4 16:11:50 2010 UTC (14 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +4 -0 lines
Update headers

1 slords 1.10 # $Id$
2     # Authority: gnujpl
3     # Name: Jean-Paul Leclère
4    
5 slords 1.1 Name: ejabberd
6 slords 1.9 Version: 2.0.5
7     Release: 2%{?dist}
8 slords 1.1 Summary: A distributed, fault-tolerant Jabber/XMPP server
9    
10     Group: Applications/Internet
11 slords 1.4 License: GPLv2+
12 slords 1.1 URL: http://www.ejabberd.im/
13 slords 1.9 Source0: http://www.process-one.net/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
14 slords 1.1 Source1: ejabberd.init
15     Source2: ejabberd.logrotate
16 slords 1.9 Source3: ejabberd.sysconfig
17 slords 1.1
18 slords 1.9 # http://www.ejabberd.im/mod_ctlextra
19     # svn export -r 873 https://svn.process-one.net/ejabberd-modules/mod_ctlextra/trunk/src/mod_ctlextra.erl
20     Source4: mod_ctlextra.erl
21 slords 1.1
22     # The following were extracted from a patch found on http://realloc.spb.ru/share/ejabberdad.html
23     Source5: ejabberd_auth_ad.erl
24     Source6: mod_shared_roster_ad.erl
25     Source7: mod_vcard_ad.erl
26 slords 1.9
27     # PAM support
28 slords 1.1 Source9: ejabberdctl.pam
29     Source10: ejabberdctl.apps
30 slords 1.9 Source11: ejabberd.pam
31 slords 1.1
32 slords 1.4 # Fedora-specific stuff - fixing paths
33 slords 1.1 Patch1: ejabberd-build.patch
34 slords 1.9 # BZ# 439583, 452326, 451554, 465196
35 slords 1.4 Patch2: ejabberd-ejabberdctl_fix.diff
36 slords 1.9 # Use ejabberd as an example for PAM service name
37     Patch3: ejabberd-ejabberd_cfg_pam_name.diff
38     # CAPTCHA support, see https://support.process-one.net/doc/display/XAAI/Fighting+Multi-User+Chat+SPAM+with+CAPTCHA
39     # wget https://support.process-one.net/secure/attachment/13851/XEP-0158_ejabberd-2.0.4.patch -O ejabberd-captcha.patch
40     Patch4: ejabberd-captcha.patch
41    
42 slords 1.1
43     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
44    
45     BuildRequires: expat-devel
46     BuildRequires: openssl-devel
47     BuildRequires: pam-devel
48     BuildRequires: erlang
49 slords 1.4 BuildRequires: dos2unix
50 slords 1.9 %if %{undefined rhel}
51 slords 1.1 BuildRequires: hevea
52     %endif
53    
54     Requires: erlang
55     Requires: usermode
56    
57 slords 1.9 Requires(pre): fedora-usermgmt
58 slords 1.1 Requires(post): /sbin/chkconfig
59 slords 1.9 Requires(post): /usr/bin/openssl
60 slords 1.1 Requires(preun): /sbin/chkconfig
61     Requires(preun): /sbin/service
62     Requires(postun): /sbin/service
63    
64     #https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=250253
65     ExcludeArch: ppc64
66    
67     %description
68     ejabberd is a Free and Open Source distributed fault-tolerant
69     Jabber/XMPP server. It is mostly written in Erlang, and runs on many
70     platforms (tested on Linux, FreeBSD, NetBSD, Solaris, Mac OS X and
71     Windows NT/2000/XP).
72    
73     %package doc
74     Summary: Documentation for ejabberd
75     Group: Documentation
76    
77     %description doc
78     Documentation for ejabberd.
79    
80     %pre
81 slords 1.9 /usr/sbin/fedora-groupadd 27 -r ejabberd &>/dev/null || :
82     /usr/sbin/fedora-useradd 27 -r -s /sbin/nologin -d /var/lib/ejabberd -M \
83 slords 1.1 -c 'ejabberd' -g ejabberd ejabberd &>/dev/null || :
84    
85     %post
86     /sbin/chkconfig --add ejabberd
87    
88 slords 1.9 (cd /etc/ejabberd
89     if [ ! -f ejabberd.pem ]
90     then
91     echo "Generating SSL certificate /etc/ejabberd/ejabberd.pem..."
92     HOSTNAME=$(hostname -s)
93     DOMAINNAME=$(hostname -d)
94     openssl req -new -x509 -days 365 -nodes -out ejabberd.pem \
95     -keyout ejabberd.pem > /dev/null 2>&1 <<+++
96     .
97     .
98     .
99     $DOMAINNAME
100     $HOSTNAME
101     ejabberd
102     root@$HOSTNAME.$DOMAINNAME
103     +++
104     chown ejabberd:ejabberd ejabberd.pem
105     chmod 600 ejabberd.pem
106     fi)
107    
108 slords 1.1 %preun
109     if [ $1 = 0 ]; then
110     /sbin/service ejabberd stop >/dev/null 2>&1
111     /sbin/chkconfig --del ejabberd
112     fi
113    
114     %postun
115     if [ "$1" -ge "1" ]; then
116     /sbin/service ejabberd condrestart >/dev/null 2>&1
117     fi
118    
119     %prep
120 slords 1.9 %setup -q
121 slords 1.4 %patch1 -p0 -b .fix_paths
122     %patch2 -p0 -b .fix_user
123 slords 1.9 %patch3 -p0 -b .pam_name
124     #%patch4 -p1 -b .captcha
125 slords 1.4 dos2unix src/odbc/mssql.sql
126 slords 1.1
127     cp %{S:4} src
128     cp %{S:5} src
129     cp %{S:6} src
130     cp %{S:7} src
131    
132     %build
133     pushd src
134 gnujpl 1.6 %configure --enable-odbc --enable-debug --enable-pam
135 slords 1.4 # doesn't builds on SMP currently
136     make
137 slords 1.1 popd
138 slords 1.9 %if %{undefined rhel}
139 slords 1.1 pushd doc
140     make html pdf
141     popd
142     %endif
143    
144     %install
145     rm -rf %{buildroot}
146    
147     pushd src
148     make install DESTDIR=%{buildroot}
149     popd
150    
151 slords 1.4 chmod a+x %{buildroot}%{_libdir}/%{name}/priv/lib/*.so
152 slords 1.1
153     %{__perl} -pi -e 's!./ssl.pem!/etc/ejabberd/ejabberd.pem!g' %{buildroot}/etc/ejabberd/ejabberd.cfg
154    
155     mkdir -p %{buildroot}/var/log/ejabberd
156     mkdir -p %{buildroot}/var/lib/ejabberd/spool
157    
158     mkdir -p %{buildroot}%{_bindir}
159     ln -s consolehelper %{buildroot}%{_bindir}/ejabberdctl
160     install -D -p -m 0644 %{S:9} %{buildroot}%{_sysconfdir}/pam.d/ejabberdctl
161     install -D -p -m 0644 %{S:10} %{buildroot}%{_sysconfdir}/security/console.apps/ejabberdctl
162 slords 1.9 install -D -p -m 0644 %{S:11} %{buildroot}%{_sysconfdir}/pam.d/ejabberd
163    
164     # install init-script
165     install -D -p -m 0755 %{S:1} %{buildroot}%{_initrddir}/ejabberd
166 slords 1.1
167 slords 1.9 # install config for logrotate
168     install -D -p -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd
169 slords 1.1
170 slords 1.9 # install sysconfig file
171     install -D -p -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/ejabberd
172 slords 1.1
173 slords 1.4 %{__perl} -pi -e 's!\@libdir\@!%{_libdir}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl
174 slords 1.1 %{__perl} -pi -e 's!\@version\@!%{version}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl
175    
176 slords 1.4 # BZ# 439583
177     %{__perl} -pi -e 's!MAINDIR=!MAINDIR=%{_libdir}/ejabberd!g' %{buildroot}%{_sbindir}/ejabberdctl
178 slords 1.1
179     %clean
180     rm -rf %{buildroot}
181    
182     %files
183     %defattr(-,root,root,-)
184 slords 1.4 %doc COPYING src/odbc/mysql.sql src/odbc/mssql.sql src/odbc/pg.sql
185 slords 1.9 # tools/captcha.sh
186 slords 1.1
187     %attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd
188     %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg
189     %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberdctl.cfg
190     %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/inetrc
191    
192     %{_initrddir}/ejabberd
193     %config(noreplace) %{_sysconfdir}/logrotate.d/ejabberd
194 slords 1.9 %config(noreplace) %{_sysconfdir}/sysconfig/ejabberd
195     %config(noreplace) %{_sysconfdir}/pam.d/ejabberd
196 slords 1.1 %config(noreplace) %{_sysconfdir}/pam.d/ejabberdctl
197     %config(noreplace) %{_sysconfdir}/security/console.apps/ejabberdctl
198     %{_bindir}/ejabberdctl
199     %{_sbindir}/ejabberdctl
200    
201 slords 1.4 %dir %{_libdir}/%{name}
202     %dir %{_libdir}/%{name}/ebin
203     %dir %{_libdir}/%{name}/priv
204     %dir %{_libdir}/%{name}/priv/bin
205 slords 1.9 %attr(4750,root,ejabberd) %{_libdir}/%{name}/priv/bin/epam
206 slords 1.4 %dir %{_libdir}/%{name}/priv/lib
207     %dir %{_libdir}/%{name}/priv/msgs
208    
209     %{_libdir}/%{name}/ebin/*.app
210     %{_libdir}/%{name}/ebin/*.beam
211     %{_libdir}/%{name}/priv/lib/*.so
212     %{_libdir}/%{name}/priv/msgs/*.msg
213 slords 1.1
214     %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd
215     %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool
216     %attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd
217    
218     %files doc
219     %defattr(-,root,root,-)
220 slords 1.9 %if %{undefined rhel}
221 slords 1.4 %doc ChangeLog COPYING doc/release_notes_* doc/*.pdf doc/*.html doc/*.png
222 slords 1.1 %else
223     %doc ChangeLog COPYING doc/release_notes_*
224     %endif
225    
226     %changelog
227 slords 1.9 * Sat Apr 4 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.5-2
228     - Really disable CAPTCHA
229    
230     * Fri Apr 3 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.5-1
231     - Ver. 2.0.5
232     - Temporarily disabled CAPTCHA support
233    
234     * Sun Mar 15 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.4-2
235     - Support for CAPTCHA (XEP-0158)
236     - Updated mod_ctlextra.erl (fixed EJAB-789, EJAB-864)
237    
238     * Sun Mar 15 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.4-1
239     - Ver. 2.0.4
240    
241     * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
242     - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
243    
244     * Mon Jan 26 2009 Peter Lemenkov <lemenkov@gmail.com> 2.0.3-1
245     - Ver. 2.0.3
246     - Merged some stuff from git://dev.laptop.org/users/martin/ejabberd-xs.git
247    
248     * Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> 2.0.2-4
249     - rebuild with new openssl
250    
251     * Thu Oct 2 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-3
252     - Fixed broken ejabberdctl (BZ# 465196)
253    
254     * Sat Aug 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-2
255     - Added missing Requires
256    
257     * Fri Aug 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-1
258     - Ver. 2.0.2
259    
260     * Sat Aug 9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-0.3.beta1
261     - PAM support (BZ# 452803)
262    
263     * Sat Aug 9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-0.2.beta1
264     - Fix build with --fuzz=0
265    
266     * Sat Aug 9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.2-0.1.beta1
267     - Version 2.0.2-beta1
268     - Fixed BZ# 452326
269     - Fixed BZ# 227270
270 slords 1.5
271 slords 1.4 * Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-4
272     - Last minute fix (issue with shortnames/fqdn)
273    
274     * Sun Jun 22 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-3
275     -Fixed BZ# 439583, 452326, 451554
276    
277     * Thu May 29 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-2
278     - Fixed BZ# 439583
279    
280     * Sat May 24 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.1-1
281     - Ver. 2.0.1
282     - Upstreamed patches dropped
283     - No longer uses versioned libdir (/usr/lib/ejabberd-x.x.x)
284     - Added sql-scripts in docs-directory
285 gnujpl 1.3
286 slords 1.1 * Mon May 5 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-3
287     - Fix build against R11B-2
288    
289     * Sat Feb 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-2
290     - Disable docs again for EPEL (we haven't hevea for EPEL)
291    
292     * Sat Feb 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-1
293     - Version 2.0.0
294    
295     * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.0-0.4.rc1
296     - Autorebuild for GCC 4.3
297    
298     * Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-0.3.rc1
299     - Really enabled some previously disabled modules
300    
301     * Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-0.2.rc1
302     - Enabled some previously disabled modules
303 slords 1.4
304 slords 1.1 * Sat Jan 19 2008 Matej Cepl <mcepl@redhat.com> 2.0.0-0.1.rc1
305     - Upgrade to the current upsteram version.
306     - Make ejabberd.init LSB compliant (missing Provides: tag)
307    
308     * Thu Dec 27 2007 Matej Cepl <mcepl@redhat.com> 2.0.0-0.beta1.mc.1
309     - Experimental build from the upstream betaversion.
310    
311     * Tue Dec 11 2007 Matej Cepl <mcepl@redhat.com> 1.1.4-2.fc9
312     - rebuild against new ssl library.
313     - rebuild against the newest erlang (see Patch
314     - fix %%changelog
315    
316     * Wed Sep 5 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.4-1
317     - Drop LDAP patch
318     - Update mod_ctlextra
319     - Update to 1.1.4
320    
321     * Tue Sep 4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-11
322     - Fix ejabberdctl wrapper script - #276071
323    
324     * Wed Aug 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-10
325     - Re-exclude ppc64
326    
327     * Wed Aug 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-9
328     - Fix license
329     - Don't exclude ppc64
330    
331     * Wed Aug 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-8
332     - Bump & rebuild to build against latest erlang package.
333    
334     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-7
335     - Bump release and rebuild due to Koji hiccups.
336    
337     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-6
338     - Don't try building on PPC64 since hevea isn't available on PPC64.
339    
340     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-5
341     - Sigh...
342    
343     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-4
344     - Don't forget to add patch.
345    
346     * Thu Jul 26 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-3
347     - Add ejabberdctl (#199873)
348     - Add patch to fix LDAP authentication. (#248268)
349     - Add a sleep in init script between stop/start when restarting.
350     - LSB compliance cleanups for init script. (#246917)
351     - Don't mention "reload" in the init script usage string. (#227254)
352    
353     * Tue Jul 24 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-2
354     - Update mod_ctlextra
355    
356     * Fri Feb 2 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-1
357     - Update to 1.1.3
358    
359     * Wed Oct 11 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.2-2
360     - Fix logrotate script (BZ#210366)
361    
362     * Mon Aug 28 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-10
363     - Bump release and rebuild.
364    
365     * Mon Jul 3 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-9
366     - Updated init script - should hopefully fix some problems with status & stop commands.
367    
368     * Mon Jun 26 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-8
369     - Bump release to that tagging works on FC-5.
370    
371     * Thu Jun 22 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-7
372     - Oops drop bad patch.
373    
374     * Thu Jun 22 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-6
375     - Split documentation off to a subpackage.
376     - Own %%{_libdir}/ejabberd-%{version}
377     - Mark %%{_sysconfdir}/logrotate.d/ejabberd as %%config
378    
379     * Thu Jun 8 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-5
380     - Patch the makefile so that it adds a soname to shared libs.
381    
382     * Fri May 26 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-4
383     - Modify AD modules not to check for group membership.
384    
385     * Thu May 25 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-3
386     - Add some extra modules
387    
388     * Wed May 24 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-2
389     - Munge Makefile.in a bit more...
390     - Change ownership/permissions - not *everything* needs to be owned by ejabberd
391    
392     * Wed May 24 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-1
393     - First version for Fedora Extras

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