]>
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) | |
72e49eda | 6 | %bcond_with sigcomp # with Sofia SigComp [Nokia proprietary?] |
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 |
0ea6c4f0 CM |
11 | Version: 1.12.11 |
12 | Release: 1 | |
72e49eda | 13 | License: LGPL v2.1+ |
c16920ff | 14 | Group: Libraries |
c3311aa5 | 15 | Source0: http://downloads.sourceforge.net/sofia-sip/%{name}-%{version}.tar.gz |
0ea6c4f0 | 16 | # Source0-md5: f3582c62080eeecd3fa4cd5d4ccb4225 |
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 |
72e49eda | 22 | BuildRequires: glib2-devel >= 2.0 |
35207948 | 23 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7} |
c3311aa5 | 24 | BuildRequires: pkgconfig |
c16920ff | 25 | %if %{with sigcomp} |
35207948 JB |
26 | BuildRequires: sofia-sigcomp-devel >= 2.5.0 |
27 | Requires: sofia-sigcomp >= 2.5.0 | |
c16920ff AF |
28 | %endif |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
c3311aa5 | 31 | %undefine __cxx |
32 | ||
c16920ff AF |
33 | %description |
34 | Sofia SIP is a RFC-3261-compliant library for SIP user agents and | |
35 | other network elements. | |
b0b9b3c9 | 36 | |
0ada2c95 JR |
37 | %description -l pl.UTF-8 |
38 | Sofia SIP to zgodna z RFC-3261 biblioteka dla agentów użytkownika SIP | |
39 | i innych elementów sieciowych. | |
35207948 JB |
40 | |
41 | %package devel | |
b074073b | 42 | Summary: Sofia-SIP Development Package |
a65ea931 | 43 | Summary(pl.UTF-8): Pakiet programistyczny Sofia-SIP |
b074073b | 44 | Group: Development/Libraries |
c16920ff | 45 | Requires: %{name} = %{version}-%{release} |
72e49eda JB |
46 | Requires: glib2-devel >= 2.0 |
47 | %{?with_openssl:Requires: openssl-devel >= 0.9.7} | |
b0b9b3c9 | 48 | |
35207948 | 49 | %description devel |
c16920ff | 50 | Development package for Sofia SIP UA library. |
b0b9b3c9 | 51 | |
0ada2c95 | 52 | %description devel -l pl.UTF-8 |
35207948 JB |
53 | Pakiet programistyczny dla biblioteki Sofia SIP UA. |
54 | ||
55 | %package static | |
b074073b | 56 | Summary: Sofia-SIP Development Package - static library |
a65ea931 | 57 | Summary(pl.UTF-8): Statyczna biblioteka Sofia-SIP |
b074073b | 58 | Group: Development/Libraries |
c16920ff AF |
59 | Requires: %{name}-devel = %{version}-%{release} |
60 | ||
35207948 | 61 | %description static |
c16920ff AF |
62 | Static library for Sofia SIP UA library. |
63 | ||
0ada2c95 | 64 | %description static -l pl.UTF-8 |
35207948 JB |
65 | Statyczna biblioteka Sofia SIP UA. |
66 | ||
67 | %package utils | |
b074073b | 68 | Summary: Sofia-SIP utils |
a65ea931 | 69 | Summary(pl.UTF-8): Narzędzia Sofia-SIP |
b074073b | 70 | Group: Networking/Utilities |
35207948 | 71 | Requires: %{name} = %{version}-%{release} |
c16920ff | 72 | |
35207948 | 73 | %description utils |
c16920ff | 74 | Command line utilities for Sofia SIP UA library. |
b0b9b3c9 | 75 | |
0ada2c95 JR |
76 | %description utils -l pl.UTF-8 |
77 | Działające z linii poleceń narzędzia do biblioteki Sofia SIP UA. | |
35207948 | 78 | |
b0b9b3c9 | 79 | %prep |
c16920ff | 80 | %setup -q |
b0b9b3c9 AF |
81 | |
82 | %build | |
c16920ff | 83 | %configure \ |
72e49eda JB |
84 | --with-openssl%{!?with_openssl:=no} \ |
85 | --with-sigcomp%{!?with_sigcomp:=no} | |
86 | ||
87 | %{__make} \ | |
88 | SOFIA_SILENT= | |
b074073b | 89 | |
35207948 | 90 | %{?with_check:%{__make} check} |
b0b9b3c9 AF |
91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
35207948 | 94 | |
c16920ff AF |
95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT | |
35207948 | 97 | |
72e49eda | 98 | %{__rm} $RPM_BUILD_ROOT{%{_bindir}/addrinfo,%{_mandir}/man1/addrinfo.1} |
b0b9b3c9 AF |
99 | |
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
e80bacc6 PZ |
103 | %post -p /sbin/ldconfig |
104 | %postun -p /sbin/ldconfig | |
105 | ||
b0b9b3c9 | 106 | %files |
c16920ff | 107 | %defattr(644,root,root,755) |
72e49eda JB |
108 | %doc AUTHORS COPYRIGHTS ChangeLog ChangeLog.ext-trees README RELEASE |
109 | %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so.*.*.* | |
24624e9f | 110 | %attr(755,root,root) %ghost %{_libdir}/libsofia-sip-ua.so.0 |
72e49eda JB |
111 | %attr(755,root,root) %{_libdir}/libsofia-sip-ua-glib.so.*.*.* |
112 | %attr(755,root,root) %ghost %{_libdir}/libsofia-sip-ua-glib.so.3 | |
1d9e62ab | 113 | %{_datadir}/sofia-sip |
b0b9b3c9 AF |
114 | |
115 | %files devel | |
c16920ff | 116 | %defattr(644,root,root,755) |
35207948 | 117 | %doc TODO README.developers %{?with_doxygen:docs/*} |
72e49eda JB |
118 | %attr(755,root,root) %{_libdir}/libsofia-sip-ua.so |
119 | %attr(755,root,root) %{_libdir}/libsofia-sip-ua-glib.so | |
120 | %{_libdir}/libsofia-sip-ua.la | |
121 | %{_libdir}/libsofia-sip-ua-glib.la | |
122 | %{_includedir}/sofia-sip-1.12 | |
123 | %{_pkgconfigdir}/sofia-sip-ua.pc | |
124 | %{_pkgconfigdir}/sofia-sip-ua-glib.pc | |
c16920ff AF |
125 | |
126 | %files static | |
127 | %defattr(644,root,root,755) | |
72e49eda JB |
128 | %{_libdir}/libsofia-sip-ua.a |
129 | %{_libdir}/libsofia-sip-ua-glib.a | |
b0b9b3c9 AF |
130 | |
131 | %files utils | |
c16920ff | 132 | %defattr(644,root,root,755) |
72e49eda JB |
133 | %attr(755,root,root) %{_bindir}/localinfo |
134 | %attr(755,root,root) %{_bindir}/sip-date | |
135 | %attr(755,root,root) %{_bindir}/sip-dig | |
136 | %attr(755,root,root) %{_bindir}/sip-options | |
137 | %attr(755,root,root) %{_bindir}/stunc | |
138 | %{_mandir}/man1/localinfo.1* | |
139 | %{_mandir}/man1/sip-date.1* | |
140 | %{_mandir}/man1/sip-dig.1* | |
141 | %{_mandir}/man1/sip-options.1* | |
142 | %{_mandir}/man1/stunc.1* |