]>
Commit | Line | Data |
---|---|---|
1 | # TODO: optflags | |
2 | Summary: Additional modules for Asterisk | |
3 | Summary(pl.UTF-8): Dodatkowe moduły dla Asteriska | |
4 | Name: asterisk-addons | |
5 | Version: 1.6.0 | |
6 | Release: 2 | |
7 | License: BSD | |
8 | Group: Applications/System | |
9 | Source0: http://downloads.digium.com/pub/asterisk/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: ce7ce4fe64684c0bcc54f84a5c150fa5 | |
11 | URL: http://www.asterisk.org/ | |
12 | BuildRequires: asterisk-devel >= 1.6.0 | |
13 | BuildRequires: mysql-devel | |
14 | BuildRequires: sed >= 4.0 | |
15 | Requires: asterisk | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Additional modules for Asterisk which are, for one reason or another, | |
20 | not included in the normal base distribution. Many of these modules | |
21 | are experimental. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Dodatkowe moduły dla Asteriska, które z różnych powodów nie zostały | |
25 | włączone do głównej dystrybucji. Wiele z tych modułów jest | |
26 | eksperymentalnych. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | %configure | |
33 | %{__make} \ | |
34 | CC="%{__cc}" \ | |
35 | OPTIMIZE="%{rpmcflags}" | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | install -d $RPM_BUILD_ROOT{%{_libdir}/asterisk/modules,%{_sysconfdir}/asterisk} | |
41 | ||
42 | %{__make} install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT \ | |
44 | INSTALLTO=$RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
45 | ||
46 | install configs/cdr_mysql.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/cdr_mysql.conf | |
47 | install configs/res_mysql.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/res_mysql.conf | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc ChangeLog README doc/cdr_mysql.txt | |
55 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/*.conf | |
56 | %dir %{_libdir}/asterisk | |
57 | %dir %{_libdir}/asterisk/modules | |
58 | %attr(755,root,root) %{_libdir}/asterisk/modules/*.so |