]> git.pld-linux.org Git - packages/libmatroska.git/blame - libmatroska.spec
up to 1.6.3
[packages/libmatroska.git] / libmatroska.spec
CommitLineData
b6febd90
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
eb417e36 5Summary: Extensible Binary Meta Language access library
c898b1eb 6Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego
eb417e36 7Name: libmatroska
c1164438 8Version: 1.6.3
da191166 9Release: 1
58ee65c3 10License: LGPL v2.1+
eb417e36 11Group: Libraries
a48d202d 12Source0: https://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.xz
c1164438 13# Source0-md5: d3ac01c6b27d99e820351d07d29a089d
9c4c0812 14URL: https://www.matroska.org/
b6febd90 15BuildRequires: cmake >= 3.1.2
c1164438 16BuildRequires: libebml-devel >= 1.4.2
3dcf4f5a 17BuildRequires: libstdc++-devel >= 6:4.7
df9e9bf8 18BuildRequires: pkgconfig
b6febd90 19BuildRequires: rpmbuild(macros) >= 1.605
c1164438 20Requires: libebml >= 1.4.2
eb417e36 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
b57b5cf5
JB
24Matroska is an extensible open standard Audio/Video container format,
25aiming to become the standard of Multimedia Container Formats one day.
26It is based on EBML (Extensible Binary Meta Language), a kind of
27binary version of XML. This way the significant advantages in terms of
28future format extensibility are gained without breaking file support
29in old parsers.
ac28d4e4 30
6ab1e4ef
JR
31%description -l pl.UTF-8
32Matroska to rozszerzalny otwarty format kodowania dźwięku i obrazu,
33dążący do stania się pewnego dnia standardem formatów zawierających
34multimedia. Jest on oparty na EBML (rozszerzalnym metajęzyku
35binarnym), binarnym odpowiedniku XML-a. W ten sposób ma on przewagę
36nad innymi formatami pod względem przyszłej rozszerzalności przy
37jednoczesnym zachowaniu kompatybilności wstecz.
eb417e36 38
39%package devel
b57b5cf5 40Summary: Header files for matroska library
c898b1eb 41Summary(pl.UTF-8): Nagłówki dla biblioteki matroska
eb417e36 42Group: Development/Libraries
0f5a8090 43Requires: %{name} = %{version}-%{release}
3dcf4f5a
JB
44Requires: libebml-devel >= 1.4.0
45Requires: libstdc++-devel >= 6:4.7
eb417e36 46
47%description devel
b57b5cf5 48Header files for matroska library.
eb417e36 49
6ab1e4ef
JR
50%description devel -l pl.UTF-8
51Nagłówki dla biblioteki matroska.
eb417e36 52
53%package static
b57b5cf5 54Summary: Static version of matroska library
c898b1eb 55Summary(pl.UTF-8): Statyczna wersja biblioteki matroska
b57b5cf5 56Group: Development/Libraries
0f5a8090 57Requires: %{name}-devel = %{version}-%{release}
eb417e36 58
59%description static
b57b5cf5 60Static version of matroska library.
eb417e36 61
6ab1e4ef 62%description static -l pl.UTF-8
b57b5cf5 63Statyczna 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}
71install -d build-static
72cd build-static
73%cmake .. \
74 -DBUILD_SHARED_LIBS:BOOL=OFF \
75 -DCMAKE_INSTALL_INCLUDEDIR=include \
76 -DCMAKE_INSTALL_LIBDIR=%{_lib}
77
78%{__make}
79cd ..
80%endif
81
82install -d build
83cd build
84%cmake .. \
85 -DCMAKE_INSTALL_INCLUDEDIR=include \
86 -DCMAKE_INSTALL_LIBDIR=%{_lib}
df9e9bf8
JB
87
88%{__make}
eb417e36 89
90%install
91rm -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
102rm -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
This page took 0.09349 seconds and 4 git commands to generate.