File kodi-noX-raspberry-pi.spec of Package kodi-next

#
# spec file for package kodi
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


# Please edit kodi.spec and kodi.changes only. *-noX.* files are generated from
# kodi.* files with the pre_checkin.sh script
%define kodi_version Leia
%define ffmpeg_version 4.0.3-Leia-RC5
%define _kodi_addons_dir %{_datadir}/kodi/addons
# set this parameter to enable building Kodi with ccache, debug information, etc.
%define dev_build 1
# WARNING: Build with bundled ffmpeg until version 18.0 is reached
%bcond_without sysffmpeg
# kodi can be built without X support when openGL ES is used (mainly used on ARM boards used as media center)
%bcond_with kodi_with_X11
%define kodi_platform raspberry-pi
%define kodi_player omxplayer

%if %{with kodi_with_X11}
%bcond_without enable_opengl
%bcond_with enable_opengles
%else
# no X build needs openGL ES
%bcond_with enable_opengl
%bcond_without enable_opengles
%endif
#
%bcond_without kodi_libbluray
# 
%bcond_without systemd

ExclusiveArch: does-not-build

Name:           kodi-noX-raspberry-pi
Version:        18.4
Release:        0
Summary:        Media center (formerly known as XBMC)
License:        GPL-2.0+ and GPL-3.0+
Group:          Productivity/Multimedia/Video/Players
Url:            http://kodi.tv/
Source0:        https://github.com/xbmc/xbmc/archive/%{version}-%{kodi_version}.tar.gz
Source1:        kodi.SuSEFirewall2
# AUTO-GENERATED using get_version.sh
Source3:        kodi.VERSION
Source10:       kodi.service
Source11:       kodi-noX.service
Source20:       http://mirrors.kodi.tv/build-deps/sources/crossguid-8f399e8bd4.tar.gz
# DOWNLOAD from https://github.com/xbmc/libdvd*/archive/6.0.0-Leia-Alpha-3.tar.gz
Source21:       libdvdnav-6.0.0-Leia-Alpha-3.tar.gz
Source22:       https://github.com/xbmc/libdvdcss/archive/1.4.2-Leia-Beta-5.tar.gz
# DOWNLOAD from https://github.com/xbmc/libdvd*/archive/6.0.0-Leia-Alpha-3.tar.gz
Source23:       libdvdread-6.0.0-Leia-Alpha-3.tar.gz
Source24:       http://mirrors.kodi.tv/build-deps/sources/fmt-5.1.0.tar.gz
Source25:       http://mirrors.kodi.tv/build-deps/sources/rapidjson-1.1.0.tar.gz
Source26:       http://mirrors.kodi.tv/build-deps/sources/flatbuffers-1.9.0.tar.gz
Source27:       http://mirrors.kodi.tv/build-deps/sources/fstrcmp-0.7.D001.tar.gz
%if %{without sysffmpeg}
Source30:       https://github.com/xbmc/FFmpeg/archive/%{ffmpeg_version}.tar.gz
%endif
#Patch0:         kodi.arm.patch
#Patch1:         no-xbmc-symbolic-link.patch
#Patch2:         kodi-texturepacker.patch
#Patch3:         crossguid_build64.patch
#Patch4:         kodi.aarch64.patch
#Patch5:         kodi-tools-libdir.patch
Patch6:         kodi-install.patch
Patch7:         kodi-apply-dvdrun.patch
Patch8:	        kodi-libdrm.patch

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gawk
%if 0%{?suse_version} > 1320 && 0%{?sle_version} == 0
BuildRequires:	gcc9
BuildRequires:  gcc9-c++
%else
BuildRequires:  gcc8
BuildRequires:  gcc8-c++
%endif
BuildRequires:  ghostscript
BuildRequires:  groff-full
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(python2)
BuildRequires:  libmysqlclient-devel
BuildRequires:  pkgconfig(libass)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  libgcrypt-devel
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  lzo-devel
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(libcrypto)
BuildRequires:  tinyxml-devel
BuildRequires:  pkgconfig(uuid)
BuildRequires:  libyajl-devel >= 2
BuildRequires:  pkgconfig(libidn2)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(fribidi)
BuildRequires:  pkgconfig(sqlite3) 
BuildRequires:  pkgconfig(libpcrecpp)
BuildRequires:  pkgconfig(libpcre)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(taglib) >= 1.9
BuildRequires:  pkgconfig(libcdio)
BuildRequires:  pkgconfig(lirc)
%if %{with kodi_libbluray}
BuildRequires:  pkgconfig(libbluray)  >= 0.7.0
%endif
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(dbus-1)
# libmicrohttpd > 0.9.30
BuildRequires:  pkgconfig(libmicrohttpd)
BuildRequires:  pkgconfig(libpulse) >= 1.0
BuildRequires:  pkgconfig(avahi-client)
%if %{with kodi_with_X11}
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(egl)
%endif
BuildRequires:  pkgconfig(libssh)
BuildRequires:  pkgconfig(smbclient)
BuildRequires:  pkgconfig(libnfs)
BuildRequires:  pkgconfig(libplist)
BuildRequires:  shairplay-devel
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(libcec) >= 4.0.0
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(bluez)
BuildRequires:  libcap-devel
%if %{with sysffmpeg}
BuildRequires:  pkgconfig(libavcodec) >= 58.18.100
BuildRequires:  pkgconfig(libavfilter) >= 6.107.100
BuildRequires:  pkgconfig(libavformat) >= 58.12.100
BuildRequires:  pkgconfig(libavutil) >= 56.14.100
BuildRequires:  pkgconfig(libpostproc) >= 54.7.100
BuildRequires:  pkgconfig(libswscale) >= 4.8.100
BuildRequires:  pkgconfig(libswresample) >= 3.1.100
%else
BuildRequires:  ladspa-devel
BuildRequires:  libgsm-devel
BuildRequires:  pkg-config
BuildRequires:  yasm
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(celt) >= 0.11.0
BuildRequires:  pkgconfig(enca)
BuildRequires:  pkgconfig(fontconfig) >= 2.4.2
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(fribidi) >= 0.19.0
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(jack)
BuildRequires:  pkgconfig(libass)
BuildRequires:  pkgconfig(libbluray)
BuildRequires:  pkgconfig(libcdio)
BuildRequires:  pkgconfig(libcdio_paranoia)
BuildRequires:  pkgconfig(libdc1394-2)
BuildRequires:  pkgconfig(liboil-0.3) >= 0.3.15
BuildRequires:  pkgconfig(libopenjpeg)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libraw1394)
BuildRequires:  pkgconfig(libwebp) >= 0.4
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(opus)
BuildRequires:  pkgconfig(schroedinger-1.0)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(speex)
BuildRequires:  pkgconfig(theora) >= 1.1
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(vpx) >= 1.3.0
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-render)
BuildRequires:  pkgconfig(xcb-shape)
BuildRequires:  pkgconfig(xcb-shm)
BuildRequires:  pkgconfig(xcb-xfixes)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xfixes)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(librtmp)
BuildRequires:  libmp3lame-devel
BuildRequires:  libxvidcore-devel
BuildRequires:  pkgconfig(opencore-amrnb)
BuildRequires:  pkgconfig(twolame)
BuildRequires:  pkgconfig(x264)
BuildRequires:  pkgconfig(x265)
%endif
BuildRequires:  swig
BuildRequires:  java
BuildRequires:  doxygen
%if %{with enable_opengl}
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(vdpau)
%if 0%{?suse_version} < 1500
BuildRequires:  pkgconfig(libva) >= 0.38
BuildRequires:  pkgconfig(libva-x11) >= 0.38
%else
BuildRequires:  pkgconfig(libva) >= 1.0.0
BuildRequires:  pkgconfig(libva-x11) >= 1.0.0
%endif
%endif
%if %{with enable_opengles}
%if "%{kodi_platform}" == "none"
BuildRequires:  Mesa-libEGL-devel
BuildRequires:  Mesa-libGLESv2-devel
%else
%if ("%{kodi_platform}" == "raspberry-pi") || ("%{kodi_platform}" == "raspberry-pi2")
BuildRequires:  raspberrypi-userland-devel
%endif
%endif
%endif
%if %{kodi_player} == "omxplayer"
Requires:       omxplayer
%endif
BuildRequires:  cmake
BuildRequires:  gperf
BuildRequires:  unzip
BuildRequires:  zip
%ifarch %ix86
BuildRequires:  nasm
%endif
%if %{dev_build}
BuildRequires:  ccache
%endif

# cpluff
BuildRequires:  pkgconfig(expat)

# TexturePacker
BuildRequires:  pkgconfig(libpng)
BuildRequires:  giflib-devel
BuildRequires:  libjpeg8-devel
BuildRequires:  lzo-devel
#
%{?systemd_requires}

# kodi needs libnfs to access nfs sources, it is not automatically required
Requires:       libnfs
#
Obsoletes:      xbmc < %{version}
Provides:       xbmc = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %{with kodi_with_X11}
Conflicts:      kodi
%else
Conflicts:      kodi-noX
%endif


%description
KODI media center is a free cross-platform media-player jukebox and
entertainment hub.  KODI can play a spectrum of of multimedia formats,
and featuring playlist, audio visualizations, slideshow, and weather
forecast functions, together third-party plugins.

%package devel
Summary:        Kodi Media center devel files
Group:          Development/Languages/C and C++
Requires:       %{name}
BuildArch:      noarch
%if %{with kodi_with_X11}
Conflicts:      kodi-devel
%else
Conflicts:      kodi-noX-devel
%endif

%description devel
Development files for Kodi Media Center

%prep
%setup -q -n xbmc-%{version}-%{kodi_version}

#%patch0
#%patch1
#%patch2
#%patch3
#%patch4
#%patch5
%patch6
%patch7
%patch8 -p1

# Remove build time references so build-compare can do its work
FAKE_BUILDDATETIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes)
for file in xbmc/interfaces/python/PythonSwig.cpp.template ; do
  sed -i -e "/PyModule_AddStringConstant.*__date__/ s/\${new Date()\.toString()}/$FAKE_BUILDDATETIME/"  $file
done

# Set the final version string
cp %{SOURCE3} VERSION

# avoid long delays when powerkit isn't running
sed -i \
    -e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \
    xbmc/platform/linux/*.cpp

%build
# Fix for missing 'l' alias
alias l='ls -alF'

%if "%{kodi_platform}" == "raspberry-pi" || "%{kodi_platform}" == "raspberry-pi2"
export CXXFLAGS="$CXXFLAGS -I%{_includedir}/interface/vcos/pthreads -I%{_includedir}/interface/vmcs_host/linux"
%endif

%if 0%{?suse_version} > 1320 && 0%{?sle_version} == 0
 export CC=gcc-9
 export CXX=g++-9
%else
 export CC=gcc-8
 export CXX=g++-8
%endif

%cmake \
%ifarch i586
    -DCMAKE_C_FLAGS='-msse' \
%endif
%if %{dev_build}
    -DVERBOSE=ON \
%endif
    -DCMAKE_C_COMPILER=$CC \
    -DCMAKE_CXX_COMPILER=$CXX \
    -DFMT_URL=%{SOURCE24} \
    -DENABLE_INTERNAL_FMT=ON \
    -DRapidJSON_URL=%{SOURCE25} \
    -DENABLE_INTERNAL_RapidJSON=ON \
    -DFFMPEG_URL=%{SOURCE30} \
    -DENABLE_INTERNAL_FFMPEG=OFF \
    -DCROSSGUID_URL=%{SOURCE20} \
    -DLIBDVDNAV_URL=%{SOURCE21} \
    -DLIBDVDCSS_URL=%{SOURCE22} \
    -DLIBDVDREAD_URL=%{SOURCE23} \
    -DENABLE_INTERNAL_FLATBUFFERS=ON \
    -DFLATBUFFERS_URL=%{SOURCE26} \
    -DENABLE_INTERNAL_FSTRCMP=ON \
    -DFSTRCMP_URL=%{SOURCE27} \
    -DBUILD_SHARED_LIBS=1 
    
make -O %{?_smp_mflags} V=1 CC=$CC CXX=$CXX || l

%install
pushd build
make DESTDIR=%{buildroot} install %{?_smp_mflags}
#make -C tools/EventClients DESTDIR=%%{buildroot} install %%{?_smp_mflags}

# SuSEfirewall service description
install -D -m 644 %{_sourcedir}/kodi.SuSEFirewall2 %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/kodi

# Systemd service file
%if %{without kodi_with_X11}
install -m 0644 -D %{SOURCE11} %{buildroot}/%{_unitdir}/kodi-noX.service
%else
install -m 0644 -D %{SOURCE10} %{buildroot}/%{_unitdir}/kodi.service
%endif

# remove the doc files from unversioned /usr/share/doc/kodi, they should be in versioned docdir
rm -r %{buildroot}/%{_datadir}/doc/

# remove win32 source files
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.addon/dlfcn-win32.cpp
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.addon/dlfcn-win32.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.xbmc.addon/dlfcn-win32.cpp
rm -f %{buildroot}%{_kodi_addons_dir}/library.xbmc.addon/dlfcn-win32.h

# remove duplicate header files
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.addon/libXBMC_addon.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.xbmc.addon/libXBMC_addon.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.codec/libXBMC_codec.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.xbmc.codec/libXBMC_codec.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.gui/libXBMC_gui.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.xbmc.gui/libXBMC_gui.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.pvr/libXBMC_pvr.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.xbmc.pvr/libXBMC_pvr.h
rm -f %{buildroot}%{_kodi_addons_dir}/library.kodi.guilib/libKODI_guilib.h

# copy manpages
popd
install -m 644 -D docs/manpages/kodi-standalone.1 %{buildroot}%{_mandir}/man1/kodi-standalone.1
install -m 644 -D docs/manpages/kodi.bin.1 %{buildroot}%{_mandir}/man1/kodi.1

desktop-file-install \
 --dir=%{buildroot}%{_datadir}/applications \
 %{buildroot}%{_datadir}/applications/kodi.desktop

%fdupes %{buildroot}

%pre
%service_add_pre kodi.service

%post
%service_add_post kodi.service

%preun
%service_del_preun kodi.service

%postun
%service_del_postun kodi.service

%files
%defattr(-,root,root)
%doc version.txt 
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/kodi
%{_bindir}/kodi
%{_bindir}/kodi-standalone
%{_bindir}/TexturePacker
%dir %{_libdir}/kodi
%if %{with kodi_with_X11}
%{_libdir}/kodi/kodi-xrandr
%{_libdir}/kodi/kodi-x11
%endif
%{_datadir}/xsessions/kodi.desktop
%{_datadir}/applications/kodi.desktop
%{_datadir}/icons/*
%dir %{_datadir}/kodi
%dir %{_datadir}/kodi/media
%dir %{_datadir}/kodi/system
%dir %{_libdir}/kodi/system
%dir %{_datadir}/kodi/userdata
%{_datadir}/kodi/media/*
%{_datadir}/kodi/system/*
%{_datadir}/kodi/privacy-policy.txt
%{_libdir}/kodi/system/*
%{_datadir}/kodi/userdata/*
%{_mandir}/man1/kodi.1.gz
%{_mandir}/man1/kodi-standalone.1.gz
%dir %{_kodi_addons_dir}
%dir %{_kodi_addons_dir}/game.controller.default
%{_kodi_addons_dir}/game.controller.default/*
%dir %{_kodi_addons_dir}/game.controller.snes
%{_kodi_addons_dir}/game.controller.snes/*
%dir %{_kodi_addons_dir}/metadata.album.universal/
%{_kodi_addons_dir}/metadata.album.universal/*
%dir %{_kodi_addons_dir}/metadata.artists.universal/
%{_kodi_addons_dir}/metadata.artists.universal/*
%dir %{_kodi_addons_dir}/metadata.common.allmusic.com/
%{_kodi_addons_dir}/metadata.common.allmusic.com/*
%dir %{_kodi_addons_dir}/metadata.common.fanart.tv/
%{_kodi_addons_dir}/metadata.common.fanart.tv/*
%dir %{_kodi_addons_dir}/metadata.common.imdb.com/
%{_kodi_addons_dir}/metadata.common.imdb.com/*
%dir %{_kodi_addons_dir}/metadata.common.musicbrainz.org/
%{_kodi_addons_dir}/metadata.common.musicbrainz.org/*
%dir %{_kodi_addons_dir}/metadata.common.themoviedb.org/
%{_kodi_addons_dir}/metadata.common.themoviedb.org/*
%dir %{_kodi_addons_dir}/metadata.common.theaudiodb.com/
%{_kodi_addons_dir}/metadata.common.theaudiodb.com/*
%dir %{_kodi_addons_dir}/metadata.local/
%{_kodi_addons_dir}/metadata.local/*
%dir %{_kodi_addons_dir}/metadata.themoviedb.org/
%{_kodi_addons_dir}/metadata.themoviedb.org/*
%dir %{_kodi_addons_dir}/metadata.tvshows.themoviedb.org/
%{_kodi_addons_dir}/metadata.tvshows.themoviedb.org/*
%dir %{_kodi_addons_dir}/repository.xbmc.org/
%{_kodi_addons_dir}/repository.xbmc.org/*
%dir %{_kodi_addons_dir}/resource.uisounds.kodi/
%{_kodi_addons_dir}/resource.uisounds.kodi/*
%dir %{_kodi_addons_dir}/screensaver.xbmc.builtin.black/
%{_kodi_addons_dir}/screensaver.xbmc.builtin.black/*
%dir %{_kodi_addons_dir}/screensaver.xbmc.builtin.dim/
%{_kodi_addons_dir}/screensaver.xbmc.builtin.dim/*
%dir %{_kodi_addons_dir}/script.module.pil/
%{_kodi_addons_dir}/script.module.pil/*
%dir %{_kodi_addons_dir}/service.xbmc.versioncheck/
%{_kodi_addons_dir}/service.xbmc.versioncheck/*
%dir %{_kodi_addons_dir}/webinterface.default/
%{_kodi_addons_dir}/webinterface.default/*
%dir %{_kodi_addons_dir}/xbmc.addon/
%{_kodi_addons_dir}/xbmc.addon/*
%dir %{_kodi_addons_dir}/xbmc.core/
%{_kodi_addons_dir}/xbmc.core/*
%dir %{_kodi_addons_dir}/xbmc.gui/
%{_kodi_addons_dir}/xbmc.gui/*
%dir %{_kodi_addons_dir}/xbmc.json/
%{_kodi_addons_dir}/xbmc.json/*
%dir %{_kodi_addons_dir}/xbmc.metadata/
%{_kodi_addons_dir}/xbmc.metadata/*
%dir %{_kodi_addons_dir}/xbmc.python/
%{_kodi_addons_dir}/xbmc.python/*
%dir %{_kodi_addons_dir}/audioencoder.kodi.builtin.aac/
%{_kodi_addons_dir}/audioencoder.kodi.builtin.aac/*
%dir %{_kodi_addons_dir}/audioencoder.kodi.builtin.wma/
%{_kodi_addons_dir}/audioencoder.kodi.builtin.wma/*
%dir %{_kodi_addons_dir}/kodi.resource/
%{_kodi_addons_dir}/kodi.resource/*
%dir %{_kodi_addons_dir}/resource.language.en_gb/
%{_kodi_addons_dir}/resource.language.en_gb/*
%dir %{_kodi_addons_dir}/xbmc.webinterface/
%{_kodi_addons_dir}/xbmc.webinterface/*
%dir %{_kodi_addons_dir}/resource.images.weathericons.default
%{_kodi_addons_dir}/resource.images.weathericons.default/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.inputstream/
%{_kodi_addons_dir}/kodi.binary.instance.inputstream/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.audioencoder/
%{_kodi_addons_dir}/kodi.binary.instance.audioencoder/*
%dir %{_kodi_addons_dir}/skin.estouchy
%{_kodi_addons_dir}/skin.estouchy/*
%dir %{_kodi_addons_dir}/skin.estuary
%{_kodi_addons_dir}/skin.estuary/*
%dir %{_kodi_addons_dir}/kodi.binary.global.audioengine
%{_kodi_addons_dir}/kodi.binary.global.audioengine/*
%dir %{_kodi_addons_dir}/kodi.binary.global.filesystem
%{_kodi_addons_dir}/kodi.binary.global.filesystem/*
%dir %{_kodi_addons_dir}/kodi.binary.global.general
%{_kodi_addons_dir}/kodi.binary.global.general/*
%dir %{_kodi_addons_dir}/kodi.binary.global.gui
%{_kodi_addons_dir}/kodi.binary.global.gui/*
%dir %{_kodi_addons_dir}/kodi.binary.global.main
%{_kodi_addons_dir}/kodi.binary.global.main/*
%dir %{_kodi_addons_dir}/kodi.binary.global.network
%{_kodi_addons_dir}/kodi.binary.global.network/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.audiodecoder
%{_kodi_addons_dir}/kodi.binary.instance.audiodecoder/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.game
%{_kodi_addons_dir}/kodi.binary.instance.game/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.imagedecoder
%{_kodi_addons_dir}/kodi.binary.instance.imagedecoder/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.peripheral
%{_kodi_addons_dir}/kodi.binary.instance.peripheral/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.pvr
%{_kodi_addons_dir}/kodi.binary.instance.pvr/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.screensaver
%{_kodi_addons_dir}/kodi.binary.instance.screensaver/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.vfs
%{_kodi_addons_dir}/kodi.binary.instance.vfs/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.videocodec
%{_kodi_addons_dir}/kodi.binary.instance.videocodec/*
%dir %{_kodi_addons_dir}/kodi.binary.instance.visualization
%{_kodi_addons_dir}/kodi.binary.instance.visualization/*
%dir %{_kodi_addons_dir}/script.module.pycryptodome
%{_kodi_addons_dir}/script.module.pycryptodome/*
%dir %{_libdir}/firewalld
%dir %{_libdir}/firewalld/services
%{_libdir}/firewalld/services/kodi-eventserver.xml
%{_libdir}/firewalld/services/kodi-http.xml
%{_libdir}/firewalld/services/kodi-jsonrpc.xml

%if %{without kodi_with_X11}
%{_unitdir}/kodi-noX.service
%else
%{_unitdir}/kodi.service
%endif

%dir %{_datadir}/kodi/cmake
%{_datadir}/kodi/cmake/KodiConfig.cmake
%{_datadir}/kodi/cmake/AddonHelpers.cmake
%{_datadir}/kodi/cmake/AddOptions.cmake
%{_datadir}/kodi/cmake/ArchSetup.cmake
%{_datadir}/kodi/cmake/CheckCommits.cmake
%{_datadir}/kodi/cmake/CheckTargetPlatform.cmake
%{_datadir}/kodi/cmake/GenerateVersionedFiles.cmake
%{_datadir}/kodi/cmake/GeneratorSetup.cmake
%{_datadir}/kodi/cmake/HandleDepends.cmake
%{_datadir}/kodi/cmake/Macros.cmake
%{_datadir}/kodi/cmake/PrepareEnv.cmake
%{_datadir}/kodi/cmake/ProjectMacros.cmake
%{_datadir}/kodi/cmake/PathSetup.cmake


%files devel
%defattr(-,root,root)
%dir %{_includedir}/kodi
%{_includedir}/kodi/xbmc_epg_types.h
%{_includedir}/kodi/xbmc_addon_dll.h
%{_includedir}/kodi/xbmc_addon_types.h
%dir %{_includedir}/kodi/tools
%{_includedir}/kodi/tools/DllHelper.h
%{_includedir}/kodi/Filesystem.h
%{_includedir}/kodi/Network.h
%{_includedir}/kodi/libXBMC_pvr.h
%{_includedir}/kodi/libKODI_guilib.h
%{_includedir}/kodi/libKODI_game.h
%{_includedir}/kodi/kodi_game_dll.h
%{_includedir}/kodi/AddonBase.h
%{_includedir}/kodi/kodi_vfs_types.h
%{_includedir}/kodi/StreamCrypto.h
%{_includedir}/kodi/kodi_game_types.h
%{_includedir}/kodi/General.h
%dir %{_includedir}/kodi/platform
%dir %{_includedir}/kodi/platform/android
%{_includedir}/kodi/platform/android/System.h
%dir %{_includedir}/kodi/addon-instance
%{_includedir}/kodi/addon-instance/VideoCodec.h
%{_includedir}/kodi/addon-instance/Peripheral.h
%{_includedir}/kodi/addon-instance/AudioEncoder.h
%{_includedir}/kodi/addon-instance/Visualization.h
%{_includedir}/kodi/addon-instance/AudioDecoder.h
%{_includedir}/kodi/addon-instance/VFS.h
%{_includedir}/kodi/addon-instance/Inputstream.h
%{_includedir}/kodi/addon-instance/ImageDecoder.h
%{_includedir}/kodi/addon-instance/Screensaver.h
%{_includedir}/kodi/addon-instance/PeripheralUtils.h
%{_includedir}/kodi/libXBMC_addon.h
%{_includedir}/kodi/versions.h
%{_includedir}/kodi/xbmc_pvr_dll.h
%{_includedir}/kodi/xbmc_pvr_types.h
%{_includedir}/kodi/StreamCodec.h
%dir %{_includedir}/kodi/gui
%{_includedir}/kodi/gui/definitions.h
%{_includedir}/kodi/gui/Window.h
%{_includedir}/kodi/gui/General.h
%{_includedir}/kodi/gui/ListItem.h
%dir %{_includedir}/kodi/gui/dialogs
%{_includedir}/kodi/gui/dialogs/Select.h
%{_includedir}/kodi/gui/dialogs/OK.h
%{_includedir}/kodi/gui/dialogs/YesNo.h
%{_includedir}/kodi/gui/dialogs/Numeric.h
%{_includedir}/kodi/gui/dialogs/ExtendedProgress.h
%{_includedir}/kodi/gui/dialogs/FileBrowser.h
%{_includedir}/kodi/gui/dialogs/ContextMenu.h
%{_includedir}/kodi/gui/dialogs/Keyboard.h
%{_includedir}/kodi/gui/dialogs/Progress.h
%{_includedir}/kodi/gui/dialogs/TextViewer.h
%dir %{_includedir}/kodi/gui/controls
%{_includedir}/kodi/gui/controls/FadeLabel.h
%{_includedir}/kodi/gui/controls/Edit.h
%{_includedir}/kodi/gui/controls/TextBox.h
%{_includedir}/kodi/gui/controls/Progress.h
%{_includedir}/kodi/gui/controls/Rendering.h
%{_includedir}/kodi/gui/controls/Slider.h
%{_includedir}/kodi/gui/controls/Image.h
%{_includedir}/kodi/gui/controls/Label.h
%{_includedir}/kodi/gui/controls/SettingsSlider.h
%{_includedir}/kodi/gui/controls/RadioButton.h
%{_includedir}/kodi/gui/controls/Button.h
%{_includedir}/kodi/gui/controls/Spin.h
%{_includedir}/kodi/DemuxCrypto.h
%{_includedir}/kodi/DemuxPacket.h
%{_includedir}/kodi/TimingConstants.h
%{_includedir}/kodi/AEChannelData.h
%{_includedir}/kodi/IFileTypes.h
%{_includedir}/kodi/ActionIDs.h
%{_includedir}/kodi/XBMC_vkeys.h
%changelog