3 %bcond_with doxygen # Generate documents using doxygen and dot
4 %bcond_with check # Run tests
5 %bcond_without openssl # No OpenSSL (TLS)
6 %bcond_with sigcomp # with Sofia SigComp
8 Summary: Sofia SIP User-Agent library
9 Summary(pl): Biblioteka agenta u¿ytkownika Sofia SIP
15 Source0: http://dl.sourceforge.net/sofia-sip/%{name}-%{version}.tar.gz
16 URL: http://sf.net/projects/sofia-sip/
18 BuildRequires: doxygen >= 1.3.4
19 BuildRequires: graphviz >= 1.9
21 %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7}
23 BuildRequires: sofia-sigcomp-devel >= 2.5.0
24 Requires: sofia-sigcomp >= 2.5.0
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _includedir %{_prefix}/include/sofia-sip
31 Sofia SIP is a RFC-3261-compliant library for SIP user agents and
32 other network elements.
35 Sofia SIP to zgodna z RFC-3261 biblioteka dla agentów u¿ytkownika SIP
36 i innych elementów sieciowych.
39 Summary: Sofia-SIP Development Package
40 Summary(pl): Pakiet programistyczny Sofia-SIP
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Development package for Sofia SIP UA library.
47 %description devel -l pl
48 Pakiet programistyczny dla biblioteki Sofia SIP UA.
51 Summary: Sofia-SIP Development Package - static library
52 Summary(pl): Statyczna biblioteka Sofia-SIP
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static library for Sofia SIP UA library.
59 %description static -l pl
60 Statyczna biblioteka Sofia SIP UA.
63 Summary: Sofia-SIP utils
64 Summary(pl): Narzêdzia Sofia-SIP
65 Group: Networking/Utilities
66 Requires: %{name} = %{version}-%{release}
69 Command line utilities for Sofia SIP UA library.
71 %description utils -l pl
72 Dzia³aj±ce z linii poleceñ narzêdzia do biblioteki Sofia SIP UA.
79 --with%{!?with_openssl:out}-openssl \
80 --with%{!?with_sigcomp:out}-sigcomp
83 %{?with_check:%{__make} check}
84 %{?with_doxygen:%{__make} check} # ???
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 rm $RPM_BUILD_ROOT%{_bindir}/addrinfo
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)
99 %doc AUTHORS COPYRIGHTS README RELEASE ChangeLog
100 %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so.*.*
103 %defattr(644,root,root,755)
104 %doc TODO README.developers %{?with_doxygen:docs/*}
105 %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so
106 %{_libdir}/libsofia-sip-ua.la
108 %{_includedir}/sofia-sip
110 %{_pkgconfigdir}/%{name}-ua.pc
113 %defattr(644,root,root,755)
114 %{_libdir}/libsofia-sip-ua.a
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/nua_cli
119 %attr(755,root,root) %{_bindir}/localinfo
120 %attr(755,root,root) %{_bindir}/sip-options
121 %attr(755,root,root) %{_bindir}/sip-date