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.UTF-8): Biblioteka agenta użytkownika Sofia SIP
15 Source0: http://dl.sourceforge.net/sofia-sip/%{name}-%{version}.tar.gz
16 # Source0-md5: 9e07fde3ad2009e44d1100ca3950d02b
17 URL: http://sf.net/projects/sofia-sip/
19 BuildRequires: doxygen >= 1.3.4
20 BuildRequires: graphviz >= 1.9
22 %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7}
24 BuildRequires: sofia-sigcomp-devel >= 2.5.0
25 Requires: sofia-sigcomp >= 2.5.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Sofia SIP is a RFC-3261-compliant library for SIP user agents and
31 other network elements.
33 %description -l pl.UTF-8
34 Sofia SIP to zgodna z RFC-3261 biblioteka dla agentów użytkownika SIP
35 i innych elementów sieciowych.
38 Summary: Sofia-SIP Development Package
39 Summary(pl.UTF-8): Pakiet programistyczny Sofia-SIP
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 Development package for Sofia SIP UA library.
46 %description devel -l pl.UTF-8
47 Pakiet programistyczny dla biblioteki Sofia SIP UA.
50 Summary: Sofia-SIP Development Package - static library
51 Summary(pl.UTF-8): Statyczna biblioteka Sofia-SIP
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static library for Sofia SIP UA library.
58 %description static -l pl.UTF-8
59 Statyczna biblioteka Sofia SIP UA.
62 Summary: Sofia-SIP utils
63 Summary(pl.UTF-8): Narzędzia Sofia-SIP
64 Group: Networking/Utilities
65 Requires: %{name} = %{version}-%{release}
68 Command line utilities for Sofia SIP UA library.
70 %description utils -l pl.UTF-8
71 Działające z linii poleceń narzędzia do biblioteki Sofia SIP UA.
78 --with%{!?with_openssl:out}-openssl \
79 --with%{!?with_sigcomp:out}-sigcomp
82 %{?with_check:%{__make} check}
83 %{?with_doxygen:%{__make} check} # ???
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 rm $RPM_BUILD_ROOT%{_bindir}/addrinfo
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc AUTHORS COPYRIGHTS README RELEASE ChangeLog
102 %attr(755,root,root) %{_libdir}/libsofia-sip-ua*.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libsofia-sip-ua-glib.so.3
104 %attr(755,root,root) %ghost %{_libdir}/libsofia-sip-ua.so.0
105 %{_datadir}/sofia-sip
108 %defattr(644,root,root,755)
109 %doc TODO README.developers %{?with_doxygen:docs/*}
110 %attr(755,root,root) %{_libdir}/lib*.so
113 %{_pkgconfigdir}/*.pc
116 %defattr(644,root,root,755)
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/*