1f1685a139e7f1778936b14aedf63138bb64f5c3
[packages/ejabberd-mysql.git] / ejabberd-mysql.spec
1 #
2 # Conditional build:
3 %bcond_with     logdb   # server-side message logging support for mysql5 driver
4 #
5 %define         _snap   20070926r390
6
7 Summary:        Ejabberd's native MySQL drivers
8 Summary(pl.UTF-8):      Natywne sterowniki do MySQL-a dla demona ejabberd
9 Name:           ejabberd-mysql
10 Version:        0
11 Release:        1.%{_snap}.0
12 License:        GPL
13 Group:          Applications/Communications
14 # get it from https://svn.process-one.net/ejabberd-modules/mysql/trunk/src/ and drop onto distfiles
15 Source0:        %{name}.tar.gz
16 # Source0-md5:  3f3b5c59ebb5a807ec2d6c5ec31e795b
17 Patch0:         %{name}-logdb_mysql5.patch
18 URL:            http://ejabberd.jabber.ru/
19 BuildRequires:  erlang >= R9C
20 BuildRequires:  rpmbuild(macros) >= 1.268
21 Requires:       ejabberd
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Ejabberds native MySQL drivers.
26
27 %description -l pl.UTF-8
28 Natywne sterowniki do MySQL-a dla demona ejabberd.
29
30 %prep
31 %setup -q -n %{name}
32 %if %{with logdb}
33 %patch0 -p0
34 %endif
35
36 %build
37 erlc mysql*.erl
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_libdir}/ejabberd/ebin
42
43 install *.beam $RPM_BUILD_ROOT%{_libdir}/ejabberd/ebin
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %{_libdir}/ejabberd/ebin/mysql*.beam
This page took 0.027946 seconds and 2 git commands to generate.