]>
Commit | Line | Data |
---|---|---|
36d0e365 JB |
1 | # |
2 | # Conditional build: | |
bdd1776c | 3 | %bcond_without zrtp # ZRTP (RFC 6189: Media Path Key Agreement for Unicast Secure RTP) support |
36d0e365 | 4 | # |
8b404517 | 5 | Summary: RTP/RTCP protocol library |
c933e050 | 6 | Summary(pl.UTF-8): Biblioteka obsługująca protokół RTP/RTCP |
8b404517 | 7 | Name: ortp |
bdd1776c | 8 | Version: 0.23.0 |
6d0b3467 | 9 | Release: 2 |
2fa10975 | 10 | License: LGPL v2.1+ |
8b404517 | 11 | Group: Libraries |
bdd1776c JB |
12 | #Source0: http://download.savannah.gnu.org/releases/linphone/ortp/sources/%{name}-%{version}.tar.gz |
13 | Source0: http://download.savannah.gnu.org/releases/linphone/ortp/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: fb833cc7a66ec1a0c1b75016130e7e6d | |
2fa10975 | 15 | Patch0: %{name}-i486.patch |
36d0e365 JB |
16 | Patch1: %{name}-libssl-not-required.patch |
17 | URL: http://www.linphone.org/eng/documentation/dev/ortp.html | |
c298ce1a | 18 | BuildRequires: autoconf >= 2.50 |
8b404517 | 19 | BuildRequires: automake |
bcad2e46 | 20 | BuildRequires: doxygen |
36d0e365 | 21 | BuildRequires: libtool >= 2:2.0 |
bdd1776c | 22 | %{?with_zrtp:BuildRequires: libzrtpcpp-core-devel >= 4.0.0} |
7ab64e40 | 23 | BuildRequires: openssl-devel |
cf9fbc4b | 24 | BuildRequires: pkgconfig |
36d0e365 | 25 | BuildRequires: srtp-devel |
8b404517 AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
c298ce1a | 28 | %define specflags -fno-strict-aliasing |
09c28e20 | 29 | |
8b404517 | 30 | %description |
36d0e365 | 31 | ortp is a library for handling RTP protocol (RFC 3550). |
8b404517 | 32 | |
381531ea | 33 | %description -l pl.UTF-8 |
36d0e365 | 34 | ortp to biblioteka obsługująca protokół RTP (RFC 3550). |
8b404517 AM |
35 | |
36 | %package devel | |
37 | Summary: Header files to develop applications using ortp | |
c933e050 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji używających ortp |
8b404517 AM |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
bdd1776c | 41 | %{?with_zrtp:Requires: libzrtpcpp-core-devel >= 4.0.0} |
7ab64e40 | 42 | Requires: openssl-devel |
36d0e365 | 43 | Requires: srtp-devel |
8b404517 AM |
44 | |
45 | %description devel | |
46 | Header files for the ortp library. | |
47 | ||
381531ea JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe dla biblioteki ortp. | |
8b404517 AM |
50 | |
51 | %package static | |
52 | Summary: Static ortp library | |
c933e050 | 53 | Summary(pl.UTF-8): Statyczna biblioteka ortp |
8b404517 AM |
54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static ortp library. | |
59 | ||
381531ea | 60 | %description static -l pl.UTF-8 |
8b404517 AM |
61 | Statyczna biblioteka ortp. |
62 | ||
63 | %prep | |
64 | %setup -q | |
2fa10975 | 65 | %patch0 -p1 |
ebb4d213 | 66 | %patch1 -p1 |
8b404517 AM |
67 | |
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
36d0e365 | 72 | %{__autoheader} |
8b404517 AM |
73 | %{__automake} |
74 | %configure \ | |
36d0e365 JB |
75 | --disable-silent-rules \ |
76 | --disable-strict \ | |
77 | --enable-ipv6 \ | |
d4a4ef41 AM |
78 | %if "%{_lib}" == "lib64" |
79 | --enable-mode64bit=yes \ | |
80 | %else | |
81 | --enable-mode64bit=no \ | |
82 | %endif | |
36d0e365 JB |
83 | --enable-static \ |
84 | %{?with_zrtp:--enable-zrtp} | |
85 | ||
8b404517 AM |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
bf9e2750 JB |
90 | |
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
8b404517 | 93 | |
332051ed | 94 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
36d0e365 | 95 | |
8b404517 | 96 | %clean |
bdf4dd07 | 97 | rm -rf $RPM_BUILD_ROOT |
8b404517 AM |
98 | |
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
cf9fbc4b | 104 | %doc AUTHORS ChangeLog NEWS README TODO |
2fa10975 | 105 | %attr(755,root,root) %{_libdir}/libortp.so.*.*.* |
332051ed | 106 | %attr(755,root,root) %ghost %{_libdir}/libortp.so.9 |
8b404517 AM |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
36d0e365 | 110 | %doc doc/html/* |
c298ce1a JB |
111 | %attr(755,root,root) %{_libdir}/libortp.so |
112 | %{_libdir}/libortp.la | |
8b404517 | 113 | %{_includedir}/ortp |
c298ce1a | 114 | %{_pkgconfigdir}/ortp.pc |
8b404517 AM |
115 | |
116 | %files static | |
117 | %defattr(644,root,root,755) | |
c298ce1a | 118 | %{_libdir}/libortp.a |