]>
Commit | Line | Data |
---|---|---|
b6febd90 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
eb417e36 | 5 | Summary: Extensible Binary Meta Language access library |
c898b1eb | 6 | Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego |
eb417e36 | 7 | Name: libmatroska |
c1164438 | 8 | Version: 1.6.3 |
da191166 | 9 | Release: 1 |
58ee65c3 | 10 | License: LGPL v2.1+ |
eb417e36 | 11 | Group: Libraries |
a48d202d | 12 | Source0: https://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.xz |
c1164438 | 13 | # Source0-md5: d3ac01c6b27d99e820351d07d29a089d |
9c4c0812 | 14 | URL: https://www.matroska.org/ |
b6febd90 | 15 | BuildRequires: cmake >= 3.1.2 |
c1164438 | 16 | BuildRequires: libebml-devel >= 1.4.2 |
3dcf4f5a | 17 | BuildRequires: libstdc++-devel >= 6:4.7 |
df9e9bf8 | 18 | BuildRequires: pkgconfig |
b6febd90 | 19 | BuildRequires: rpmbuild(macros) >= 1.605 |
c1164438 | 20 | Requires: libebml >= 1.4.2 |
eb417e36 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
b57b5cf5 JB |
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 | |
29 | in old parsers. | |
ac28d4e4 | 30 | |
6ab1e4ef JR |
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. | |
eb417e36 | 38 | |
39 | %package devel | |
b57b5cf5 | 40 | Summary: Header files for matroska library |
c898b1eb | 41 | Summary(pl.UTF-8): Nagłówki dla biblioteki matroska |
eb417e36 | 42 | Group: Development/Libraries |
0f5a8090 | 43 | Requires: %{name} = %{version}-%{release} |
3dcf4f5a JB |
44 | Requires: libebml-devel >= 1.4.0 |
45 | Requires: libstdc++-devel >= 6:4.7 | |
eb417e36 | 46 | |
47 | %description devel | |
b57b5cf5 | 48 | Header files for matroska library. |
eb417e36 | 49 | |
6ab1e4ef JR |
50 | %description devel -l pl.UTF-8 |
51 | Nagłówki dla biblioteki matroska. | |
eb417e36 | 52 | |
53 | %package static | |
b57b5cf5 | 54 | Summary: Static version of matroska library |
c898b1eb | 55 | Summary(pl.UTF-8): Statyczna wersja biblioteki matroska |
b57b5cf5 | 56 | Group: Development/Libraries |
0f5a8090 | 57 | Requires: %{name}-devel = %{version}-%{release} |
eb417e36 | 58 | |
59 | %description static | |
b57b5cf5 | 60 | Static version of matroska library. |
eb417e36 | 61 | |
6ab1e4ef | 62 | %description static -l pl.UTF-8 |
b57b5cf5 | 63 | Statyczna wersja biblioteki matroska. |
eb417e36 | 64 | |
65 | %prep | |
47663573 | 66 | %setup -q |
eb417e36 | 67 | |
68 | %build | |
b6febd90 JB |
69 | # .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR |
70 | %if %{with static_libs} | |
71 | install -d build-static | |
72 | cd build-static | |
73 | %cmake .. \ | |
74 | -DBUILD_SHARED_LIBS:BOOL=OFF \ | |
75 | -DCMAKE_INSTALL_INCLUDEDIR=include \ | |
76 | -DCMAKE_INSTALL_LIBDIR=%{_lib} | |
77 | ||
78 | %{__make} | |
79 | cd .. | |
80 | %endif | |
81 | ||
82 | install -d build | |
83 | cd build | |
84 | %cmake .. \ | |
85 | -DCMAKE_INSTALL_INCLUDEDIR=include \ | |
86 | -DCMAKE_INSTALL_LIBDIR=%{_lib} | |
df9e9bf8 JB |
87 | |
88 | %{__make} | |
eb417e36 | 89 | |
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
b57b5cf5 | 92 | |
b6febd90 JB |
93 | %if %{with static_libs} |
94 | %{__make} -C build-static install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | %endif | |
97 | ||
98 | %{__make} -C build install \ | |
df9e9bf8 | 99 | DESTDIR=$RPM_BUILD_ROOT |
eb417e36 | 100 | |
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
ac28d4e4 JB |
104 | %post -p /sbin/ldconfig |
105 | %postun -p /sbin/ldconfig | |
eb417e36 | 106 | |
deff1af3 | 107 | %files |
eb417e36 | 108 | %defattr(644,root,root,755) |
b6febd90 | 109 | %doc ChangeLog README.md |
b57b5cf5 | 110 | %attr(755,root,root) %{_libdir}/libmatroska.so.*.*.* |
3dcf4f5a | 111 | %attr(755,root,root) %ghost %{_libdir}/libmatroska.so.7 |
eb417e36 | 112 | |
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
b57b5cf5 | 115 | %attr(755,root,root) %{_libdir}/libmatroska.so |
ac28d4e4 | 116 | %{_includedir}/matroska |
df9e9bf8 | 117 | %{_pkgconfigdir}/libmatroska.pc |
78251059 | 118 | %{_libdir}/cmake/Matroska |
eb417e36 | 119 | |
b6febd90 | 120 | %if %{with static_libs} |
eb417e36 | 121 | %files static |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libmatroska.a | |
b6febd90 | 124 | %endif |