forked from joegen/oss_core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
oss_core.spec.in
197 lines (161 loc) · 4.18 KB
/
oss_core.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#!BuildIgnore: post-build-checks
%if 0%{?fedora} >= 16
%define build_turn 1
%else
%define build_turn 0
%endif
Name: @PACKAGE@
Version: @VERSION@
Release: @PACKAGE_REVISION@
Summary: OS Abstraction and OS Utilities library for OSS modules
License: OSS Commercial License
Group: Development/Libraries
Vendor: OSS Software Solutions
Url: http://www.ossapp.com
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: libmcrypt-devel
Requires: libmcrypt
BuildRequires: libtool-ltdl-devel
Requires: libtool-ltdl
BuildRequires: pcre-devel
BuildRequires: findutils
BuildRequires: db4-devel
Requires: db4
Requires: openssl >= 0.9.7a
Requires: pcre >= 4.5
BuildRequires: iptables
BuildRequires: iproute
BuildRequires: boost-devel
Requires: boost
BuildRequires: v8-devel
Requires: v8
BuildRequires: libpcap-devel
Requires: libpcap
BuildRequires: libdnet-devel
Requires: libdnet
BuildRequires: xmlrpc-c-devel
Requires: xmlrpc-c
Requires: xmlrpc-c-client
Requires: xmlrpc-c-client++
Requires: xmlrpc-c-c++
BuildRequires: libevent-devel
Requires: libevent
BuildRequires: poco-devel
Requires: poco-crypto
Requires: poco-data
Requires: poco-foundation
Requires: poco-mysql
Requires: poco-net
Requires: poco-netssl
Requires: poco-odbc
Requires: poco-pagecompiler
Requires: poco-sqlite
Requires: poco-util
Requires: poco-xml
Requires: poco-zip
BuildRequires: libconfig-devel
Requires: libconfig
BuildRequires: hiredis-devel
Requires: hiredis
BuildRequires: gtest-devel
Requires: gtest
# NOTE: If you add -devel package consider adding it to
# oss_core-devel - Requires so packages building against oss_core do not
# have to respecify list
Source: %name-%version.tar.gz
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
oss_core is a high level library implementation of a SIP B2BUA
The library currently provides classes that
encapsulate functions and operations for:
* SIP ABNF Parser
* SIP Finite State Machines
* SIP B2B User Agent
* Java Script Engine using Google V8
* SIP Over Websockets
* STUN/TURN server
* RTP Proxy
* CARP High Availability
%if %{_vendor} == suse
%debug_package
%endif
# Install header files
%package devel
Requires: %name
Group: Development/Libraries
Vendor: OSS Software Solutions
Summary: Header files for %name
Requires: openssl-devel
Requires: libmcrypt-devel
Requires: libtool-ltdl-devel
Requires: pcre-devel
Requires: db4-devel
Requires: libevent-devel
Requires: boost-devel
Requires: v8-devel
Requires: libpcap-devel
Requires: libdnet-devel
Requires: xmlrpc-c-devel
Requires: poco-devel
Requires: libconfig-devel
Requires: hiredis-devel
Requires: gtest-devel
%description devel
oss_core is a high level library implementation of a SIP B2BUA
The library currently provides classes that
encapsulate functions and operations for:
* SIP ABNF Parser
* SIP Finite State Machines
* B2BUA
* Java Script Engine using Google V8
* SIP Over Websockets
* STUN/TURN server
* RTP Proxy
* CARP High Availability
%prep
%setup -q
# suse and obs build system
mv %{_builddir}/%name-%version/%name-rpmlintrc %{_sourcedir}
%build
autoreconf -if
%if %{build_turn}
%configure @OSSLIBS_RPM_CONFIGURE_OPTIONS@
%else
%configure @OSSLIBS_RPM_CONFIGURE_OPTIONS@ --enable-turn
%endif
cp config.log %name.configlog
make %{_smp_mflags} all
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CONTRIBUTORS README NEWS TODO ChangeLog %name.configlog
%attr(755,root,root) %{_bindir}/oss_core_unit_test
%attr(755,root,root) %{_bindir}/oss_core
%attr(755,root,root) %{_bindir}/oss_carp
%attr(755,root,root) %{_bindir}/oss_garp
%attr(755,root,root) %{_libdir}/liboss_core.so*
%attr(755,root,root) %{_libdir}/liboss_carp.so*
%if %{build_turn}
%attr(755,root,root) %{_libdir}/liboss_turn.so*
%endif
%files devel
%defattr(644,root,root,755)
%{_libdir}/liboss_core.la
%{_libdir}/liboss_core.a
%{_libdir}/liboss_carp.la
%{_libdir}/liboss_carp.a
%if %{build_turn}
%attr(755,root,root) %{_libdir}/liboss_turn.la
%attr(755,root,root) %{_libdir}/liboss_turn.a
%endif
%dir %attr(755,root,root) %{_includedir}/OSS
%{_includedir}/OSS/*
%post