| 1 | %undefine __cmake_in_source_build
|
|---|
| 2 |
|
|---|
| 3 | Summary: Open audio/video container format library
|
|---|
| 4 | Name: libmatroska
|
|---|
| 5 | Version: 1.6.2
|
|---|
| 6 | Release: 1%{?dist}
|
|---|
| 7 | License: LGPLv2+
|
|---|
| 8 | URL: https://www.matroska.org/
|
|---|
| 9 | %if !0%{?os2_version}
|
|---|
| 10 | Source0: https://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.xz
|
|---|
| 11 | %else
|
|---|
| 12 | %scm_source github https://github.com/komh/libmatroska-os2 master
|
|---|
| 13 | %endif
|
|---|
| 14 | BuildRequires: cmake3
|
|---|
| 15 | BuildRequires: gcc-c++
|
|---|
| 16 | BuildRequires: libebml-devel >= 1.4.0
|
|---|
| 17 | Requires: libebml%{_isa} >= 1.4.0
|
|---|
| 18 |
|
|---|
| 19 | %description
|
|---|
| 20 | Matroska is an extensible open standard Audio/Video container. It
|
|---|
| 21 | aims to become THE standard of multimedia container formats. Matroska
|
|---|
| 22 | is usually found as .mkv files (matroska video) and .mka files
|
|---|
| 23 | (matroska audio).
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | %package devel
|
|---|
| 27 | Summary: Matroska container format library development files
|
|---|
| 28 | Requires: %{name}%{_isa} = %{version}-%{release}
|
|---|
| 29 | Requires: %{_libdir}/cmake
|
|---|
| 30 | Requires: libebml-devel >= 1.4.0
|
|---|
| 31 | Requires: pkgconfig
|
|---|
| 32 |
|
|---|
| 33 | %description devel
|
|---|
| 34 | Matroska is an extensible open standard Audio/Video container. It
|
|---|
| 35 | aims to become THE standard of multimedia container formats. Matroska
|
|---|
| 36 | is usually found as .mkv files (matroska video) and .mka files
|
|---|
| 37 | (matroska audio).
|
|---|
| 38 |
|
|---|
| 39 | This package contains the files required to rebuild applications which
|
|---|
| 40 | will use the Matroska container format.
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | %prep
|
|---|
| 44 | %if !0%{?os2_version}
|
|---|
| 45 | %setup -q
|
|---|
| 46 | %else
|
|---|
| 47 | %scm_setup
|
|---|
| 48 | %endif
|
|---|
| 49 |
|
|---|
| 50 | %build
|
|---|
| 51 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 52 | export LIBS="-lcx"
|
|---|
| 53 |
|
|---|
| 54 | %cmake3
|
|---|
| 55 | %if !0%{?os2_version}
|
|---|
| 56 | %cmake3_build
|
|---|
| 57 |
|
|---|
| 58 | %install
|
|---|
| 59 | %cmake3_install
|
|---|
| 60 | %else
|
|---|
| 61 | make %{?_smp_mflags}
|
|---|
| 62 |
|
|---|
| 63 | %install
|
|---|
| 64 | %make_install
|
|---|
| 65 | %endif
|
|---|
| 66 |
|
|---|
| 67 | %if !0%{?os2_version}
|
|---|
| 68 | %ldconfig_scriptlets
|
|---|
| 69 | %endif
|
|---|
| 70 |
|
|---|
| 71 | %files
|
|---|
| 72 | %license LICENSE.LGPL
|
|---|
| 73 | %doc ChangeLog
|
|---|
| 74 | %if !0%{?os2_version}
|
|---|
| 75 | %{_libdir}/%{name}.so.7*
|
|---|
| 76 | %else
|
|---|
| 77 | %{_libdir}/*.dll
|
|---|
| 78 | %endif
|
|---|
| 79 |
|
|---|
| 80 | %files devel
|
|---|
| 81 | %{_includedir}/matroska/
|
|---|
| 82 | %if !0%{?os2_version}
|
|---|
| 83 | %{_libdir}/%{name}.so
|
|---|
| 84 | %else
|
|---|
| 85 | %{_libdir}/*.a
|
|---|
| 86 | %endif
|
|---|
| 87 | %{_libdir}/pkgconfig/%{name}.pc
|
|---|
| 88 | %dir %{_libdir}/cmake/Matroska
|
|---|
| 89 | %{_libdir}/cmake/Matroska/MatroskaConfig.cmake
|
|---|
| 90 | %{_libdir}/cmake/Matroska/MatroskaConfigVersion.cmake
|
|---|
| 91 | %{_libdir}/cmake/Matroska/MatroskaTargets-noconfig.cmake
|
|---|
| 92 | %{_libdir}/cmake/Matroska/MatroskaTargets.cmake
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | %changelog
|
|---|
| 96 | * Sun Feb 28 2021 Elbert Pol <elbert.pol@gmail.com> - 1.6.2-1
|
|---|
| 97 | - Updated to latest version
|
|---|
| 98 | - Add os2 definitions to spec file
|
|---|
| 99 |
|
|---|
| 100 | * Fri Oct 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.5.2-1
|
|---|
| 101 | - First Rpm for OS2
|
|---|
| 102 | - Thankz KO Myung-Hun for the OS2 source
|
|---|