]>
Commit | Line | Data |
---|---|---|
36d0e365 JB |
1 | # |
2 | # Conditional build: | |
d51426f5 | 3 | %bcond_without static_libs # Static library |
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 |
dd31993f | 8 | Version: 4.5.15 |
d51426f5 | 9 | Release: 1 |
aaba3fdc | 10 | License: GPL v3+ |
8b404517 | 11 | Group: Libraries |
aaba3fdc JB |
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 | |
dd31993f | 14 | # Source0-md5: e03716372f79b5fdcd1c5e9c3918fcde |
aaba3fdc | 15 | Patch0: %{name}-am.patch |
dd31993f | 16 | Patch1: %{name}-pc.patch |
aaba3fdc | 17 | URL: http://www.linphone.org/technical-corner/ortp |
dd31993f JB |
18 | BuildRequires: bctoolbox-devel >= 0.2.0 |
19 | BuildRequires: cmake >= 3.1 | |
bcad2e46 | 20 | BuildRequires: doxygen |
aaba3fdc | 21 | BuildRequires: libstdc++-devel |
7ab64e40 | 22 | BuildRequires: openssl-devel |
cf9fbc4b | 23 | BuildRequires: pkgconfig |
dd31993f JB |
24 | BuildRequires: rpm-build >= 4.6 |
25 | BuildRequires: rpmbuild(macros) >= 1.605 | |
26 | Requires: bctoolbox >= 0.2.0 | |
8b404517 AM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
c298ce1a | 29 | %define specflags -fno-strict-aliasing |
09c28e20 | 30 | |
8b404517 | 31 | %description |
36d0e365 | 32 | ortp is a library for handling RTP protocol (RFC 3550). |
8b404517 | 33 | |
381531ea | 34 | %description -l pl.UTF-8 |
36d0e365 | 35 | ortp to biblioteka obsługująca protokół RTP (RFC 3550). |
8b404517 AM |
36 | |
37 | %package devel | |
38 | Summary: Header files to develop applications using ortp | |
c933e050 | 39 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji używających ortp |
8b404517 AM |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
dd31993f | 42 | Requires: bctoolbox-devel >= 0.2.0 |
aaba3fdc | 43 | Requires: libstdc++-devel |
7ab64e40 | 44 | Requires: openssl-devel |
8b404517 AM |
45 | |
46 | %description devel | |
47 | Header files for the ortp library. | |
48 | ||
381531ea JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe dla biblioteki ortp. | |
8b404517 AM |
51 | |
52 | %package static | |
53 | Summary: Static ortp library | |
c933e050 | 54 | Summary(pl.UTF-8): Statyczna biblioteka ortp |
8b404517 AM |
55 | Group: Development/Libraries |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static ortp library. | |
60 | ||
381531ea | 61 | %description static -l pl.UTF-8 |
8b404517 AM |
62 | Statyczna biblioteka ortp. |
63 | ||
ea9d279d JB |
64 | %package apidocs |
65 | Summary: API documentation for ortp library | |
66 | Summary(pl.UTF-8): Dokumentacja API biblioteki ortp | |
67 | Group: Documentation | |
ea9d279d | 68 | BuildArch: noarch |
ea9d279d JB |
69 | |
70 | %description apidocs | |
71 | API documentation for ortp library. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja 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) | |
85 | install -d build | |
86 | cd build | |
87 | %cmake .. \ | |
88 | %{!?with_static_libs:-DENABLE_STATIC=NO} \ | |
89 | -DENABLE_STRICT=NO | |
8b404517 AM |
90 | %{__make} |
91 | ||
92 | %install | |
93 | rm -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 | 107 | rm -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} |