3 %bcond_without static_libs # static library
5 Summary: Extensible Binary Meta Language access library
6 Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego
12 Source0: https://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.xz
13 # Source0-md5: 576ca1b6d2661f328a42192124135e86
14 URL: https://www.matroska.org/
15 BuildRequires: cmake >= 3.1.2
16 BuildRequires: libebml-devel >= 1.4.3
17 BuildRequires: libstdc++-devel >= 6:5
18 BuildRequires: pkgconfig
19 BuildRequires: rpmbuild(macros) >= 1.605
20 BuildRequires: tar >= 1:1.22
22 Requires: libebml >= 1.4.3
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Matroska is an extensible open standard Audio/Video container format,
27 aiming to become the standard of Multimedia Container Formats one day.
28 It is based on EBML (Extensible Binary Meta Language), a kind of
29 binary version of XML. This way the significant advantages in terms of
30 future format extensibility are gained without breaking file support
33 %description -l pl.UTF-8
34 Matroska to rozszerzalny otwarty format kodowania dźwięku i obrazu,
35 dążący do stania się pewnego dnia standardem formatów zawierających
36 multimedia. Jest on oparty na EBML (rozszerzalnym metajęzyku
37 binarnym), binarnym odpowiedniku XML-a. W ten sposób ma on przewagę
38 nad innymi formatami pod względem przyszłej rozszerzalności przy
39 jednoczesnym zachowaniu kompatybilności wstecz.
42 Summary: Header files for matroska library
43 Summary(pl.UTF-8): Nagłówki dla biblioteki matroska
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: libebml-devel >= 1.4.3
47 Requires: libstdc++-devel >= 6:4.7
50 Header files for matroska library.
52 %description devel -l pl.UTF-8
53 Nagłówki dla biblioteki matroska.
56 Summary: Static version of matroska library
57 Summary(pl.UTF-8): Statyczna wersja biblioteki matroska
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static version of matroska library.
64 %description static -l pl.UTF-8
65 Statyczna wersja biblioteki matroska.
71 # .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
72 %if %{with static_libs}
73 install -d build-static
76 -DBUILD_SHARED_LIBS:BOOL=OFF \
77 -DCMAKE_INSTALL_INCLUDEDIR=include \
78 -DCMAKE_INSTALL_LIBDIR=%{_lib}
87 -DCMAKE_INSTALL_INCLUDEDIR=include \
88 -DCMAKE_INSTALL_LIBDIR=%{_lib}
93 rm -rf $RPM_BUILD_ROOT
95 %if %{with static_libs}
96 %{__make} -C build-static install \
97 DESTDIR=$RPM_BUILD_ROOT
100 %{__make} -C build install \
101 DESTDIR=$RPM_BUILD_ROOT
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc NEWS.md README.md
112 %attr(755,root,root) %{_libdir}/libmatroska.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libmatroska.so.7
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libmatroska.so
118 %{_includedir}/matroska
119 %{_pkgconfigdir}/libmatroska.pc
120 %{_libdir}/cmake/Matroska
122 %if %{with static_libs}
124 %defattr(644,root,root,755)
125 %{_libdir}/libmatroska.a