source: spec/trunk/SPECS/libmatroska.spec@ 1808

Last change on this file since 1808 was 1755, checked in by tellie, 5 years ago

spec: libmatroska: Release version 1.6.2-1.

File size: 2.3 KB
Line 
1%undefine __cmake_in_source_build
2
3Summary: Open audio/video container format library
4Name: libmatroska
5Version: 1.6.2
6Release: 1%{?dist}
7License: LGPLv2+
8URL: https://www.matroska.org/
9%if !0%{?os2_version}
10Source0: 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
14BuildRequires: cmake3
15BuildRequires: gcc-c++
16BuildRequires: libebml-devel >= 1.4.0
17Requires: libebml%{_isa} >= 1.4.0
18
19%description
20Matroska is an extensible open standard Audio/Video container. It
21aims to become THE standard of multimedia container formats. Matroska
22is usually found as .mkv files (matroska video) and .mka files
23(matroska audio).
24
25
26%package devel
27Summary: Matroska container format library development files
28Requires: %{name}%{_isa} = %{version}-%{release}
29Requires: %{_libdir}/cmake
30Requires: libebml-devel >= 1.4.0
31Requires: pkgconfig
32
33%description devel
34Matroska is an extensible open standard Audio/Video container. It
35aims to become THE standard of multimedia container formats. Matroska
36is usually found as .mkv files (matroska video) and .mka files
37(matroska audio).
38
39This package contains the files required to rebuild applications which
40will 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
51export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
52export LIBS="-lcx"
53
54%cmake3
55%if !0%{?os2_version}
56%cmake3_build
57
58%install
59%cmake3_install
60%else
61make %{?_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
Note: See TracBrowser for help on using the repository browser.