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: 933f56e73f452648d211592762de6389
14 URL: https://www.matroska.org/
15 BuildRequires: cmake >= 3.1.2
16 BuildRequires: libebml-devel >= 1.4.0
17 BuildRequires: libstdc++-devel >= 6:4.7
18 BuildRequires: pkgconfig
19 BuildRequires: rpmbuild(macros) >= 1.605
20 Requires: libebml >= 1.4.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Matroska is an extensible open standard Audio/Video container format,
25 aiming to become the standard of Multimedia Container Formats one day.
26 It is based on EBML (Extensible Binary Meta Language), a kind of
27 binary version of XML. This way the significant advantages in terms of
28 future format extensibility are gained without breaking file support
31 %description -l pl.UTF-8
32 Matroska to rozszerzalny otwarty format kodowania dźwięku i obrazu,
33 dążący do stania się pewnego dnia standardem formatów zawierających
34 multimedia. Jest on oparty na EBML (rozszerzalnym metajęzyku
35 binarnym), binarnym odpowiedniku XML-a. W ten sposób ma on przewagę
36 nad innymi formatami pod względem przyszłej rozszerzalności przy
37 jednoczesnym zachowaniu kompatybilności wstecz.
40 Summary: Header files for matroska library
41 Summary(pl.UTF-8): Nagłówki dla biblioteki matroska
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: libebml-devel >= 1.4.0
45 Requires: libstdc++-devel >= 6:4.7
48 Header files for matroska library.
50 %description devel -l pl.UTF-8
51 Nagłówki dla biblioteki matroska.
54 Summary: Static version of matroska library
55 Summary(pl.UTF-8): Statyczna wersja biblioteki matroska
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static version of matroska library.
62 %description static -l pl.UTF-8
63 Statyczna wersja biblioteki matroska.
69 # .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
70 %if %{with static_libs}
71 install -d build-static
74 -DBUILD_SHARED_LIBS:BOOL=OFF \
75 -DCMAKE_INSTALL_INCLUDEDIR=include \
76 -DCMAKE_INSTALL_LIBDIR=%{_lib}
85 -DCMAKE_INSTALL_INCLUDEDIR=include \
86 -DCMAKE_INSTALL_LIBDIR=%{_lib}
91 rm -rf $RPM_BUILD_ROOT
93 %if %{with static_libs}
94 %{__make} -C build-static install \
95 DESTDIR=$RPM_BUILD_ROOT
98 %{__make} -C build install \
99 DESTDIR=$RPM_BUILD_ROOT
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %defattr(644,root,root,755)
109 %doc ChangeLog README.md
110 %attr(755,root,root) %{_libdir}/libmatroska.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libmatroska.so.7
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libmatroska.so
116 %{_includedir}/matroska
117 %{_pkgconfigdir}/libmatroska.pc
118 %{_libdir}/cmake/Matroska
120 %if %{with static_libs}
122 %defattr(644,root,root,755)
123 %{_libdir}/libmatroska.a