-
Notifications
You must be signed in to change notification settings - Fork 0
/
kodi-addon-inputstream-adaptive.spec
72 lines (62 loc) · 2.15 KB
/
kodi-addon-inputstream-adaptive.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# TODO:
# - package Bento4 and use system one
%define kodi_ver 21
%define next_kodi_ver %(echo $((%{kodi_ver}+1)))
%define codename Omega
%define addon inputstream.adaptive
%define bento4_ver 1.6.0-641-Omega
Summary: Kodi InputStream addon for several manifest types
Name: kodi-addon-inputstream-adaptive
Version: %{kodi_ver}.4.9
Release: 1
License: GPL v2+
Group: Applications/Multimedia
Source0: https://github.com/xbmc/inputstream.adaptive/archive/%{version}-%{codename}/%{version}-%{codename}.tar.gz
# Source0-md5: 0a94f386ead8884e0e3659c494df279c
Source1: https://github.com/xbmc/Bento4/archive/%{bento4_ver}/Bento4-%{bento4_ver}.tar.gz
# Source1-md5: 77b1246f0d738ee4f2006c27eb48d3c8
Patch0: bento4-hash.patch
URL: https://github.com/xbmc/inputstream.adaptive
BuildRequires: cmake >= 3.10
BuildRequires: expat-devel
BuildRequires: kodi-devel >= %{kodi_ver}
BuildRequires: kodi-devel < %{next_kodi_ver}
BuildRequires: libstdc++-devel >= 6:7
BuildRequires: pugixml-devel
BuildRequires: rapidjson-devel
BuildRequires: rpmbuild(macros) >= 1.605
Requires: kodi >= %{kodi_ver}
Requires: kodi < %{next_kodi_ver}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Kodi InputStream addon for several manifest types
%prep
%setup -q -n %{addon}-%{version}-%{codename}
%patch0 -p1
install -d build/download
cp -p %{SOURCE1} build/download/%{bento4_ver}.tar.gz
%build
%cmake -B build \
-DBUILD_TESTING:BOOL=OFF \
-DENABLE_INTERNAL_BENTO4:BOOL=ON
%{__make} -C build
%install
rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{_libdir}/kodi/addons/%{addon}
%attr(755,root,root) %{_libdir}/kodi/addons/%{addon}/%{addon}.so.%{version}
%attr(755,root,root) %ghost %{_libdir}/kodi/addons/%{addon}/%{addon}.so.21.0
%ifarch aarch64
%attr(755,root,root) %{_libdir}/kodi/addons/%{addon}/libcdm_aarch64_loader.so
%endif
%dir %{_datadir}/kodi/addons/%{addon}
%{_datadir}/kodi/addons/%{addon}/addon.xml
%{_datadir}/kodi/addons/%{addon}/changelog.txt
%{_datadir}/kodi/addons/%{addon}/fanart.jpg
%{_datadir}/kodi/addons/%{addon}/icon.png
%{_datadir}/kodi/addons/%{addon}/resources