| 1 | Summary: Extensible Binary Meta Language library
|
|---|
| 2 | Name: libebml
|
|---|
| 3 | Version: 1.4.1
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: LGPLv2+
|
|---|
| 6 | URL: https://www.matroska.org/
|
|---|
| 7 | %if !0%{?os2_version}
|
|---|
| 8 | Source: https://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.xz
|
|---|
| 9 | %else
|
|---|
| 10 | %scm_source github http://github.com/kohm/%{name}-os2 %{version}-os2
|
|---|
| 11 | %endif
|
|---|
| 12 |
|
|---|
| 13 | BuildRequires: cmake3
|
|---|
| 14 | BuildRequires: gcc-c++
|
|---|
| 15 | %if !0%{?os2_version}
|
|---|
| 16 | BuildRequires: utf8cpp-devel
|
|---|
| 17 | Patch0: %{name}-use-system-utf8cpp.patch
|
|---|
| 18 | %endif
|
|---|
| 19 | %description
|
|---|
| 20 | Extensible Binary Meta Language access library A library for reading
|
|---|
| 21 | and writing files with the Extensible Binary Meta Language, a binary
|
|---|
| 22 | pendant to XML.
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | %package devel
|
|---|
| 26 | Summary: Development files for the Extensible Binary Meta Language library
|
|---|
| 27 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 28 | Requires: %{_libdir}/cmake
|
|---|
| 29 | Requires: pkgconfig
|
|---|
| 30 |
|
|---|
| 31 | %description devel
|
|---|
| 32 | Extensible Binary Meta Language access library A library for reading
|
|---|
| 33 | and writing files with the Extensible Binary Meta Language, a binary
|
|---|
| 34 | pendant to XML.
|
|---|
| 35 |
|
|---|
| 36 | This package contains the files required to rebuild applications which
|
|---|
| 37 | will use the Extensible Binary Meta Language library.
|
|---|
| 38 |
|
|---|
| 39 | %prep
|
|---|
| 40 | %if !0%{?os2_version}
|
|---|
| 41 | %setup -q
|
|---|
| 42 | %patch0 -p1 -b .utf8cpp
|
|---|
| 43 | rm -r src/lib/utf8-cpp
|
|---|
| 44 | %else
|
|---|
| 45 | %scm_setup
|
|---|
| 46 | %endif
|
|---|
| 47 |
|
|---|
| 48 | %build
|
|---|
| 49 | %if 0%{?os2_version}
|
|---|
| 50 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 51 | export LIBS="-lcx"
|
|---|
| 52 | %endif
|
|---|
| 53 |
|
|---|
| 54 | %cmake3 .
|
|---|
| 55 | %if !0%{?os2_version}
|
|---|
| 56 | %cmake3_build
|
|---|
| 57 | %else
|
|---|
| 58 | make %{?_smp_mflags}
|
|---|
| 59 | %endif
|
|---|
| 60 |
|
|---|
| 61 | %install
|
|---|
| 62 | %if !0%{?os2_version}
|
|---|
| 63 | %cmake3_install
|
|---|
| 64 | %else
|
|---|
| 65 | %make_install
|
|---|
| 66 | %endif
|
|---|
| 67 |
|
|---|
| 68 | %if !0%{?os2_version}
|
|---|
| 69 | %ldconfig_scriptlets
|
|---|
| 70 | %endif
|
|---|
| 71 |
|
|---|
| 72 | %files
|
|---|
| 73 | %license LICENSE.LGPL
|
|---|
| 74 | %doc ChangeLog
|
|---|
| 75 | %if !0%{?os2_version}
|
|---|
| 76 | %{_libdir}/%{name}.so.5*
|
|---|
| 77 | %else
|
|---|
| 78 | %{_libdir}/*.dll
|
|---|
| 79 | %endif
|
|---|
| 80 |
|
|---|
| 81 | %files devel
|
|---|
| 82 | %{_includedir}/ebml/
|
|---|
| 83 | %if !0%{?os2_version}
|
|---|
| 84 | %{_libdir}/%{name}.so
|
|---|
| 85 | %else
|
|---|
| 86 | %{_libdir}/*.a
|
|---|
| 87 | %{_libdir}/pkgconfig/%{name}.pc
|
|---|
| 88 | %dir %{_libdir}/cmake/EBML
|
|---|
| 89 | %{_libdir}/cmake/EBML/EBMLConfig.cmake
|
|---|
| 90 | %{_libdir}/cmake/EBML/EBMLConfigVersion.cmake
|
|---|
| 91 | %{_libdir}/cmake/EBML/EBMLTargets-noconfig.cmake
|
|---|
| 92 | %{_libdir}/cmake/EBML/EBMLTargets.cmake
|
|---|
| 93 | %endif
|
|---|
| 94 |
|
|---|
| 95 | %changelog
|
|---|
| 96 | * Fri Feb 19 2021 Elbert Pol <elbert.pol@gmail.com> - 1.4.1-1
|
|---|
| 97 | - Updated to latest version
|
|---|
| 98 | - Thankz KO Myung-Hun for the OS2 source
|
|---|
| 99 |
|
|---|
| 100 | * Fri Oct 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.9-1
|
|---|
| 101 | - First rpm release for OS2
|
|---|