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