]>
Commit | Line | Data |
---|---|---|
c16920ff AF |
1 | # Bconds: |
2 | %bcond_with doxygen # Generate documents using doxygen and dot | |
3 | %bcond_with check # Run tests | |
4 | %bcond_without openssl # No OpenSSL (TLS) | |
5 | %bcond_with sigcomp # with Sofia SigComp | |
b0b9b3c9 | 6 | # |
c16920ff AF |
7 | Summary: Sofia SIP User-Agent library |
8 | Name: sofia-sip | |
9 | Version: 1.11.4 | |
10 | Release: 1 | |
11 | License: LGPL 2.1 | |
12 | Group: Libraries | |
13 | URL: http://sf.net/projects/sofia-sip | |
14 | Source0: %{name}-%{version}.tar.gz | |
15 | %if %{with doxygen} | |
16 | BuildRequires: doxygen >= 1.3.4 | |
17 | BuildRequires: graphviz >= 1.9 | |
18 | %endif | |
19 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7} | |
20 | %if %{with sigcomp} | |
21 | BuildRequires: sofia-sigcomp-devel >= 2.5.0 | |
22 | Requires: sofia-sigcomp >= 2.5.0 | |
23 | %endif | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define _includedir %{_prefix}/include/sofia-sip | |
b0b9b3c9 | 27 | |
c16920ff AF |
28 | %description |
29 | Sofia SIP is a RFC-3261-compliant library for SIP user agents and | |
30 | other network elements. | |
b0b9b3c9 | 31 | |
c16920ff AF |
32 | %package devel |
33 | Summary: Sofia-SIP Development Package | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
b0b9b3c9 | 36 | |
c16920ff AF |
37 | %description devel |
38 | Development package for Sofia SIP UA library. | |
b0b9b3c9 | 39 | |
c16920ff AF |
40 | %package static |
41 | Summary: Sofia-SIP Development Package - static library | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-devel = %{version}-%{release} | |
44 | ||
45 | %description static | |
46 | Static library for Sofia SIP UA library. | |
47 | ||
48 | %package utils | |
49 | Summary: Sofia-SIP utils | |
50 | Group: ? | |
51 | Requires: sofia-sip = %{version}-%{release} | |
52 | ||
53 | %description utils | |
54 | Command line utilities for Sofia SIP UA library. | |
b0b9b3c9 AF |
55 | |
56 | %prep | |
c16920ff | 57 | %setup -q |
b0b9b3c9 AF |
58 | |
59 | %build | |
c16920ff AF |
60 | %configure \ |
61 | --with%{!?with_openssl:out}-openssl \ | |
62 | --with%{!?with_sigcomp:out}-sigcomp | |
63 | ||
64 | %{__make} | |
65 | %{?with_check:make check} | |
66 | %{?with_doxygen:make check} | |
b0b9b3c9 AF |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
c16920ff AF |
70 | %{__make} install \ |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | rm $RPM_BUILD_ROOT/%{_bindir}/addrinfo | |
b0b9b3c9 AF |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
c16920ff AF |
78 | %defattr(644,root,root,755) |
79 | %doc AUTHORS COPYRIGHTS README RELEASE ChangeLog | |
80 | %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so.*.* | |
b0b9b3c9 AF |
81 | |
82 | %files devel | |
c16920ff | 83 | %defattr(644,root,root,755) |
b0b9b3c9 | 84 | %doc TODO README.developers |
c16920ff AF |
85 | %{?with_doxygen:docs/*} |
86 | %{_aclocaldir}/*.m4 | |
87 | %{_includedir}/sofia-sip | |
88 | %{_libdir}/sofia | |
89 | %{_libdir}/libsofia-sip-ua.la | |
90 | %{_libdir}/libsofia-sip-ua.so | |
91 | %{_pkgconfigdir}/%{name}-ua.pc | |
92 | ||
93 | %files static | |
94 | %defattr(644,root,root,755) | |
95 | %{_libdir}/libsofia-sip-ua.a | |
b0b9b3c9 AF |
96 | |
97 | %files utils | |
c16920ff AF |
98 | %defattr(644,root,root,755) |
99 | %attr(755,root,root) %{_bindir}/nua_cli | |
100 | %attr(755,root,root) %{_bindir}/localinfo | |
101 | %attr(755,root,root) %{_bindir}/sip-options | |
102 | %attr(755,root,root) %{_bindir}/sip-date |