]> git.pld-linux.org Git - packages/ortp.git/blame - ortp.spec
- updated to 4.5.15, switched to cmake (note: new soname)
[packages/ortp.git] / ortp.spec
CommitLineData
36d0e365
JB
1#
2# Conditional build:
d51426f5 3%bcond_without static_libs # Static library
36d0e365 4#
8b404517 5Summary: RTP/RTCP protocol library
c933e050 6Summary(pl.UTF-8): Biblioteka obsługująca protokół RTP/RTCP
8b404517 7Name: ortp
dd31993f 8Version: 4.5.15
d51426f5 9Release: 1
aaba3fdc 10License: GPL v3+
8b404517 11Group: Libraries
aaba3fdc
JB
12#Source0Download: https://gitlab.linphone.org/BC/public/ortp/tags
13Source0: https://gitlab.linphone.org/BC/public/ortp/-/archive/%{version}/%{name}-%{version}.tar.bz2
dd31993f 14# Source0-md5: e03716372f79b5fdcd1c5e9c3918fcde
aaba3fdc 15Patch0: %{name}-am.patch
dd31993f 16Patch1: %{name}-pc.patch
aaba3fdc 17URL: http://www.linphone.org/technical-corner/ortp
dd31993f
JB
18BuildRequires: bctoolbox-devel >= 0.2.0
19BuildRequires: cmake >= 3.1
bcad2e46 20BuildRequires: doxygen
aaba3fdc 21BuildRequires: libstdc++-devel
7ab64e40 22BuildRequires: openssl-devel
cf9fbc4b 23BuildRequires: pkgconfig
dd31993f
JB
24BuildRequires: rpm-build >= 4.6
25BuildRequires: rpmbuild(macros) >= 1.605
26Requires: bctoolbox >= 0.2.0
8b404517
AM
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
c298ce1a 29%define specflags -fno-strict-aliasing
09c28e20 30
8b404517 31%description
36d0e365 32ortp is a library for handling RTP protocol (RFC 3550).
8b404517 33
381531ea 34%description -l pl.UTF-8
36d0e365 35ortp to biblioteka obsługująca protokół RTP (RFC 3550).
8b404517
AM
36
37%package devel
38Summary: Header files to develop applications using ortp
c933e050 39Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji używających ortp
8b404517
AM
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
dd31993f 42Requires: bctoolbox-devel >= 0.2.0
aaba3fdc 43Requires: libstdc++-devel
7ab64e40 44Requires: openssl-devel
8b404517
AM
45
46%description devel
47Header files for the ortp library.
48
381531ea
JR
49%description devel -l pl.UTF-8
50Pliki nagłówkowe dla biblioteki ortp.
8b404517
AM
51
52%package static
53Summary: Static ortp library
c933e050 54Summary(pl.UTF-8): Statyczna biblioteka ortp
8b404517
AM
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static ortp library.
60
381531ea 61%description static -l pl.UTF-8
8b404517
AM
62Statyczna biblioteka ortp.
63
ea9d279d
JB
64%package apidocs
65Summary: API documentation for ortp library
66Summary(pl.UTF-8): Dokumentacja API biblioteki ortp
67Group: Documentation
ea9d279d 68BuildArch: noarch
ea9d279d
JB
69
70%description apidocs
71API documentation for ortp library.
72
73%description apidocs -l pl.UTF-8
74Dokumentacja API biblioteki ortp.
75
8b404517 76%prep
aaba3fdc
JB
77%setup -q
78%patch0 -p1
dd31993f 79%patch1 -p1
8b404517
AM
80
81%build
dd31993f
JB
82# use cmake instead of autotools:
83# - to get cmake target files for other linphone projects
84# - configure.ac seems outdated (version 1.0.1, soname 13)
85install -d build
86cd build
87%cmake .. \
88 %{!?with_static_libs:-DENABLE_STATIC=NO} \
89 -DENABLE_STRICT=NO
8b404517
AM
90%{__make}
91
92%install
93rm -rf $RPM_BUILD_ROOT
bf9e2750 94
dd31993f 95%{__make} -C build install \
bf9e2750 96 DESTDIR=$RPM_BUILD_ROOT
8b404517 97
ea9d279d 98# packaged as %doc
dd31993f
JB
99%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp-.
100# packaged as %doc in -apidocs
101%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp-4.5.0
102
103# disable completeness check incompatible with split packaging
104%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' $RPM_BUILD_ROOT%{_libdir}/cmake/ortp/ortpTargets.cmake
ea9d279d 105
8b404517 106%clean
bdf4dd07 107rm -rf $RPM_BUILD_ROOT
8b404517
AM
108
109%post -p /sbin/ldconfig
110%postun -p /sbin/ldconfig
111
112%files
113%defattr(644,root,root,755)
aaba3fdc 114%doc AUTHORS.md CHANGELOG.md README.md
dd31993f 115%attr(755,root,root) %{_libdir}/libortp.so.15
8b404517
AM
116
117%files devel
118%defattr(644,root,root,755)
c298ce1a 119%attr(755,root,root) %{_libdir}/libortp.so
8b404517 120%{_includedir}/ortp
c298ce1a 121%{_pkgconfigdir}/ortp.pc
dd31993f 122%{_libdir}/cmake/ortp
8b404517 123
d51426f5 124%if %{with static_libs}
8b404517
AM
125%files static
126%defattr(644,root,root,755)
c298ce1a 127%{_libdir}/libortp.a
d51426f5 128%endif
ea9d279d
JB
129
130%files apidocs
131%defattr(644,root,root,755)
dd31993f 132%doc build/doc/html/*.{css,html,js,png}
This page took 2.857306 seconds and 4 git commands to generate.