]> git.pld-linux.org Git - packages/sofia-sip.git/blame - sofia-sip.spec
- rewritten
[packages/sofia-sip.git] / sofia-sip.spec
CommitLineData
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
7Summary: Sofia SIP User-Agent library
8Name: sofia-sip
9Version: 1.11.4
10Release: 1
11License: LGPL 2.1
12Group: Libraries
13URL: http://sf.net/projects/sofia-sip
14Source0: %{name}-%{version}.tar.gz
15%if %{with doxygen}
16BuildRequires: doxygen >= 1.3.4
17BuildRequires: graphviz >= 1.9
18%endif
19%{?with_openssl:BuildRequires: openssl-devel >= 0.9.7}
20%if %{with sigcomp}
21BuildRequires: sofia-sigcomp-devel >= 2.5.0
22Requires: sofia-sigcomp >= 2.5.0
23%endif
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define _includedir %{_prefix}/include/sofia-sip
b0b9b3c9 27
c16920ff
AF
28%description
29Sofia SIP is a RFC-3261-compliant library for SIP user agents and
30other network elements.
b0b9b3c9 31
c16920ff
AF
32%package devel
33Summary: Sofia-SIP Development Package
34Group: Development/Libraries
35Requires: %{name} = %{version}-%{release}
b0b9b3c9 36
c16920ff
AF
37%description devel
38Development package for Sofia SIP UA library.
b0b9b3c9 39
c16920ff
AF
40%package static
41Summary: Sofia-SIP Development Package - static library
42Group: Development/Libraries
43Requires: %{name}-devel = %{version}-%{release}
44
45%description static
46Static library for Sofia SIP UA library.
47
48%package utils
49Summary: Sofia-SIP utils
50Group: ?
51Requires: sofia-sip = %{version}-%{release}
52
53%description utils
54Command 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
69rm -rf $RPM_BUILD_ROOT
c16920ff
AF
70%{__make} install \
71 DESTDIR=$RPM_BUILD_ROOT
72rm $RPM_BUILD_ROOT/%{_bindir}/addrinfo
b0b9b3c9
AF
73
74%clean
75rm -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
This page took 0.071693 seconds and 4 git commands to generate.