Summary: Extensible Binary Meta Language library Name: libebml Version: 1.4.1 Release: 1%{?dist} License: LGPLv2+ URL: https://www.matroska.org/ %if !0%{?os2_version} Source: https://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.xz %else %scm_source github http://github.com/kohm/%{name}-os2 %{version}-os2 %endif BuildRequires: cmake3 BuildRequires: gcc-c++ %if !0%{?os2_version} BuildRequires: utf8cpp-devel Patch0: %{name}-use-system-utf8cpp.patch %endif %description Extensible Binary Meta Language access library A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML. %package devel Summary: Development files for the Extensible Binary Meta Language library Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{_libdir}/cmake Requires: pkgconfig %description devel Extensible Binary Meta Language access library A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML. This package contains the files required to rebuild applications which will use the Extensible Binary Meta Language library. %prep %if !0%{?os2_version} %setup -q %patch0 -p1 -b .utf8cpp rm -r src/lib/utf8-cpp %else %scm_setup %endif %build %if 0%{?os2_version} export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export LIBS="-lcx" %endif %cmake3 . %if !0%{?os2_version} %cmake3_build %else make %{?_smp_mflags} %endif %install %if !0%{?os2_version} %cmake3_install %else %make_install %endif %if !0%{?os2_version} %ldconfig_scriptlets %endif %files %license LICENSE.LGPL %doc ChangeLog %if !0%{?os2_version} %{_libdir}/%{name}.so.5* %else %{_libdir}/*.dll %endif %files devel %{_includedir}/ebml/ %if !0%{?os2_version} %{_libdir}/%{name}.so %else %{_libdir}/*.a %{_libdir}/pkgconfig/%{name}.pc %dir %{_libdir}/cmake/EBML %{_libdir}/cmake/EBML/EBMLConfig.cmake %{_libdir}/cmake/EBML/EBMLConfigVersion.cmake %{_libdir}/cmake/EBML/EBMLTargets-noconfig.cmake %{_libdir}/cmake/EBML/EBMLTargets.cmake %endif %changelog * Fri Feb 19 2021 Elbert Pol - 1.4.1-1 - Updated to latest version - Thankz KO Myung-Hun for the OS2 source * Fri Oct 04 2019 Elbert Pol - 1.3.9-1 - First rpm release for OS2