]>
Commit | Line | Data |
---|---|---|
499a8ada JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Matroska2 library for Belledonne Communications projects | |
6 | Summary(pl.UTF-8): Biblioteka Matroska2 do projektów Belledonne Communications | |
7 | Name: bcmatroska2 | |
8 | Version: 0.23 | |
9 | Release: 1 | |
10 | License: BSD | |
11 | Group: Libraries | |
593a4f58 | 12 | # for future releases see https://gitlab.linphone.org/BC/public/bcmatroska2/-/tags |
499a8ada JB |
13 | Source0: https://linphone.org/releases/sources/bcmatroska2/%{name}-%{version}.tar.gz |
14 | # Source0-md5: bc9d6dbdfb9790c10051294cc4293476 | |
15 | URL: https://linphone.org/ | |
16 | BuildRequires: cmake >= 3.0 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Matroska2 library for Belledonne Communications projects. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Biblioteka Matroska2 do projektów Belledonne Communications. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for bcmatroska2 library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bcmatroska2 | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | Obsoletes: matroska-foundation-devel | |
31 | ||
32 | %description devel | |
33 | Header files for bcmatroska2 library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki bcmatroska2. | |
37 | ||
38 | %package static | |
39 | Summary: Static bcmatroska2 library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka bcmatroska2 | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static bcmatroska2 library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka bcmatroska2. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake .. \ | |
57 | %{!?with_static_libs:-DENABLE_STATIC=OFF} | |
58 | ||
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} -C build install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %attr(755,root,root) %{_libdir}/libbcmatroska2.so.*.*.* | |
76 | %attr(755,root,root) %ghost %{_libdir}/libbcmatroska2.so.0 | |
77 | ||
78 | %files devel | |
79 | %defattr(644,root,root,755) | |
80 | %attr(755,root,root) %{_libdir}/libbcmatroska2.so | |
81 | %{_includedir}/corec | |
82 | %{_includedir}/ebml | |
83 | %{_includedir}/matroska | |
84 | %dir %{_datadir}/bcmatroska2 | |
85 | %{_datadir}/bcmatroska2/cmake | |
86 | ||
87 | %if %{with static_libs} | |
88 | %files static | |
89 | %defattr(644,root,root,755) | |
90 | %{_libdir}/libbcmatroska2.a | |
91 | %endif |