]>
Commit | Line | Data |
---|---|---|
9c0e5cbb | 1 | |
2 | %define _snap 20070926r390 | |
3 | ||
4 | Summary: Ejabberds native MySQL drivers | |
5 | Summary(pl.UTF-8): Natywne sterowniki do MySQL dla ejabberda | |
6 | Name: ejabberd-mysql | |
7 | Version: 0 | |
8 | Release: 0.%{_snap}.1 | |
9 | License: GPL | |
10 | Group: Applications/Communications | |
03a1508e | 11 | # get it from https://svn.process-one.net/ejabberd-modules/mysql/trunk/src/ and drop onto distfiles |
9c0e5cbb | 12 | Source0: %{name}.tar.gz |
13 | # Source0-md5: 3f3b5c59ebb5a807ec2d6c5ec31e795b | |
14 | URL: http://ejabberd.jabber.ru/ | |
15 | BuildRequires: erlang >= R9C | |
16 | BuildRequires: rpmbuild(macros) >= 1.268 | |
17 | Requires: ejabberd | |
18 | Requires: rc-scripts | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Ejabberds native MySQL drivers. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Natywne sterowniki do MySQL dla ejabberda. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{name} | |
29 | ||
30 | %build | |
31 | erlc mysql*.erl | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{_libdir}/ejabberd/ebin | |
36 | ||
37 | install *.beam $RPM_BUILD_ROOT%{_libdir}/ejabberd/ebin | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %{_libdir}/ejabberd/ebin/mysql*.beam |