]> git.pld-linux.org Git - packages/ortp.git/blame - ortp.spec
- x32 rebuild
[packages/ortp.git] / ortp.spec
CommitLineData
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 5Summary: RTP/RTCP protocol library
c933e050 6Summary(pl.UTF-8): Biblioteka obsługująca protokół RTP/RTCP
8b404517 7Name: ortp
bdd1776c 8Version: 0.23.0
6d0b3467 9Release: 2
2fa10975 10License: LGPL v2.1+
8b404517 11Group: Libraries
bdd1776c
JB
12#Source0: http://download.savannah.gnu.org/releases/linphone/ortp/sources/%{name}-%{version}.tar.gz
13Source0: http://download.savannah.gnu.org/releases/linphone/ortp/%{name}-%{version}.tar.gz
14# Source0-md5: fb833cc7a66ec1a0c1b75016130e7e6d
2fa10975 15Patch0: %{name}-i486.patch
36d0e365
JB
16Patch1: %{name}-libssl-not-required.patch
17URL: http://www.linphone.org/eng/documentation/dev/ortp.html
c298ce1a 18BuildRequires: autoconf >= 2.50
8b404517 19BuildRequires: automake
bcad2e46 20BuildRequires: doxygen
36d0e365 21BuildRequires: libtool >= 2:2.0
bdd1776c 22%{?with_zrtp:BuildRequires: libzrtpcpp-core-devel >= 4.0.0}
7ab64e40 23BuildRequires: openssl-devel
cf9fbc4b 24BuildRequires: pkgconfig
36d0e365 25BuildRequires: srtp-devel
8b404517
AM
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
c298ce1a 28%define specflags -fno-strict-aliasing
09c28e20 29
8b404517 30%description
36d0e365 31ortp is a library for handling RTP protocol (RFC 3550).
8b404517 32
381531ea 33%description -l pl.UTF-8
36d0e365 34ortp to biblioteka obsługująca protokół RTP (RFC 3550).
8b404517
AM
35
36%package devel
37Summary: Header files to develop applications using ortp
c933e050 38Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji używających ortp
8b404517
AM
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
bdd1776c 41%{?with_zrtp:Requires: libzrtpcpp-core-devel >= 4.0.0}
7ab64e40 42Requires: openssl-devel
36d0e365 43Requires: srtp-devel
8b404517
AM
44
45%description devel
46Header files for the ortp library.
47
381531ea
JR
48%description devel -l pl.UTF-8
49Pliki nagłówkowe dla biblioteki ortp.
8b404517
AM
50
51%package static
52Summary: Static ortp library
c933e050 53Summary(pl.UTF-8): Statyczna biblioteka ortp
8b404517
AM
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
56
57%description static
58Static ortp library.
59
381531ea 60%description static -l pl.UTF-8
8b404517
AM
61Statyczna 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
89rm -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 97rm -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
This page took 0.083485 seconds and 4 git commands to generate.