forked from sipXcom/sipxecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sipxsaa.spec.in
77 lines (63 loc) · 1.79 KB
/
sipxsaa.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Name: @PACKAGE@
Version: @VERSION@
Release: @PACKAGE_REVISION@
Summary: Shared Appearance Agent
License: LGPL
Group: Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Packager: SIPfoundry <[email protected]>
Url: http://www.sipfoundry.org/sipXsaa
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: cppunit-devel
BuildRequires: pcre-devel >= 4.5
BuildRequires: openssl-devel
%if %{_vendor} == suse
BuildRequires: apache2-devel
BuildRequires: libapr1-devel
%else
BuildRequires: httpd-devel
BuildRequires: apr-devel
%endif
BuildRequires: sipxcalllib-devel >= %version
BuildRequires: sipxcommserverlib-devel >= %version
BuildRequires: sipxmediaadapterlib-devel >= %version
BuildRequires: sipxmedialib-devel >= %version
BuildRequires: sipxportlib-devel >= %version
BuildRequires: sipxtacklib-devel >= %version
Source: %name-%version.tar.gz
Obsoletes: %name-devel
Requires: sipxcalllib >= %version
Requires: sipxcommserverlib >= %version
Requires: chkconfig
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
Manages shared appearances for sipx.
%if %{_vendor} == suse
%debug_package
%endif
%prep
%setup -q
%build
%configure @SIPX_RPM_CONFIGURE_OPTIONS@
cp config.log %name.configlog
make %{_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(644,root,root) %{_datadir}/sipxecs/schema/appearance-groups.xsd
%attr(755,root,root) %{_sysconfdir}/init.d/sipxsaa
%attr(755,root,root) %{_bindir}/sipxsaa
%{_datadir}/sipxecs/cfinputs/plugin.d/sipxsaa.cf
%attr(755,root,root) %{_bindir}/sipx-snapshot-saa
%pre
%post
setcap 'CAP_SYS_RESOURCE=+ep' %{_bindir}/sipxsaa
if grep -q :on <<<`/sbin/chkconfig sipxsaa --list 2>&1`; then
/sbin/chkconfig sipxsaa reset
fi