]>
Commit | Line | Data |
---|---|---|
35207948 JB |
1 | # |
2 | # Conditional build: | |
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 | |
b0b9b3c9 | 7 | # |
c16920ff | 8 | Summary: Sofia SIP User-Agent library |
a65ea931 | 9 | Summary(pl.UTF-8): Biblioteka agenta użytkownika Sofia SIP |
c16920ff | 10 | Name: sofia-sip |
f762b8d0 | 11 | Version: 1.12.10 |
dd7faa41 | 12 | Release: 2 |
c16920ff AF |
13 | License: LGPL 2.1 |
14 | Group: Libraries | |
35207948 | 15 | Source0: http://dl.sourceforge.net/sofia-sip/%{name}-%{version}.tar.gz |
f762b8d0 | 16 | # Source0-md5: 9e07fde3ad2009e44d1100ca3950d02b |
35207948 | 17 | URL: http://sf.net/projects/sofia-sip/ |
c16920ff | 18 | %if %{with doxygen} |
35207948 JB |
19 | BuildRequires: doxygen >= 1.3.4 |
20 | BuildRequires: graphviz >= 1.9 | |
c16920ff | 21 | %endif |
35207948 | 22 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7} |
c16920ff | 23 | %if %{with sigcomp} |
35207948 JB |
24 | BuildRequires: sofia-sigcomp-devel >= 2.5.0 |
25 | Requires: sofia-sigcomp >= 2.5.0 | |
c16920ff AF |
26 | %endif |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
c16920ff AF |
29 | %description |
30 | Sofia SIP is a RFC-3261-compliant library for SIP user agents and | |
31 | other network elements. | |
b0b9b3c9 | 32 | |
0ada2c95 JR |
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. | |
35207948 JB |
36 | |
37 | %package devel | |
b074073b | 38 | Summary: Sofia-SIP Development Package |
a65ea931 | 39 | Summary(pl.UTF-8): Pakiet programistyczny Sofia-SIP |
b074073b | 40 | Group: Development/Libraries |
c16920ff | 41 | Requires: %{name} = %{version}-%{release} |
b0b9b3c9 | 42 | |
35207948 | 43 | %description devel |
c16920ff | 44 | Development package for Sofia SIP UA library. |
b0b9b3c9 | 45 | |
0ada2c95 | 46 | %description devel -l pl.UTF-8 |
35207948 JB |
47 | Pakiet programistyczny dla biblioteki Sofia SIP UA. |
48 | ||
49 | %package static | |
b074073b | 50 | Summary: Sofia-SIP Development Package - static library |
a65ea931 | 51 | Summary(pl.UTF-8): Statyczna biblioteka Sofia-SIP |
b074073b | 52 | Group: Development/Libraries |
c16920ff AF |
53 | Requires: %{name}-devel = %{version}-%{release} |
54 | ||
35207948 | 55 | %description static |
c16920ff AF |
56 | Static library for Sofia SIP UA library. |
57 | ||
0ada2c95 | 58 | %description static -l pl.UTF-8 |
35207948 JB |
59 | Statyczna biblioteka Sofia SIP UA. |
60 | ||
61 | %package utils | |
b074073b | 62 | Summary: Sofia-SIP utils |
a65ea931 | 63 | Summary(pl.UTF-8): Narzędzia Sofia-SIP |
b074073b | 64 | Group: Networking/Utilities |
35207948 | 65 | Requires: %{name} = %{version}-%{release} |
c16920ff | 66 | |
35207948 | 67 | %description utils |
c16920ff | 68 | Command line utilities for Sofia SIP UA library. |
b0b9b3c9 | 69 | |
0ada2c95 JR |
70 | %description utils -l pl.UTF-8 |
71 | Działające z linii poleceń narzędzia do biblioteki Sofia SIP UA. | |
35207948 | 72 | |
b0b9b3c9 | 73 | %prep |
c16920ff | 74 | %setup -q |
b0b9b3c9 AF |
75 | |
76 | %build | |
c16920ff AF |
77 | %configure \ |
78 | --with%{!?with_openssl:out}-openssl \ | |
b074073b ER |
79 | --with%{!?with_sigcomp:out}-sigcomp |
80 | ||
c16920ff | 81 | %{__make} |
35207948 JB |
82 | %{?with_check:%{__make} check} |
83 | %{?with_doxygen:%{__make} check} # ??? | |
b0b9b3c9 AF |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
35207948 | 87 | |
c16920ff AF |
88 | %{__make} install \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
35207948 JB |
90 | |
91 | rm $RPM_BUILD_ROOT%{_bindir}/addrinfo | |
b0b9b3c9 AF |
92 | |
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
e80bacc6 PZ |
96 | %post -p /sbin/ldconfig |
97 | %postun -p /sbin/ldconfig | |
98 | ||
b0b9b3c9 | 99 | %files |
c16920ff AF |
100 | %defattr(644,root,root,755) |
101 | %doc AUTHORS COPYRIGHTS README RELEASE ChangeLog | |
24624e9f | 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 | |
1d9e62ab | 105 | %{_datadir}/sofia-sip |
b0b9b3c9 AF |
106 | |
107 | %files devel | |
c16920ff | 108 | %defattr(644,root,root,755) |
35207948 | 109 | %doc TODO README.developers %{?with_doxygen:docs/*} |
f88bcca9 PZ |
110 | %attr(755,root,root) %{_libdir}/lib*.so |
111 | %{_libdir}/lib*.la | |
112 | %{_includedir}/* | |
113 | %{_pkgconfigdir}/*.pc | |
c16920ff AF |
114 | |
115 | %files static | |
116 | %defattr(644,root,root,755) | |
f88bcca9 | 117 | %{_libdir}/lib*.a |
b0b9b3c9 AF |
118 | |
119 | %files utils | |
c16920ff | 120 | %defattr(644,root,root,755) |
f88bcca9 | 121 | %attr(755,root,root) %{_bindir}/* |
24624e9f | 122 | %{_mandir}/man1/*.1* |