/[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.2 - (hide annotations) (download)
Thu May 8 21:12:30 2008 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.1: +4 -0 lines
Add ID

1 slords 1.2 # $Id$
2     # Authority: gnujpl
3     # Name: Jean-Paul Leclère
4    
5 slords 1.1 Name: ejabberd
6     Version: 2.0.0
7     Release: 3%{?dist}
8     Summary: A distributed, fault-tolerant Jabber/XMPP server
9    
10     Group: Applications/Internet
11     License: GPLv2
12     URL: http://www.ejabberd.im/
13     Source0: http://www.process-one.net/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
14     Source1: ejabberd.init
15     Source2: ejabberd.logrotate
16    
17     # http://ejabberd.jabber.ru/ejabberdctl-extra
18     Source4: https://svn.process-one.net/ejabberd-modules/mod_ctlextra/trunk/src/mod_ctlextra.erl
19    
20     # The following were extracted from a patch found on http://realloc.spb.ru/share/ejabberdad.html
21     Source5: ejabberd_auth_ad.erl
22     Source6: mod_shared_roster_ad.erl
23     Source7: mod_vcard_ad.erl
24     #
25     #Source8: ejabberdctl
26     Source9: ejabberdctl.pam
27     Source10: ejabberdctl.apps
28    
29     # originally from
30     # https://support.process-one.net/secure/attachment/11788/ejab-446.patch
31     Patch0: ejab-446.patch
32    
33     # local stuff
34     Patch1: ejabberd-build.patch
35    
36     # R12B
37     Patch2: ejabberd-ssl.patch
38    
39     # R11B SSL
40     Patch3: ejabberd_s2s_in_erl.diff
41    
42     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
43    
44     BuildRequires: expat-devel
45     BuildRequires: openssl-devel
46     BuildRequires: pam-devel
47     BuildRequires: erlang
48     %if %{?rhel:0}%{!?rhel:1}
49     BuildRequires: hevea
50     %endif
51    
52     Requires: erlang
53     Requires: usermode
54    
55     Requires(pre): fedora-usermgmt
56     Requires(post): /sbin/chkconfig
57     Requires(preun): /sbin/chkconfig
58     Requires(preun): /sbin/service
59     Requires(postun): /sbin/service
60    
61     #https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=250253
62     ExcludeArch: ppc64
63    
64     %description
65     ejabberd is a Free and Open Source distributed fault-tolerant
66     Jabber/XMPP server. It is mostly written in Erlang, and runs on many
67     platforms (tested on Linux, FreeBSD, NetBSD, Solaris, Mac OS X and
68     Windows NT/2000/XP).
69    
70     %package doc
71     Summary: Documentation for ejabberd
72     Group: Documentation
73    
74     %description doc
75     Documentation for ejabberd.
76    
77     %pre
78     /usr/sbin/fedora-groupadd 27 -r ejabberd &>/dev/null || :
79     /usr/sbin/fedora-useradd 27 -r -s /sbin/nologin -d /var/lib/ejabberd -M \
80     -c 'ejabberd' -g ejabberd ejabberd &>/dev/null || :
81    
82     %post
83     /sbin/chkconfig --add ejabberd
84    
85     %preun
86     if [ $1 = 0 ]; then
87     /sbin/service ejabberd stop >/dev/null 2>&1
88     /sbin/chkconfig --del ejabberd
89     fi
90    
91     %postun
92     if [ "$1" -ge "1" ]; then
93     /sbin/service ejabberd condrestart >/dev/null 2>&1
94     fi
95    
96     %prep
97     %setup -q -n %{name}-%{version}
98     %patch0 -p1 -b .Er12b-build
99     %patch1 -p1 -b .MC-build
100     #%patch2 -p1 -b .R12B
101     %patch3 -p0 -b .r11_ssl
102    
103     %{__perl} -pi -e "s!/var/lib/ejabberd!%{_libdir}/ejabberd-%{version}!g" src/Makefile.in
104     %{__perl} -pi -e "s!/etc!%{_sysconfdir}!g" src/Makefile.in
105     %{__perl} -pi -e "s!\@prefix\@!!g" src/Makefile.in
106    
107     cp %{S:4} src
108     cp %{S:5} src
109     cp %{S:6} src
110     cp %{S:7} src
111    
112     %build
113     pushd src
114     %configure --enable-odbc --enable-debug
115     make %{?_smp_mflags}
116     popd
117     %if %{?rhel:0}%{!?rhel:1}
118     pushd doc
119     make html pdf
120     popd
121     %endif
122    
123     %install
124     rm -rf %{buildroot}
125    
126     pushd src
127     make install DESTDIR=%{buildroot}
128     popd
129    
130     chmod a+x %{buildroot}%{_libdir}/ejabberd-%{version}/priv/lib/*.so
131    
132     %{__perl} -pi -e 's!./ssl.pem!/etc/ejabberd/ejabberd.pem!g' %{buildroot}/etc/ejabberd/ejabberd.cfg
133    
134     mkdir -p %{buildroot}/var/log/ejabberd
135     mkdir -p %{buildroot}/var/lib/ejabberd/spool
136    
137     mkdir -p %{buildroot}%{_bindir}
138     ln -s consolehelper %{buildroot}%{_bindir}/ejabberdctl
139     #install -D -p -m 0755 %{S:8} %{buildroot}%{_sbindir}/ejabberdctl
140     install -D -p -m 0644 %{S:9} %{buildroot}%{_sysconfdir}/pam.d/ejabberdctl
141     install -D -p -m 0644 %{S:10} %{buildroot}%{_sysconfdir}/security/console.apps/ejabberdctl
142    
143     mkdir -p %{buildroot}%{_initrddir}
144     install -p -m 0755 %{S:1} %{buildroot}%{_initrddir}/ejabberd
145     chmod a+x %{buildroot}%{_initrddir}/ejabberd
146    
147     mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
148     cp -p %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd
149    
150     %{__perl} -pi -e 's!\@libdir\@!%{_libdir}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl
151     %{__perl} -pi -e 's!\@version\@!%{version}!g' %{buildroot}%{_initrddir}/ejabberd %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd %{buildroot}%{_sbindir}/ejabberdctl
152    
153     #cp %{S:3} %{buildroot}%{_sysconfdir}/ejabberd/inetrc
154     #mv %{buildroot}%{_sysconfdir}/ejabberd/{ejabberd.,}inetrc
155    
156     %clean
157     rm -rf %{buildroot}
158    
159     %files
160     %defattr(-,root,root,-)
161     %doc COPYING
162    
163     %attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd
164     %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.cfg
165     %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberdctl.cfg
166     %attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/inetrc
167    
168     %{_initrddir}/ejabberd
169     %config(noreplace) %{_sysconfdir}/logrotate.d/ejabberd
170    
171     %config(noreplace) %{_sysconfdir}/pam.d/ejabberdctl
172     %config(noreplace) %{_sysconfdir}/security/console.apps/ejabberdctl
173     %{_bindir}/ejabberdctl
174     %{_sbindir}/ejabberdctl
175    
176     %dir %{_libdir}/ejabberd-%{version}
177     %dir %{_libdir}/ejabberd-%{version}/ebin
178     %{_libdir}/ejabberd-%{version}/ebin/*.app
179     %{_libdir}/ejabberd-%{version}/ebin/*.beam
180    
181     %dir %{_libdir}/ejabberd-%{version}/priv
182    
183     %dir %{_libdir}/ejabberd-%{version}/priv/lib
184     %{_libdir}/ejabberd-%{version}/priv/lib/*.so
185    
186     %dir %{_libdir}/ejabberd-%{version}/priv/msgs
187     %{_libdir}/ejabberd-%{version}/priv/msgs/*.msg
188    
189     %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd
190     %attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd/spool
191    
192     %attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd
193    
194     %files doc
195     %defattr(-,root,root,-)
196     %if %{?rhel:0}%{!?rhel:1}
197     %doc ChangeLog COPYING doc/*.pdf doc/*.html doc/*.png doc/release_notes_*
198     %else
199     %doc ChangeLog COPYING doc/release_notes_*
200     %endif
201    
202     %changelog
203     * Mon May 5 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-3
204     - Fix build against R11B-2
205    
206     * Sat Feb 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-2
207     - Disable docs again for EPEL (we haven't hevea for EPEL)
208    
209     * Sat Feb 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-1
210     - Version 2.0.0
211    
212     * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.0-0.4.rc1
213     - Autorebuild for GCC 4.3
214    
215     * Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-0.3.rc1
216     - Really enabled some previously disabled modules
217    
218     * Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0.0-0.2.rc1
219     - Enabled some previously disabled modules
220    
221     * Sat Jan 19 2008 Matej Cepl <mcepl@redhat.com> 2.0.0-0.1.rc1
222     - Upgrade to the current upsteram version.
223     - Make ejabberd.init LSB compliant (missing Provides: tag)
224    
225     * Thu Dec 27 2007 Matej Cepl <mcepl@redhat.com> 2.0.0-0.beta1.mc.1
226     - Experimental build from the upstream betaversion.
227    
228     * Tue Dec 11 2007 Matej Cepl <mcepl@redhat.com> 1.1.4-2.fc9
229     - rebuild against new ssl library.
230     - rebuild against the newest erlang (see Patch
231     - fix %%changelog
232    
233     * Wed Sep 5 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.4-1
234     - Drop LDAP patch
235     - Update mod_ctlextra
236     - Update to 1.1.4
237    
238     * Tue Sep 4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-11
239     - Fix ejabberdctl wrapper script - #276071
240    
241     * Wed Aug 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-10
242     - Re-exclude ppc64
243    
244     * Wed Aug 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-9
245     - Fix license
246     - Don't exclude ppc64
247    
248     * Wed Aug 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-8
249     - Bump & rebuild to build against latest erlang package.
250    
251     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-7
252     - Bump release and rebuild due to Koji hiccups.
253    
254     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-6
255     - Don't try building on PPC64 since hevea isn't available on PPC64.
256    
257     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-5
258     - Sigh...
259    
260     * Tue Jul 31 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-4
261     - Don't forget to add patch.
262    
263     * Thu Jul 26 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-3
264     - Add ejabberdctl (#199873)
265     - Add patch to fix LDAP authentication. (#248268)
266     - Add a sleep in init script between stop/start when restarting.
267     - LSB compliance cleanups for init script. (#246917)
268     - Don't mention "reload" in the init script usage string. (#227254)
269    
270     * Tue Jul 24 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-2
271     - Update mod_ctlextra
272    
273     * Fri Feb 2 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.3-1
274     - Update to 1.1.3
275    
276     * Wed Oct 11 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.2-2
277     - Fix logrotate script (BZ#210366)
278    
279     * Mon Aug 28 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-10
280     - Bump release and rebuild.
281    
282     * Mon Jul 3 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-9
283     - Updated init script - should hopefully fix some problems with status & stop commands.
284    
285     * Mon Jun 26 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-8
286     - Bump release to that tagging works on FC-5.
287    
288     * Thu Jun 22 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-7
289     - Oops drop bad patch.
290    
291     * Thu Jun 22 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-6
292     - Split documentation off to a subpackage.
293     - Own %%{_libdir}/ejabberd-%{version}
294     - Mark %%{_sysconfdir}/logrotate.d/ejabberd as %%config
295    
296     * Thu Jun 8 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-5
297     - Patch the makefile so that it adds a soname to shared libs.
298    
299     * Fri May 26 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-4
300     - Modify AD modules not to check for group membership.
301    
302     * Thu May 25 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-3
303     - Add some extra modules
304    
305     * Wed May 24 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-2
306     - Munge Makefile.in a bit more...
307     - Change ownership/permissions - not *everything* needs to be owned by ejabberd
308    
309     * Wed May 24 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.1-1
310     - First version for Fedora Extras

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