source: spec/trunk/SPECS/libebml.spec@ 1768

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

spec: libebml: Release version 1.4.1-1.

File size: 2.2 KB
Line 
1Summary: Extensible Binary Meta Language library
2Name: libebml
3Version: 1.4.1
4Release: 1%{?dist}
5License: LGPLv2+
6URL: https://www.matroska.org/
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
13BuildRequires: cmake3
14BuildRequires: gcc-c++
15%if !0%{?os2_version}
16BuildRequires: utf8cpp-devel
17Patch0: %{name}-use-system-utf8cpp.patch
18%endif
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
40%if !0%{?os2_version}
41%setup -q
42%patch0 -p1 -b .utf8cpp
43rm -r src/lib/utf8-cpp
44%else
45%scm_setup
46%endif
47
48%build
49%if 0%{?os2_version}
50export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
51export LIBS="-lcx"
52%endif
53
54%cmake3 .
55%if !0%{?os2_version}
56%cmake3_build
57%else
58make %{?_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
Note: See TracBrowser for help on using the repository browser.