forked from SIPfoundry/legacy-sipxecs
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsipxtacklib.spec.in
111 lines (91 loc) · 3.37 KB
/
sipxtacklib.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Name: @PACKAGE@
Version: @VERSION@
Release: @PACKAGE_REVISION@
Summary: This project provides an RFC 3261, 3263 complient SIP stack
License: Pingtel Commercial License
Group: Development/Libraries
Vendor: Pingtel Corp.
Url: http://www.pingtel.com
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: cppunit-devel
BuildRequires: pcre-devel >= 4.5
BuildRequires: sipxportlib-devel >= %version
Requires: sipxportlib >= %version
Source: %name-%version.tar.gz
%if 0%{?opensuse_bs}
Source100: %name-rpmlintrc
%endif
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
This project provides an RFC 3261, 3263 compliant SIP stack. This
stack is built upon a modest foot print HTTP stack. Both the SIP and
HTTP stack are intended to be usable in embedded systems. However they
are fully functional (i.e. there were no compromises made in
functionality to achieve the ability to embed the stacks). The
primary interface to the SIP stack is through the SipUserAgent
class. This project depends upon the sipXportLib OS abstraction layer.
%if %{_vendor} == suse
%debug_package
%endif
# Install header files
%package devel
Requires: %name
Requires: sipxportlib-devel >= %version
Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name
%description devel
This project provides an RFC 3261, 3263 complient SIP stack. This
stack is built upon a modest foot print HTTP stack. Both the SIP and
HTTP stack are intended to be usable in embedded systems. However they
are fully functional (i.e. there where no compromises made to in
functionality to achieve the ability to embed the stacks.). The
primary interface to the SIP stack it through the SipUserAgent
class. This project depends upon the sipXportLib OS abstraction layer.
This package contains the necessary header files and static libraries
helpful to build projects from the sipX library
%prep
%setup -q
# suse and obs build system
mv %{_builddir}/%name-%version/%name-rpmlintrc %{_sourcedir}
%build
%configure @SIPX_RPM_CONFIGURE_OPTIONS@
cp config.log %name.configlog
make %{_smp_mflags} all
%install
# makeinstall RPM macro doesn't leverage DESTDIR but instead overrides
# libdir, bindir, etc just for make install. This not copesetic w/how
# our makefiles are built, they'd rather preserve libdir, and use
# DESTDIR when copying/moving/creating files. The approach we're taking
# is quite standard, so it's surprising RPM's makeinstall macro is
# the way it is.
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README ChangeLog %name.configlog
%docdir doc/license
%dir %attr(755,root,root) %{_datadir}/sipxecs
%dir %attr(755,root,root) %{_datadir}/sipxecs/schema
%attr(755,root,root) %{_bindir}/dialogdisplay
%attr(755,root,root) %{_bindir}/dialogwatch
%attr(755,root,root) %{_bindir}/siptest
%attr(755,root,root) %{_bindir}/subscribe-dialog-test
%attr(755,root,root) %{_libdir}/libsipXtack.la
%attr(755,root,root) %{_libdir}/libsipXtack.so*
%attr(644,root,root) %{_datadir}/sipxecs/schema/sip_types.xsd
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libsipXtack.a
%dir %attr(755,root,root) %{_includedir}/tapi
%dir %attr(755,root,root) %{_includedir}/resparse
%dir %attr(755,root,root) %{_includedir}/siptest
%{_includedir}/net/*
%{_includedir}/tapi/*
%{_includedir}/resparse/*
%{_includedir}/siptest/*
%changelog