3 %bcond_without static_libs # Static library
5 Summary: RTP/RTCP protocol library
6 Summary(pl.UTF-8): Biblioteka obsługująca protokół RTP/RTCP
12 #Source0Download: https://gitlab.linphone.org/BC/public/ortp/tags
13 Source0: https://gitlab.linphone.org/BC/public/ortp/-/archive/%{version}/%{name}-%{version}.tar.bz2
14 # Source0-md5: 33df5f50a6ce40cc114c1393a30959b7
15 Patch0: %{name}-am.patch
16 URL: http://www.linphone.org/technical-corner/ortp
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 BuildRequires: bctoolbox-devel
20 BuildRequires: doxygen
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:2.0
23 BuildRequires: openssl-devel
24 BuildRequires: pkgconfig
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define specflags -fno-strict-aliasing
30 ortp is a library for handling RTP protocol (RFC 3550).
32 %description -l pl.UTF-8
33 ortp to biblioteka obsługująca protokół RTP (RFC 3550).
36 Summary: Header files to develop applications using ortp
37 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji używających ortp
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: libstdc++-devel
41 Requires: openssl-devel
44 Header files for the ortp library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe dla biblioteki ortp.
50 Summary: Static ortp library
51 Summary(pl.UTF-8): Statyczna biblioteka ortp
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
58 %description static -l pl.UTF-8
59 Statyczna biblioteka ortp.
62 Summary: API documentation for ortp library
63 Summary(pl.UTF-8): Dokumentacja API biblioteki ortp
65 %if "%{_rpmversion}" >= "4.6"
70 API documentation for ortp library.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki ortp.
86 --disable-silent-rules \
88 %if "%{_lib}" == "lib64"
89 --enable-mode64bit=yes \
91 --enable-mode64bit=no \
94 %{?with_static_libs:--enable-static}
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
104 # obsoleted by pkg-config
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libortp.la
108 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp-1.0.1
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %doc AUTHORS.md CHANGELOG.md README.md
119 %attr(755,root,root) %{_libdir}/libortp.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libortp.so.13
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libortp.so
126 %{_pkgconfigdir}/ortp.pc
128 %if %{with static_libs}
130 %defattr(644,root,root,755)
135 %defattr(644,root,root,755)