Skip to content

Commit ca37a2f

Browse files
authored
Merge pull request #10 from freeswitch/spec
Add spec file
2 parents 77729d9 + a920380 commit ca37a2f

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

sofia-sip.spec

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
Name: sofia-sip
2+
Version: 1.12.12
3+
Release: 1%{?dist}
4+
Summary: Sofia SIP User-Agent library
5+
6+
License: LGPLv2+
7+
URL: https://github.com/freeswitch/sofia-sip
8+
Source0: https://files.freeswitch.org/downloads/libs/%{name}-%{version}.tar.gz
9+
10+
BuildRequires: gcc-c++
11+
BuildRequires: openssl-devel >= 0.9.7
12+
BuildRequires: lksctp-tools-devel
13+
14+
%description
15+
Sofia SIP is a RFC-3261-compliant library for SIP user agents and
16+
other network elements. The Session Initiation Protocol (SIP) is an
17+
application-layer control (signaling) protocol for creating,
18+
modifying, and terminating sessions with one or more
19+
participants. These sessions include Internet telephone calls,
20+
multimedia distribution, and multimedia conferences.
21+
22+
%package devel
23+
Summary: Sofia-SIP Development Package
24+
Requires: sofia-sip = %{version}-%{release}
25+
Requires: pkgconfig
26+
27+
%description devel
28+
Development package for Sofia SIP UA library.
29+
30+
%package utils
31+
Summary: Sofia-SIP Command Line Utilities
32+
Requires: sofia-sip = %{version}-%{release}
33+
34+
%description utils
35+
Command line utilities for the Sofia SIP UA library.
36+
37+
%prep
38+
%setup0 -q -n sofia-sip-%{version}%{?work:work%{work}}
39+
40+
41+
%build
42+
./autogen.sh
43+
%configure --disable-rpath --disable-static --with-glib=no --without-doxygen --disable-stun
44+
make %{?_smp_mflags}
45+
#make doxygen
46+
47+
%check
48+
#TPORT_DEBUG=9 TPORT_TEST_HOST=0.0.0.0 make check
49+
50+
%install
51+
rm -rf %{buildroot}
52+
make install DESTDIR=%{buildroot}
53+
cp -a libsofia-sip-ua/nua/*.h %{buildroot}/usr/include/sofia-sip-1.12/
54+
cp -a config.h.in %{buildroot}/usr/include/sofia-sip-1.12/sofia-sip/
55+
cp -a config.h %{buildroot}/usr/include/sofia-sip-1.12/sofia-sip/
56+
find %{buildroot} -name \*.la -delete
57+
find %{buildroot} -name \*.h.in -delete
58+
find . -name installdox -delete
59+
60+
%files
61+
%doc AUTHORS ChangeLog ChangeLog.ext-trees COPYING COPYRIGHTS
62+
%doc README README.developers RELEASE TODO
63+
%{_libdir}/libsofia-sip-ua.so.*
64+
65+
%files devel
66+
#%doc libsofia-sip-ua/docs/html
67+
%dir %{_includedir}/sofia-sip-1.12
68+
%dir %{_includedir}/sofia-sip-1.12/sofia-sip
69+
%{_includedir}/sofia-sip-1.12/sofia-sip/*.h
70+
%{_includedir}/sofia-sip-1.12/*.h
71+
%dir %{_includedir}/sofia-sip-1.12/sofia-resolv
72+
%{_includedir}/sofia-sip-1.12/sofia-resolv/*.h
73+
%{_libdir}/libsofia-sip-ua.so
74+
%{_libdir}/pkgconfig/sofia-sip-ua.pc
75+
%{_datadir}/sofia-sip
76+
77+
%files utils
78+
%{_bindir}/*
79+
#%{_mandir}/man1/*.1*
80+
81+
%changelog
82+
* Tue Jul 28 2020 FreeSWITCH Project <andrey@freeswitch.com> - 1.12.12-1
83+
- Initial release for the FreeSWITCH Project

0 commit comments

Comments
 (0)