1Name:           sofia-sip
2Version:        1.13.4
3Release:        1%{?dist}
4Summary:        Sofia SIP User-Agent library
5
6License:        LGPLv2+
7URL:            https://github.com/freeswitch/sofia-sip
8Source0:        https://files.freeswitch.org/downloads/libs/%{name}-%{version}.tar.gz
9
10BuildRequires:  gcc-c++
11BuildRequires:  openssl-devel >= 0.9.7
12BuildRequires:  glib2-devel >=  2.4
13BuildRequires:  lksctp-tools-devel
14BuildRequires:  autoconf
15BuildRequires:  automake
16BuildRequires:  make
17BuildRequires:  libtool >= 1.5.17
18
19%description
20Sofia SIP is a RFC-3261-compliant library for SIP user agents and
21other network elements.  The Session Initiation Protocol (SIP) is an
22application-layer control (signaling) protocol for creating,
23modifying, and terminating sessions with one or more
24participants. These sessions include Internet telephone calls,
25multimedia distribution, and multimedia conferences.
26
27%package devel
28Summary:        Sofia-SIP Development Package
29Requires:       sofia-sip = %{version}-%{release}
30Requires:       pkgconfig
31
32%description devel
33Development package for Sofia SIP UA library.
34
35%package glib
36Summary:        Glib bindings for Sofia-SIP
37Requires:       sofia-sip = %{version}-%{release}
38
39%description glib
40GLib interface to Sofia SIP User Agent library.
41
42%package glib-devel
43Summary:        Glib bindings for Sofia SIP development files
44Requires:       sofia-sip-glib = %{version}-%{release}
45Requires:       sofia-sip-devel = %{version}-%{release}
46Requires:       pkgconfig
47
48%description  glib-devel
49Development package for Sofia SIP UA Glib library. This package
50includes libraries and include files for developing glib programs
51using Sofia SIP.
52
53%package utils
54Summary:        Sofia-SIP Command Line Utilities
55Requires:       sofia-sip = %{version}-%{release}
56
57%description utils
58Command line utilities for the Sofia SIP UA library.
59
60%prep
61%setup0 -q -n sofia-sip-%{version}%{?work:work%{work}}
62
63
64%build
65./autogen.sh
66%configure --disable-rpath --disable-static --without-doxygen --disable-stun
67make %{?_smp_mflags}
68#make doxygen
69
70%check
71#TPORT_DEBUG=9 TPORT_TEST_HOST=0.0.0.0 make check
72
73%install
74rm -rf %{buildroot}
75make install DESTDIR=%{buildroot}
76find %{buildroot} -name \*.la -delete
77find %{buildroot} -name \*.h.in -delete
78find . -name installdox -delete
79
80%files
81%doc AUTHORS ChangeLog ChangeLog.ext-trees COPYING COPYRIGHTS
82%doc README README.developers RELEASE TODO
83%{_libdir}/libsofia-sip-ua.so.*
84
85%files devel
86#%doc libsofia-sip-ua/docs/html
87%dir %{_includedir}/sofia-sip-1.13
88%dir %{_includedir}/sofia-sip-1.13/sofia-sip
89%{_includedir}/sofia-sip-1.13/sofia-sip/*.h
90%dir %{_includedir}/sofia-sip-1.13/sofia-resolv
91%{_includedir}/sofia-sip-1.13/sofia-resolv/*.h
92%{_libdir}/libsofia-sip-ua.so
93%{_libdir}/pkgconfig/sofia-sip-ua.pc
94%{_datadir}/sofia-sip
95
96%files glib
97%{_libdir}/libsofia-sip-ua-glib.so.*
98
99%files glib-devel
100#%doc libsofia-sip-ua-glib/docs/html
101%{_includedir}/sofia-sip-1.13/sofia-sip/su_source.h
102%{_libdir}/libsofia-sip-ua-glib.so
103%{_libdir}/pkgconfig/sofia-sip-ua-glib.pc
104
105%files utils
106%{_bindir}/*
107#%{_mandir}/man1/*.1*
108
109%changelog
110* Wed Aug 12 2020 FreeSWITCH Project <andrey@freeswitch.com> - 1.13.0-2
111- Fix packaging with glib
112* Tue Jul 28 2020 FreeSWITCH Project <andrey@freeswitch.com> - 1.13.0-1
113- Initial release for the FreeSWITCH Project
114