# https://github.com/Matroska-Org/libmatroska/ %global commit f5315fddda2d434e47035c038549a808d8b8eac7 %global gittag 1.7.1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libmatroska License: LGPLv2+ Group: System Environment/Libraries Version: 1.7.1 Release: 1%{?dist} Summary: libebml - Extensible Binary Meta Language library URL: https://www.matroska.org/ %undefine _disable_source_fetch Source0: https://github.com/Matroska-Org/libmatroska/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake3,make BuildRequires: devtoolset-9-gcc-c++ #La build BuildRequires: libebml-devel ### %description Matroska is an extensible open standard Audio/Video container. It aims to become THE standard of multimedia container formats. Matroska is usually found as .mkv files (matroska video) and .mka files (matroska audio). %package devel Summary: libmatroska-devel - Matroska container format library development files Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Matroska is an extensible open standard Audio/Video container. It aims to become THE standard of multimedia container formats. Matroska is usually found as .mkv files (matroska video) and .mka files (matroska audio). This package contains the files required to rebuild applications which will use the Matroska container format. %prep %setup -q -n %{name}-%{commit} %build mkdir build pushd build export CC=/opt/rh/devtoolset-9/root/bin/gcc export CXX=/opt/rh/devtoolset-9/root/bin/g++ cmake3 -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DBUILD_SHARED_LIBS=ON \ .. make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT pushd build make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE.LGPL %doc NEWS.md README.md /usr/lib64/libmatroska.so.7 /usr/lib64/libmatroska.so.7.0.0 %files devel /usr/include/matroska/c/libmatroska.h /usr/include/matroska/c/libmatroska_t.h /usr/include/matroska/FileKax.h /usr/include/matroska/KaxAttached.h /usr/include/matroska/KaxAttachments.h /usr/include/matroska/KaxBlock.h /usr/include/matroska/KaxBlockData.h /usr/include/matroska/KaxChapters.h /usr/include/matroska/KaxCluster.h /usr/include/matroska/KaxClusterData.h /usr/include/matroska/KaxConfig.h /usr/include/matroska/KaxContentEncoding.h /usr/include/matroska/KaxContexts.h /usr/include/matroska/KaxCues.h /usr/include/matroska/KaxCuesData.h /usr/include/matroska/KaxDefines.h /usr/include/matroska/KaxInfo.h /usr/include/matroska/KaxInfoData.h /usr/include/matroska/KaxSeekHead.h /usr/include/matroska/KaxSegment.h /usr/include/matroska/KaxSemantic.h /usr/include/matroska/KaxTag.h /usr/include/matroska/KaxTags.h /usr/include/matroska/KaxTrackAudio.h /usr/include/matroska/KaxTrackEntryData.h /usr/include/matroska/KaxTrackVideo.h /usr/include/matroska/KaxTracks.h /usr/include/matroska/KaxTypes.h /usr/include/matroska/KaxVersion.h /usr/include/matroska/matroska_export.h /usr/lib64/cmake/Matroska/MatroskaConfig.cmake /usr/lib64/cmake/Matroska/MatroskaConfigVersion.cmake #/usr/lib64/cmake/Matroska/MatroskaTargets-noconfig.cmake #/usr/lib64/cmake/Matroska/MatroskaTargets.cmake /usr/lib64/cmake/Matroska/MatroskaTargets-release.cmake /usr/lib64/cmake/Matroska/MatroskaTargets.cmake /usr/lib64/libmatroska.so /usr/lib64/pkgconfig/libmatroska.pc