source: spec/trunk/SPECS/libebml.spec

Last change on this file was 1753, checked in by tellie, 5 years ago

spec: libebml: Release version 1.4.1-1.

File size: 2.2 KB
RevLine 
[1670]1Summary: Extensible Binary Meta Language library
2Name: libebml
[1753]3Version: 1.4.1
[1670]4Release: 1%{?dist}
5License: LGPLv2+
6URL: https://www.matroska.org/
[1753]7%if !0%{?os2_version}
8Source: 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
[1670]13BuildRequires: cmake3
[1753]14BuildRequires: gcc-c++
15%if !0%{?os2_version}
16BuildRequires: utf8cpp-devel
17Patch0: %{name}-use-system-utf8cpp.patch
18%endif
[1670]19%description
20Extensible Binary Meta Language access library A library for reading
21and writing files with the Extensible Binary Meta Language, a binary
22pendant to XML.
23
24
25%package devel
26Summary: Development files for the Extensible Binary Meta Language library
27Requires: %{name}%{?_isa} = %{version}-%{release}
28Requires: %{_libdir}/cmake
29Requires: pkgconfig
30
31%description devel
32Extensible Binary Meta Language access library A library for reading
33and writing files with the Extensible Binary Meta Language, a binary
34pendant to XML.
35
36This package contains the files required to rebuild applications which
37will use the Extensible Binary Meta Language library.
38
39%prep
[1753]40%if !0%{?os2_version}
41%setup -q
42%patch0 -p1 -b .utf8cpp
43rm -r src/lib/utf8-cpp
44%else
[1670]45%scm_setup
[1753]46%endif
[1670]47
48%build
[1753]49%if 0%{?os2_version}
[1670]50export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
51export LIBS="-lcx"
[1753]52%endif
[1670]53
[1753]54%cmake3 .
55%if !0%{?os2_version}
56%cmake3_build
57%else
58make %{?_smp_mflags}
59%endif
[1670]60
61%install
[1753]62%if !0%{?os2_version}
63%cmake3_install
64%else
65%make_install
66%endif
[1670]67
[1753]68%if !0%{?os2_version}
69%ldconfig_scriptlets
70%endif
[1670]71
72%files
73%license LICENSE.LGPL
74%doc ChangeLog
[1753]75%if !0%{?os2_version}
76%{_libdir}/%{name}.so.5*
77%else
78%{_libdir}/*.dll
79%endif
[1670]80
81%files devel
82%{_includedir}/ebml/
[1753]83%if !0%{?os2_version}
84%{_libdir}/%{name}.so
85%else
86%{_libdir}/*.a
[1670]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
[1753]93%endif
[1670]94
[1753]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
[1670]99
[1753]100* Fri Oct 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.9-1
[1670]101- First rpm release for OS2
Note: See TracBrowser for help on using the repository browser.