Kodi 18.0 beta configured
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
#global PRERELEASE rc4
|
%global PRERELEASE b3
|
||||||
%global DIRVERSION %{version}
|
#global DIRVERSION %{version}
|
||||||
#global GITCOMMIT Gotham_r2-ge988513
|
#global GITCOMMIT Gotham_r2-ge988513
|
||||||
# use the line below for pre-releases
|
# use the line below for pre-releases
|
||||||
#global DIRVERSION %{version}%{PRERELEASE}
|
%global DIRVERSION %{version}%{PRERELEASE}
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
# We support hte following options:
|
# We support hte following options:
|
||||||
# --with,
|
# --with,
|
||||||
# * dvd - Include optical drive support and DVD decryption
|
# * dvdcss - Include DVD decryption support
|
||||||
#
|
#
|
||||||
# Default: Do not ship DVD decryption for legal reasons
|
# Default: Do not ship DVD decryption for legal reasons
|
||||||
%bcond_with dvd
|
%bcond_with dvdcss
|
||||||
|
|
||||||
# Optional deps (not in EPEL)
|
# Optional deps (not in EPEL)
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
@@ -20,12 +20,17 @@
|
|||||||
%global _with_libssh 1
|
%global _with_libssh 1
|
||||||
%global _with_libcec 1
|
%global _with_libcec 1
|
||||||
%global _with_external_ffmpeg 1
|
%global _with_external_ffmpeg 1
|
||||||
%global _with_wayland 0
|
%global _with_wayland 1
|
||||||
|
%endif
|
||||||
|
%if 0%{?_with_wayland}
|
||||||
|
%global kodi_backends x11 wayland gbm
|
||||||
|
%else
|
||||||
|
%global kodi_backends x11 gbm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: kodi
|
Name: kodi
|
||||||
Version: 17.6
|
Version: 18.0
|
||||||
Release: 9%{?dist}
|
Release: 0.10.b3%{?dist}
|
||||||
Summary: Media center
|
Summary: Media center
|
||||||
|
|
||||||
License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD and MIT
|
License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD and MIT
|
||||||
@@ -39,48 +44,35 @@ Source0: %{name}-%{DIRVERSION}-patched.tar.xz
|
|||||||
# we use this script to remove the code before shipping it.
|
# we use this script to remove the code before shipping it.
|
||||||
# Invoke this script while in the directory where the tarball is located:
|
# Invoke this script while in the directory where the tarball is located:
|
||||||
# ./kodi-generate-tarball-xz.sh
|
# ./kodi-generate-tarball-xz.sh
|
||||||
Source1: kodi-generate-tarball-xz.sh
|
Source1: kodi-generate-tarball-xz-Leia.sh
|
||||||
|
|
||||||
%if %{with dvd}
|
|
||||||
# kodi uses modified libdvd{css,nav,read} source and downloads at build time
|
# kodi uses modified libdvd{css,nav,read} source and downloads at build time
|
||||||
# wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz
|
# wget -O kodi-libdvdnav-6.0.0-Leia-Alpha-3.tar.gz https://github.com/xbmc/libdvdnav/archive/6.0.0-Leia-Alpha-3.tar.gz
|
||||||
Source2: kodi-libdvdnav-master.tar.gz
|
Source2: kodi-libdvdnav-6.0.0-Leia-Alpha-3.tar.gz
|
||||||
# wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz
|
# wget -O kodi-libdvdread-6.0.0-Leia-Alpha-3.tar.gz https://github.com/xbmc/libdvdread/archive/6.0.0-Leia-Alpha-3.tar.gz
|
||||||
Source3: kodi-libdvdread-master.tar.gz
|
Source3: kodi-libdvdread-6.0.0-Leia-Alpha-3.tar.gz
|
||||||
# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz
|
%if %{with dvdcss}
|
||||||
Source4: kodi-libdvdcss-master.tar.gz
|
# wget -O kodi-libdvdcss-1.4.1-Leia-Alpha-3.tar.gz https://github.com/xbmc/libdvdcss/archive/1.4.1-Leia-Alpha-3.tar.gz
|
||||||
|
Source4: kodi-libdvdcss-1.4.1-Leia-Alpha-3.tar.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! 0%{?_with_external_ffmpeg}
|
%if ! 0%{?_with_external_ffmpeg}
|
||||||
# wget -O ffmpeg-3.1.11-Krypton-17.5.tar.gz https://github.com/xbmc/FFmpeg/archive/3.1.11-Krypton-17.5.tar.gz
|
# wget -O ffmpeg-4.0.2-Leia-Alpha3.tar.gz https://github.com/xbmc/FFmpeg/archive/4.0.2-Leia-Alpha3.tar.gz
|
||||||
Source5: ffmpeg-3.1.11-Krypton-17.5.tar.gz
|
Source5: ffmpeg-4.0.2-Leia-Alpha3.tar.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Set program version parameters
|
# Set program version parameters
|
||||||
Patch1: kodi-16.0-versioning.patch
|
Patch1: kodi-18.0-versioning.patch
|
||||||
|
|
||||||
%if ! %{with dvd}
|
# fix assert at startup
|
||||||
# Drop DVD library support
|
Patch2: kodi-18a1-assert.patch
|
||||||
Patch2: kodi-17a2-libdvd.patch
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# FFmpeg 3.5 support
|
|
||||||
Patch3: kodi-17.6-ffmpeg-3.5.patch
|
|
||||||
|
|
||||||
# https://trac.kodi.tv/ticket/17850
|
|
||||||
Patch4: kodi-17.6-array-segfault.patch
|
|
||||||
|
|
||||||
# Fixes broken audio that started with FFmpeg 3.4
|
|
||||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881536
|
|
||||||
Patch5: kodi-17.6-ffmpeg-3.4.patch
|
|
||||||
|
|
||||||
%ifarch x86_64 i686
|
%ifarch x86_64 i686
|
||||||
%global _with_crystalhd 1
|
%global _with_crystalhd 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Upstream does not support ppc64
|
# Upstream does not support ppc64
|
||||||
# ARM support is restricted to one GPU per build
|
ExcludeArch: %{power64} ppc64le
|
||||||
ExclusiveArch: i686 x86_64
|
|
||||||
|
|
||||||
BuildRequires: SDL2-devel
|
BuildRequires: SDL2-devel
|
||||||
BuildRequires: SDL_image-devel
|
BuildRequires: SDL_image-devel
|
||||||
@@ -101,22 +93,27 @@ BuildRequires: e2fsprogs-devel
|
|||||||
BuildRequires: enca-devel
|
BuildRequires: enca-devel
|
||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
BuildRequires: faad2-devel
|
BuildRequires: faad2-devel
|
||||||
|
BuildRequires: firewalld-filesystem
|
||||||
%if 0%{?_with_external_ffmpeg}
|
%if 0%{?_with_external_ffmpeg}
|
||||||
BuildRequires: ffmpeg-devel
|
BuildRequires: ffmpeg-devel
|
||||||
%else
|
|
||||||
BuildRequires: libidn2-devel
|
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: flac-devel
|
BuildRequires: flac-devel
|
||||||
|
BuildRequires: flatbuffers-devel
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
|
BuildRequires: fmt-devel
|
||||||
BuildRequires: fontconfig-devel
|
BuildRequires: fontconfig-devel
|
||||||
BuildRequires: fontpackages-devel
|
BuildRequires: fontpackages-devel
|
||||||
BuildRequires: freetype-devel
|
BuildRequires: freetype-devel
|
||||||
BuildRequires: fribidi-devel
|
BuildRequires: fribidi-devel
|
||||||
|
BuildRequires: fstrcmp-devel
|
||||||
%if 0%{?el6}
|
%if 0%{?el6}
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: gettext-autopoint
|
BuildRequires: gettext-autopoint
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: giflib-devel
|
||||||
BuildRequires: glew-devel
|
BuildRequires: glew-devel
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: gperf
|
BuildRequires: gperf
|
||||||
@@ -145,6 +142,8 @@ BuildRequires: libcrystalhd-devel
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libdca-devel
|
BuildRequires: libdca-devel
|
||||||
|
BuildRequires: libidn2-devel
|
||||||
|
BuildRequires: libinput-devel
|
||||||
%if 0%{?el6}
|
%if 0%{?el6}
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
%else
|
%else
|
||||||
@@ -171,29 +170,27 @@ BuildRequires: libssh-devel
|
|||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
%ifnarch %{arm}
|
|
||||||
BuildRequires: libva-devel
|
BuildRequires: libva-devel
|
||||||
BuildRequires: libvdpau-devel
|
BuildRequires: libvdpau-devel
|
||||||
%endif
|
|
||||||
BuildRequires: libvorbis-devel
|
BuildRequires: libvorbis-devel
|
||||||
%if 0%{?_with_wayland}
|
%if 0%{?_with_wayland}
|
||||||
BuildRequires: libwayland-client-devel
|
BuildRequires: libxkbcommon-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libxslt-devel
|
BuildRequires: libxslt-devel
|
||||||
BuildRequires: lzo-devel
|
BuildRequires: lzo-devel
|
||||||
BuildRequires: mariadb-devel
|
BuildRequires: mariadb-devel
|
||||||
# ARM uses GLES
|
|
||||||
%ifarch %{arm}
|
|
||||||
BuildRequires: mesa-libEGL-devel
|
BuildRequires: mesa-libEGL-devel
|
||||||
BuildRequires: mesa-libGLES-devel
|
BuildRequires: mesa-libGLES-devel
|
||||||
%endif
|
BuildRequires: mesa-libgbm-devel
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: pixman-devel
|
BuildRequires: pixman-devel
|
||||||
BuildRequires: pulseaudio-libs-devel
|
BuildRequires: pulseaudio-libs-devel
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-pillow
|
BuildRequires: python2-pillow
|
||||||
|
BuildRequires: /usr/bin/pathfix.py
|
||||||
|
BuildRequires: rapidjson-devel
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
@@ -203,11 +200,30 @@ BuildRequires: tre-devel
|
|||||||
BuildRequires: trousers-devel
|
BuildRequires: trousers-devel
|
||||||
BuildRequires: wavpack-devel
|
BuildRequires: wavpack-devel
|
||||||
%if 0%{?_with_wayland}
|
%if 0%{?_with_wayland}
|
||||||
BuildRequires: weston-devel
|
BuildRequires: wayland-protocols-devel
|
||||||
|
BuildRequires: waylandpp-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: yajl-devel
|
BuildRequires: yajl-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
|
# Install major backends, users can remove them individually
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
Requires: (%{name}-wayland = %{version}-%{release} if libwayland-server)
|
||||||
|
Requires: (%{name}-x11 = %{version}-%{release} if xorg-x11-server-Xorg)
|
||||||
|
Requires: (%{name}-firewalld = %{version}-%{release} if firewalld)
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Kodi 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.
|
||||||
|
|
||||||
|
This is a meta package.
|
||||||
|
|
||||||
|
|
||||||
|
%package common
|
||||||
|
Summary: Common Kodi files and binaries
|
||||||
Requires: dejavu-sans-fonts
|
Requires: dejavu-sans-fonts
|
||||||
# need explicit requires for these packages
|
# need explicit requires for these packages
|
||||||
# as they are dynamically loaded via XBMC's arcane
|
# as they are dynamically loaded via XBMC's arcane
|
||||||
@@ -238,17 +254,12 @@ Requires: xorg-x11-utils
|
|||||||
# and for installation
|
# and for installation
|
||||||
Requires: python2-pillow%{?_isa}
|
Requires: python2-pillow%{?_isa}
|
||||||
|
|
||||||
|
%description common
|
||||||
%description
|
Common Kodi files and binaries
|
||||||
Kodi 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
|
%package devel
|
||||||
Summary: Development files needed to compile C programs against kodi
|
Summary: Development files needed to compile C programs against kodi
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: xbmc-devel < 14.0
|
Obsoletes: xbmc-devel < 14.0
|
||||||
Provides: xbmc-devel = %{version}
|
Provides: xbmc-devel = %{version}
|
||||||
@@ -280,81 +291,100 @@ This package contains the development header files for the eventclients
|
|||||||
library.
|
library.
|
||||||
|
|
||||||
|
|
||||||
|
%package firewalld
|
||||||
|
Summary: FirewallD metadata files for Kodi
|
||||||
|
Requires: firewalld-filesystem
|
||||||
|
Requires(post): firewalld-filesystem
|
||||||
|
|
||||||
|
%description firewalld
|
||||||
|
This package contains FirewallD files for Kodi.
|
||||||
|
|
||||||
|
|
||||||
|
%package gbm
|
||||||
|
Summary: Kodi binary for Generic Buffer Management
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description gbm
|
||||||
|
This package contains the Kodi binary for Generic Buffer Management.
|
||||||
|
|
||||||
|
|
||||||
|
%package wayland
|
||||||
|
Summary: Kodi binary for Wayland compositors
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description wayland
|
||||||
|
This package contains the Kodi binary for Wayland compositors.
|
||||||
|
|
||||||
|
|
||||||
|
%package x11
|
||||||
|
Summary: Kodi binary for X11 servers
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description x11
|
||||||
|
This package contains the Kodi binary for X11 servers.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{DIRVERSION}
|
%setup -q -n %{name}-%{DIRVERSION}
|
||||||
%patch1 -p1 -b.versioning
|
%patch1 -p1 -b.versioning
|
||||||
%if %{with dvd}
|
%patch2 -p1 -b.assert
|
||||||
cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz
|
# Fix up Python shebangs
|
||||||
cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz
|
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" \
|
||||||
cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz
|
tools/EventClients/lib/python/zeroconf.py \
|
||||||
%else
|
tools/EventClients/Clients/PS3BDRemote/ps3_remote.py \
|
||||||
%patch2 -p1 -b.libdvd
|
tools/EventClients/lib/python/ps3/sixaxis.py \
|
||||||
%endif
|
tools/EventClients/lib/python/ps3/sixpair.py \
|
||||||
%if 0%{?_with_external_ffmpeg}
|
tools/EventClients/lib/python/ps3/sixwatch.py \
|
||||||
%patch3 -p1 -b.ffmpeg-3.5
|
tools/EventClients/Clients/KodiSend/kodi-send.py \
|
||||||
%patch5 -p1 -b.ffmpeg-3.4
|
tools/EventClients/lib/python/xbmcclient.py
|
||||||
%else
|
|
||||||
cp -p %{SOURCE5} tools/depends/target/ffmpeg/
|
|
||||||
%endif
|
|
||||||
%patch4 -p1 -b.array-segfault
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
chmod +x bootstrap
|
mkdir {fedora-gbm,fedora-wayland,fedora-x11}
|
||||||
./bootstrap
|
|
||||||
# Can't use export nor %%configure (implies using export), because
|
|
||||||
# the Makefile pile up *FLAGS in this case.
|
|
||||||
export PYTHON=/usr/bin/python%{python2_version}
|
|
||||||
|
|
||||||
./configure \
|
for BACKEND in %{kodi_backends}
|
||||||
--prefix=%{_prefix} --bindir=%{_bindir} --includedir=%{_includedir} \
|
do
|
||||||
--libdir=%{_libdir} --datadir=%{_datadir} \
|
pushd fedora-$BACKEND
|
||||||
--with-lirc-device=/var/run/lirc/lircd \
|
%cmake \
|
||||||
%if 0%{?_with_external_ffmpeg}
|
%if %{with dvdcss}
|
||||||
--with-ffmpeg=shared \
|
-DLIBDVDCSS_URL=%{SOURCE4} \
|
||||||
%endif
|
|
||||||
%if 0%{?_with_wayland}
|
|
||||||
--enable-wayland \
|
|
||||||
%endif
|
|
||||||
--enable-pulse \
|
|
||||||
%if 0%{?_with_libcec}
|
|
||||||
--enable-libcec \
|
|
||||||
%else
|
%else
|
||||||
--disable-libcec \
|
-DENABLE_DVDCSS=OFF \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?_with_libssh}
|
%if ! 0%{?_with_external_ffmpeg}
|
||||||
--enable-ssh \
|
-DFFMPEG_URL=%{SOURCE5} \
|
||||||
|
%endif
|
||||||
|
-DENABLE_EVENTCLIENTS=ON \
|
||||||
|
-DENABLE_INTERNAL_CROSSGUID=OFF \
|
||||||
|
-DLIRC_DEVICE=/var/run/lirc/lircd \
|
||||||
|
-DLIBDVDNAV_URL=%{SOURCE2} \
|
||||||
|
-DLIBDVDREAD_URL=%{SOURCE3} \
|
||||||
|
-DPYTHON_EXECUTABLE=%{__python2} \
|
||||||
|
-DCORE_PLATFORM_NAME=$BACKEND \
|
||||||
|
%ifarch x86_64 i686
|
||||||
|
-DWAYLAND_RENDER_SYSTEM=gl \
|
||||||
|
-DGBM_RENDER_SYSTEM=gl \
|
||||||
%else
|
%else
|
||||||
--disable-ssh \
|
-DWAYLAND_RENDER_SYSTEM=gles \
|
||||||
|
-DGBM_RENDER_SYSTEM=gles \
|
||||||
%endif
|
%endif
|
||||||
%if ! %{with dvd}
|
../
|
||||||
--disable-optical-drive \
|
cmake --build . -- VERBOSE=1 %{?_smp_mflags}
|
||||||
%endif
|
popd
|
||||||
--disable-optimizations --disable-debug \
|
done
|
||||||
%ifnarch %{arm}
|
|
||||||
--enable-gl \
|
|
||||||
--disable-gles \
|
|
||||||
--enable-vdpau \
|
|
||||||
%else
|
|
||||||
--enable-gles \
|
|
||||||
--disable-vdpau \
|
|
||||||
--disable-vaapi \
|
|
||||||
%ifarch armv7hl \
|
|
||||||
--enable-tegra \
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/ -D__STDC_CONSTANT_MACROS" \
|
|
||||||
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/ -D__STDC_CONSTANT_MACROS" \
|
|
||||||
LDFLAGS="`echo "$RPM_LD_FLAGS -fPIC" | sed -e 's/-Wl,-z,defs//'`" \
|
|
||||||
ASFLAGS=-fPIC
|
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
for BACKEND in %{kodi_backends}
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
do
|
||||||
make -C tools/EventClients DESTDIR=$RPM_BUILD_ROOT install
|
pushd fedora-$BACKEND
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags} install
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
|
||||||
# remove the doc files from unversioned /usr/share/doc/xbmc, they should be in versioned docdir
|
# remove the doc files from unversioned /usr/share/doc/xbmc, they should be in versioned docdir
|
||||||
rm -r $RPM_BUILD_ROOT/%{_datadir}/doc/
|
rm -r $RPM_BUILD_ROOT/%{_datadir}/doc/
|
||||||
|
|
||||||
@@ -368,9 +398,9 @@ rm -f $RPM_BUILD_ROOT/%{_datadir}/xsessions/xbmc.desktop
|
|||||||
# Normally we are expected to build these manually. But since we are using
|
# Normally we are expected to build these manually. But since we are using
|
||||||
# the system Python interpreter, we also want to use the system libraries
|
# the system Python interpreter, we also want to use the system libraries
|
||||||
install -d $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib
|
install -d $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib
|
||||||
ln -s %{python_sitearch}/PIL $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib/PIL
|
ln -s %{python2_sitearch}/PIL $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib/PIL
|
||||||
#install -d $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib
|
#install -d $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib
|
||||||
#ln -s %{python_sitearch}/pysqlite2 $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib/pysqlite2
|
#ln -s %{python2_sitearch}/pysqlite2 $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib/pysqlite2
|
||||||
|
|
||||||
# Use external font files instead of bundled ones
|
# Use external font files instead of bundled ones
|
||||||
ln -sf %{_fontbasedir}/dejavu/DejaVuSans-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.estouchy/fonts/
|
ln -sf %{_fontbasedir}/dejavu/DejaVuSans-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.estouchy/fonts/
|
||||||
@@ -380,36 +410,23 @@ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/
|
|||||||
mv docs/manpages ${RPM_BUILD_ROOT}%{_mandir}/man1/
|
mv docs/manpages ${RPM_BUILD_ROOT}%{_mandir}/man1/
|
||||||
|
|
||||||
|
|
||||||
%posttrans
|
%post firewalld
|
||||||
if [ ! -L %{_libdir}/xbmc ] ; then
|
%firewalld_reload
|
||||||
if [ -d %{_libdir}/xbmc ] ; then
|
|
||||||
rmdir %{_libdir}/xbmc %{_datadir}/xbmc
|
|
||||||
fi
|
|
||||||
ln -s kodi ${RPM_BUILD_ROOT}%{_libdir}/xbmc
|
|
||||||
ln -s kodi ${RPM_BUILD_ROOT}%{_datadir}/xbmc
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%posttrans devel
|
|
||||||
if [ ! -L %{_includedir}/xbmc ] ; then
|
|
||||||
if [ -d %{_includedir}/xbmc ] ; then
|
|
||||||
rmdir %{_includedir}/xbmc
|
|
||||||
fi
|
|
||||||
ln -s kodi ${RPM_BUILD_ROOT}%{_includedir}/xbmc
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license copying.txt LICENSE.GPL
|
|
||||||
%doc CONTRIBUTING.md README.md docs
|
|
||||||
|
%files common
|
||||||
|
%license LICENSE.md LICENSES/
|
||||||
|
%doc README.md docs
|
||||||
%{_bindir}/kodi
|
%{_bindir}/kodi
|
||||||
%{_bindir}/kodi-standalone
|
%{_bindir}/kodi-standalone
|
||||||
%{_bindir}/xbmc
|
%{_bindir}/TexturePacker
|
||||||
%{_bindir}/xbmc-standalone
|
%dir %{_libdir}/kodi/
|
||||||
%{_libdir}/kodi
|
%{_libdir}/kodi/addons/
|
||||||
%ghost %{_libdir}/xbmc
|
%{_libdir}/kodi/system/
|
||||||
%{_datadir}/kodi
|
%{_datadir}/kodi/
|
||||||
%ghost %{_datadir}/xbmc
|
|
||||||
%{_datadir}/xsessions/kodi.desktop
|
%{_datadir}/xsessions/kodi.desktop
|
||||||
%{_datadir}/applications/kodi.desktop
|
%{_datadir}/applications/kodi.desktop
|
||||||
%{_datadir}/icons/hicolor/*/*/*.png
|
%{_datadir}/icons/hicolor/*/*/*.png
|
||||||
@@ -420,21 +437,18 @@ fi
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/kodi
|
%{_includedir}/kodi
|
||||||
%ghost %{_includedir}/xbmc
|
|
||||||
|
|
||||||
|
|
||||||
%files eventclients
|
%files eventclients
|
||||||
%license copying.txt LICENSE.GPL
|
%license LICENSE.md LICENSES/
|
||||||
%{python2_sitelib}/kodi
|
%{python2_sitelib}/kodi
|
||||||
%dir %{_datadir}/pixmaps/kodi
|
%dir %{_datadir}/pixmaps/kodi
|
||||||
%{_datadir}/pixmaps/kodi/*.png
|
%{_datadir}/pixmaps/kodi/*.png
|
||||||
%{_bindir}/kodi-ps3d
|
|
||||||
%{_bindir}/kodi-ps3remote
|
%{_bindir}/kodi-ps3remote
|
||||||
%{_bindir}/kodi-send
|
%{_bindir}/kodi-send
|
||||||
%{_bindir}/kodi-wiiremote
|
%{_bindir}/kodi-wiiremote
|
||||||
%{_mandir}/man1/kodi-ps3remote.1.gz
|
%{_mandir}/man1/kodi-ps3remote.1.gz
|
||||||
%{_mandir}/man1/kodi-send.1.gz
|
%{_mandir}/man1/kodi-send.1.gz
|
||||||
%{_mandir}/man1/kodi-standalone.1.gz
|
|
||||||
%{_mandir}/man1/kodi-wiiremote.1.gz
|
%{_mandir}/man1/kodi-wiiremote.1.gz
|
||||||
|
|
||||||
|
|
||||||
@@ -442,9 +456,29 @@ fi
|
|||||||
%{_includedir}/kodi/xbmcclient.h
|
%{_includedir}/kodi/xbmcclient.h
|
||||||
|
|
||||||
|
|
||||||
|
%files firewalld
|
||||||
|
%license LICENSE.md LICENSES/
|
||||||
|
%{_prefix}/lib/firewalld/services/kodi-eventserver.xml
|
||||||
|
%{_prefix}/lib/firewalld/services/kodi-http.xml
|
||||||
|
%{_prefix}/lib/firewalld/services/kodi-jsonrpc.xml
|
||||||
|
|
||||||
|
|
||||||
|
%files gbm
|
||||||
|
%{_libdir}/kodi/kodi-gbm
|
||||||
|
|
||||||
|
|
||||||
|
%files wayland
|
||||||
|
%{_libdir}/kodi/kodi-wayland
|
||||||
|
|
||||||
|
|
||||||
|
%files x11
|
||||||
|
%{_libdir}/kodi/kodi-x11
|
||||||
|
%{_libdir}/kodi/kodi-xrandr
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu May 03 2018 Michael Cronenworth <mike@cchtml.com> - 17.6-9
|
* Thu Oct 11 2018 Nicolas Chauvet <kwizart@gmail.com> - 18.0-0.10.b3
|
||||||
- Add patch for audio skipping (RFBZ#4882)
|
- Update to beta3
|
||||||
|
|
||||||
* Mon Apr 23 2018 Michael Cronenworth <mike@cchtml.com> - 17.6-8
|
* Mon Apr 23 2018 Michael Cronenworth <mike@cchtml.com> - 17.6-8
|
||||||
- Add patch for crash on startup (RFBZ#4863)
|
- Add patch for crash on startup (RFBZ#4863)
|
||||||
@@ -601,12 +635,6 @@ fi
|
|||||||
* Tue Sep 02 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.2.alpha3
|
* Tue Sep 02 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.2.alpha3
|
||||||
- Update to 14.0 alpha 3
|
- Update to 14.0 alpha 3
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
* Tue Jul 18 2017 Daniel Steiner <dsteiner@redhat.com> - 17.3-1
|
|
||||||
- Kodi 17.3 final for Fedora 26
|
|
||||||
|
|
||||||
=======
|
|
||||||
* Sun Aug 24 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.1.alpha2
|
* Sun Aug 24 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.1.alpha2
|
||||||
- Update to 14.0 alpha 2
|
- Update to 14.0 alpha 2
|
||||||
- Renamed XBMC to Kodi
|
- Renamed XBMC to Kodi
|
||||||
>>>>>>> 28f9d02e7a6b75386b6824444b2146115015b591
|
|
||||||
|
|||||||
Reference in New Issue
Block a user