%undefine __cmake_in_source_build Summary: Open audio/video container format library Name: libmatroska Version: 1.6.2 Release: 1%{?dist} License: LGPLv2+ URL: https://www.matroska.org/ %if !0%{?os2_version} Source0: https://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.xz %else %scm_source github https://github.com/komh/libmatroska-os2 master %endif BuildRequires: cmake3 BuildRequires: gcc-c++ BuildRequires: libebml-devel >= 1.4.0 Requires: libebml%{_isa} >= 1.4.0 %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: Matroska container format library development files Requires: %{name}%{_isa} = %{version}-%{release} Requires: %{_libdir}/cmake Requires: libebml-devel >= 1.4.0 Requires: pkgconfig %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 %if !0%{?os2_version} %setup -q %else %scm_setup %endif %build export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export LIBS="-lcx" %cmake3 %if !0%{?os2_version} %cmake3_build %install %cmake3_install %else make %{?_smp_mflags} %install %make_install %endif %if !0%{?os2_version} %ldconfig_scriptlets %endif %files %license LICENSE.LGPL %doc ChangeLog %if !0%{?os2_version} %{_libdir}/%{name}.so.7* %else %{_libdir}/*.dll %endif %files devel %{_includedir}/matroska/ %if !0%{?os2_version} %{_libdir}/%{name}.so %else %{_libdir}/*.a %endif %{_libdir}/pkgconfig/%{name}.pc %dir %{_libdir}/cmake/Matroska %{_libdir}/cmake/Matroska/MatroskaConfig.cmake %{_libdir}/cmake/Matroska/MatroskaConfigVersion.cmake %{_libdir}/cmake/Matroska/MatroskaTargets-noconfig.cmake %{_libdir}/cmake/Matroska/MatroskaTargets.cmake %changelog * Sun Feb 28 2021 Elbert Pol - 1.6.2-1 - Updated to latest version - Add os2 definitions to spec file * Fri Oct 04 2019 Elbert Pol - 1.5.2-1 - First Rpm for OS2 - Thankz KO Myung-Hun for the OS2 source