2018-10-13 16:38:22 +02:00
|
|
|
%global PRERELEASE b3
|
|
|
|
|
#global DIRVERSION %{version}
|
2017-02-22 18:21:37 +01:00
|
|
|
#global GITCOMMIT Gotham_r2-ge988513
|
|
|
|
|
# use the line below for pre-releases
|
2018-10-13 16:38:22 +02:00
|
|
|
%global DIRVERSION %{version}%{PRERELEASE}
|
2017-02-22 18:21:37 +01:00
|
|
|
%global _hardened_build 1
|
2018-05-31 20:38:35 +02:00
|
|
|
|
|
|
|
|
# We support hte following options:
|
|
|
|
|
# --with,
|
2018-10-13 16:38:22 +02:00
|
|
|
# * dvdcss - Include DVD decryption support
|
2018-05-31 20:38:35 +02:00
|
|
|
#
|
|
|
|
|
# Default: Do not ship DVD decryption for legal reasons
|
2018-10-13 16:38:22 +02:00
|
|
|
%bcond_with dvdcss
|
2018-05-31 20:38:35 +02:00
|
|
|
|
|
|
|
|
# Optional deps (not in EPEL)
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
# (libbluray in EPEL 6 is too old.)
|
|
|
|
|
%global _with_libbluray 1
|
|
|
|
|
%global _with_cwiid 1
|
|
|
|
|
%global _with_libssh 1
|
|
|
|
|
%global _with_libcec 1
|
2018-07-20 01:25:09 +02:00
|
|
|
%global _with_external_ffmpeg 1
|
2018-10-13 16:38:22 +02:00
|
|
|
%global _with_wayland 1
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?_with_wayland}
|
|
|
|
|
%global kodi_backends x11 wayland gbm
|
|
|
|
|
%else
|
|
|
|
|
%global kodi_backends x11 gbm
|
2018-05-31 20:38:35 +02:00
|
|
|
%endif
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
Name: kodi
|
2018-10-13 16:38:22 +02:00
|
|
|
Version: 18.0
|
|
|
|
|
Release: 0.10.b3%{?dist}
|
2017-02-22 18:21:37 +01:00
|
|
|
Summary: Media center
|
|
|
|
|
|
|
|
|
|
License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD and MIT
|
|
|
|
|
# Main binary and all supporting files are GPLv2+/GPLv3+
|
|
|
|
|
# Some supporting libraries use the LGPL / BSD / MIT license
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
URL: http://www.kodi.tv/
|
|
|
|
|
Source0: %{name}-%{DIRVERSION}-patched.tar.xz
|
|
|
|
|
# kodi contains code that we cannot ship, as well as redundant private
|
|
|
|
|
# copies of upstream libraries that we already distribute. Therefore
|
|
|
|
|
# we use this script to remove the code before shipping it.
|
|
|
|
|
# Invoke this script while in the directory where the tarball is located:
|
|
|
|
|
# ./kodi-generate-tarball-xz.sh
|
2018-10-13 16:38:22 +02:00
|
|
|
Source1: kodi-generate-tarball-xz-Leia.sh
|
2017-02-22 18:21:37 +01:00
|
|
|
|
2017-07-18 18:29:15 +02:00
|
|
|
# kodi uses modified libdvd{css,nav,read} source and downloads at build time
|
2018-10-13 16:38:22 +02:00
|
|
|
# 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-6.0.0-Leia-Alpha-3.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-6.0.0-Leia-Alpha-3.tar.gz
|
|
|
|
|
%if %{with dvdcss}
|
|
|
|
|
# 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
|
2017-07-18 18:29:15 +02:00
|
|
|
%endif
|
2017-02-22 18:21:37 +01:00
|
|
|
|
2018-05-31 20:38:35 +02:00
|
|
|
%if ! 0%{?_with_external_ffmpeg}
|
2018-10-13 16:38:22 +02:00
|
|
|
# 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-4.0.2-Leia-Alpha3.tar.gz
|
2018-05-31 20:38:35 +02:00
|
|
|
%endif
|
|
|
|
|
|
2017-02-22 18:21:37 +01:00
|
|
|
# Set program version parameters
|
2018-10-13 16:38:22 +02:00
|
|
|
Patch1: kodi-18.0-versioning.patch
|
2017-02-22 18:21:37 +01:00
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
# fix assert at startup
|
|
|
|
|
Patch2: kodi-18a1-assert.patch
|
2018-05-31 20:38:35 +02:00
|
|
|
|
2017-02-22 18:21:37 +01:00
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
%global _with_crystalhd 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Upstream does not support ppc64
|
2018-10-13 16:38:22 +02:00
|
|
|
ExcludeArch: %{power64} ppc64le
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
BuildRequires: SDL2-devel
|
|
|
|
|
BuildRequires: SDL_image-devel
|
|
|
|
|
BuildRequires: a52dec-devel
|
|
|
|
|
BuildRequires: afpfs-ng-devel
|
|
|
|
|
BuildRequires: avahi-devel
|
|
|
|
|
BuildRequires: bluez-libs-devel
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: crossguid-devel
|
|
|
|
|
%if 0%{?_with_cwiid}
|
|
|
|
|
BuildRequires: cwiid-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
|
BuildRequires: enca-devel
|
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
|
BuildRequires: faad2-devel
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: firewalld-filesystem
|
2017-02-22 18:21:37 +01:00
|
|
|
%if 0%{?_with_external_ffmpeg}
|
|
|
|
|
BuildRequires: ffmpeg-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: flac-devel
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: flatbuffers-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: flex
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: fmt-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
|
BuildRequires: fontpackages-devel
|
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
|
BuildRequires: fribidi-devel
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: fstrcmp-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
%if 0%{?el6}
|
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: gettext-autopoint
|
|
|
|
|
%endif
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: giflib-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: glew-devel
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: gperf
|
|
|
|
|
BuildRequires: jasper-devel
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
|
BuildRequires: lame-devel
|
2017-07-18 18:29:15 +02:00
|
|
|
BuildRequires: lcms2-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: libXinerama-devel
|
|
|
|
|
BuildRequires: libXmu-devel
|
|
|
|
|
BuildRequires: libXtst-devel
|
|
|
|
|
BuildRequires: libass-devel >= 0.9.7
|
|
|
|
|
%if 0%{?_with_libbluray}
|
|
|
|
|
BuildRequires: libbluray-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
|
BuildRequires: libcdio-devel
|
|
|
|
|
%if 0%{?_with_libcec}
|
2017-07-18 18:29:15 +02:00
|
|
|
%if 0%{?fedora} > 24
|
|
|
|
|
BuildRequires: libcec-devel >= 4.0.0
|
|
|
|
|
%else
|
2018-07-20 01:25:09 +02:00
|
|
|
BuildRequires: libcec-devel < 4.0.0
|
2017-07-18 18:29:15 +02:00
|
|
|
%endif
|
2017-02-22 18:21:37 +01:00
|
|
|
%endif
|
|
|
|
|
%if 0%{?_with_crystalhd}
|
|
|
|
|
BuildRequires: libcrystalhd-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
|
BuildRequires: libdca-devel
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: libidn2-devel
|
|
|
|
|
BuildRequires: libinput-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
%if 0%{?el6}
|
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libmad-devel
|
|
|
|
|
BuildRequires: libmicrohttpd-devel
|
|
|
|
|
BuildRequires: libmms-devel
|
|
|
|
|
BuildRequires: libmodplug-devel
|
|
|
|
|
BuildRequires: libmpcdec-devel
|
|
|
|
|
BuildRequires: libmpeg2-devel
|
|
|
|
|
BuildRequires: libnfs-devel
|
|
|
|
|
BuildRequires: libogg-devel
|
|
|
|
|
# for AirPlay support
|
|
|
|
|
BuildRequires: shairplay-devel
|
|
|
|
|
BuildRequires: libplist-devel
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
BuildRequires: librtmp-devel
|
|
|
|
|
BuildRequires: libsamplerate-devel
|
|
|
|
|
BuildRequires: libsmbclient-devel
|
|
|
|
|
%if 0%{?_with_libssh}
|
|
|
|
|
BuildRequires: libssh-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
|
BuildRequires: libva-devel
|
|
|
|
|
BuildRequires: libvdpau-devel
|
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
|
%if 0%{?_with_wayland}
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: libxkbcommon-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
%endif
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
|
BuildRequires: lzo-devel
|
|
|
|
|
BuildRequires: mariadb-devel
|
|
|
|
|
BuildRequires: mesa-libEGL-devel
|
|
|
|
|
BuildRequires: mesa-libGLES-devel
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: mesa-libgbm-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: nasm
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
BuildRequires: pixman-devel
|
|
|
|
|
BuildRequires: pulseaudio-libs-devel
|
2018-05-31 20:38:35 +02:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-pillow
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: /usr/bin/pathfix.py
|
|
|
|
|
BuildRequires: rapidjson-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: systemd-devel
|
2018-05-31 20:38:35 +02:00
|
|
|
BuildRequires: taglib-devel >= 1.10
|
2017-02-22 18:21:37 +01:00
|
|
|
BuildRequires: tinyxml-devel
|
|
|
|
|
BuildRequires: tre-devel
|
|
|
|
|
BuildRequires: trousers-devel
|
|
|
|
|
BuildRequires: wavpack-devel
|
|
|
|
|
%if 0%{?_with_wayland}
|
2018-10-13 16:38:22 +02:00
|
|
|
BuildRequires: wayland-protocols-devel
|
|
|
|
|
BuildRequires: waylandpp-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
%endif
|
|
|
|
|
BuildRequires: yajl-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
# 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
|
2017-07-18 18:29:15 +02:00
|
|
|
Requires: dejavu-sans-fonts
|
2017-02-22 18:21:37 +01:00
|
|
|
# need explicit requires for these packages
|
|
|
|
|
# as they are dynamically loaded via XBMC's arcane
|
|
|
|
|
# pseudo-DLL loading scheme (sigh)
|
|
|
|
|
%if 0%{?_with_libbluray}
|
|
|
|
|
Requires: libbluray%{?_isa}
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?_with_libcec}
|
2017-07-18 18:29:15 +02:00
|
|
|
%if 0%{?fedora} > 24
|
|
|
|
|
Requires: libcec%{?_isa} >= 4.0.0
|
|
|
|
|
%else
|
2018-07-20 01:25:09 +02:00
|
|
|
Requires: libcec%{?_isa} < 4.0.0
|
2017-07-18 18:29:15 +02:00
|
|
|
%endif
|
2017-02-22 18:21:37 +01:00
|
|
|
%endif
|
|
|
|
|
%if 0%{?_with_crystalhd}
|
|
|
|
|
Requires: libcrystalhd%{?_isa}
|
|
|
|
|
%endif
|
|
|
|
|
Requires: libmad%{?_isa}
|
|
|
|
|
Requires: librtmp%{?_isa}
|
|
|
|
|
Requires: shairplay-libs%{?_isa}
|
|
|
|
|
|
|
|
|
|
# needed when doing a minimal install, see
|
|
|
|
|
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1844
|
|
|
|
|
Requires: glx-utils
|
|
|
|
|
Requires: xorg-x11-utils
|
|
|
|
|
|
|
|
|
|
# This is just symlinked to, but needed both at build-time
|
|
|
|
|
# and for installation
|
2018-05-31 20:38:35 +02:00
|
|
|
Requires: python2-pillow%{?_isa}
|
2017-02-22 18:21:37 +01:00
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
%description common
|
|
|
|
|
Common Kodi files and binaries
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files needed to compile C programs against kodi
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2018-07-20 01:25:09 +02:00
|
|
|
Obsoletes: xbmc-devel < 14.0
|
2017-02-22 18:21:37 +01:00
|
|
|
Provides: xbmc-devel = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Kodi is a free cross-platform media-player jukebox and entertainment hub.
|
|
|
|
|
If you want to develop programs which use Kodi's libraries, you need to
|
|
|
|
|
install this package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package eventclients
|
|
|
|
|
Summary: Media center event client remotes
|
2018-07-20 01:25:09 +02:00
|
|
|
Obsoletes: xbmc-eventclients < 14.0
|
2017-02-22 18:21:37 +01:00
|
|
|
Provides: xbmc-eventclients = %{version}
|
|
|
|
|
|
|
|
|
|
%description eventclients
|
|
|
|
|
This package contains support for using Kodi with the PS3 Remote, the Wii
|
|
|
|
|
Remote, a J2ME based remote and the command line xbmc-send utility.
|
|
|
|
|
|
|
|
|
|
%package eventclients-devel
|
|
|
|
|
Summary: Media center event client remotes development files
|
|
|
|
|
Requires: %{name}-eventclients%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
2018-07-20 01:25:09 +02:00
|
|
|
Obsoletes: xbmc-eventclients-devel < 14.0
|
2017-02-22 18:21:37 +01:00
|
|
|
Provides: xbmc-eventclients-devel = %{version}
|
|
|
|
|
|
|
|
|
|
%description eventclients-devel
|
|
|
|
|
This package contains the development header files for the eventclients
|
|
|
|
|
library.
|
|
|
|
|
|
|
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
2017-02-22 18:21:37 +01:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{DIRVERSION}
|
2017-07-18 18:29:15 +02:00
|
|
|
%patch1 -p1 -b.versioning
|
2018-10-13 16:38:22 +02:00
|
|
|
%patch2 -p1 -b.assert
|
|
|
|
|
# Fix up Python shebangs
|
|
|
|
|
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" \
|
|
|
|
|
tools/EventClients/lib/python/zeroconf.py \
|
|
|
|
|
tools/EventClients/Clients/PS3BDRemote/ps3_remote.py \
|
|
|
|
|
tools/EventClients/lib/python/ps3/sixaxis.py \
|
|
|
|
|
tools/EventClients/lib/python/ps3/sixpair.py \
|
|
|
|
|
tools/EventClients/lib/python/ps3/sixwatch.py \
|
|
|
|
|
tools/EventClients/Clients/KodiSend/kodi-send.py \
|
|
|
|
|
tools/EventClients/lib/python/xbmcclient.py
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2018-10-13 16:38:22 +02:00
|
|
|
mkdir {fedora-gbm,fedora-wayland,fedora-x11}
|
2017-02-22 18:21:37 +01:00
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
for BACKEND in %{kodi_backends}
|
|
|
|
|
do
|
|
|
|
|
pushd fedora-$BACKEND
|
|
|
|
|
%cmake \
|
|
|
|
|
%if %{with dvdcss}
|
|
|
|
|
-DLIBDVDCSS_URL=%{SOURCE4} \
|
2017-02-22 18:21:37 +01:00
|
|
|
%else
|
2018-10-13 16:38:22 +02:00
|
|
|
-DENABLE_DVDCSS=OFF \
|
2017-02-22 18:21:37 +01:00
|
|
|
%endif
|
2018-10-13 16:38:22 +02:00
|
|
|
%if ! 0%{?_with_external_ffmpeg}
|
|
|
|
|
-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 \
|
2017-02-22 18:21:37 +01:00
|
|
|
%else
|
2018-10-13 16:38:22 +02:00
|
|
|
-DWAYLAND_RENDER_SYSTEM=gles \
|
|
|
|
|
-DGBM_RENDER_SYSTEM=gles \
|
2017-02-22 18:21:37 +01:00
|
|
|
%endif
|
2018-10-13 16:38:22 +02:00
|
|
|
../
|
|
|
|
|
cmake --build . -- VERBOSE=1 %{?_smp_mflags}
|
|
|
|
|
popd
|
|
|
|
|
done
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2018-10-13 16:38:22 +02:00
|
|
|
for BACKEND in %{kodi_backends}
|
|
|
|
|
do
|
|
|
|
|
pushd fedora-$BACKEND
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags} install
|
|
|
|
|
popd
|
|
|
|
|
done
|
|
|
|
|
|
2017-02-22 18:21:37 +01:00
|
|
|
# remove the doc files from unversioned /usr/share/doc/xbmc, they should be in versioned docdir
|
|
|
|
|
rm -r $RPM_BUILD_ROOT/%{_datadir}/doc/
|
|
|
|
|
|
|
|
|
|
desktop-file-install \
|
|
|
|
|
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
|
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/kodi.desktop
|
|
|
|
|
|
2017-07-18 18:29:15 +02:00
|
|
|
# Stop shipping the duplicate xsession file
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_datadir}/xsessions/xbmc.desktop
|
|
|
|
|
|
2017-02-22 18:21:37 +01:00
|
|
|
# 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
|
|
|
|
|
install -d $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib
|
2018-10-13 16:38:22 +02:00
|
|
|
ln -s %{python2_sitearch}/PIL $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib/PIL
|
2017-02-22 18:21:37 +01:00
|
|
|
#install -d $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib
|
2018-10-13 16:38:22 +02:00
|
|
|
#ln -s %{python2_sitearch}/pysqlite2 $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib/pysqlite2
|
2017-02-22 18:21:37 +01:00
|
|
|
|
2017-07-18 18:29:15 +02:00
|
|
|
# Use external font files instead of bundled ones
|
|
|
|
|
ln -sf %{_fontbasedir}/dejavu/DejaVuSans-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.estouchy/fonts/
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
# Move man-pages into system dir
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/
|
|
|
|
|
mv docs/manpages ${RPM_BUILD_ROOT}%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
%post firewalld
|
|
|
|
|
%firewalld_reload
|
2017-02-22 18:21:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-10-13 16:38:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%files common
|
|
|
|
|
%license LICENSE.md LICENSES/
|
|
|
|
|
%doc README.md docs
|
2017-02-22 18:21:37 +01:00
|
|
|
%{_bindir}/kodi
|
|
|
|
|
%{_bindir}/kodi-standalone
|
2018-10-13 16:38:22 +02:00
|
|
|
%{_bindir}/TexturePacker
|
|
|
|
|
%dir %{_libdir}/kodi/
|
|
|
|
|
%{_libdir}/kodi/addons/
|
|
|
|
|
%{_libdir}/kodi/system/
|
|
|
|
|
%{_datadir}/kodi/
|
2017-02-22 18:21:37 +01:00
|
|
|
%{_datadir}/xsessions/kodi.desktop
|
|
|
|
|
%{_datadir}/applications/kodi.desktop
|
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*.png
|
|
|
|
|
%{_mandir}/man1/kodi.1.gz
|
|
|
|
|
%{_mandir}/man1/kodi.bin.1.gz
|
|
|
|
|
%{_mandir}/man1/kodi-standalone.1.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/kodi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files eventclients
|
2018-10-13 16:38:22 +02:00
|
|
|
%license LICENSE.md LICENSES/
|
2018-05-31 20:38:35 +02:00
|
|
|
%{python2_sitelib}/kodi
|
2017-02-22 18:21:37 +01:00
|
|
|
%dir %{_datadir}/pixmaps/kodi
|
|
|
|
|
%{_datadir}/pixmaps/kodi/*.png
|
|
|
|
|
%{_bindir}/kodi-ps3remote
|
|
|
|
|
%{_bindir}/kodi-send
|
|
|
|
|
%{_bindir}/kodi-wiiremote
|
|
|
|
|
%{_mandir}/man1/kodi-ps3remote.1.gz
|
|
|
|
|
%{_mandir}/man1/kodi-send.1.gz
|
|
|
|
|
%{_mandir}/man1/kodi-wiiremote.1.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files eventclients-devel
|
|
|
|
|
%{_includedir}/kodi/xbmcclient.h
|
|
|
|
|
|
|
|
|
|
|
2018-10-13 16:38:22 +02:00
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
2017-02-22 18:21:37 +01:00
|
|
|
%changelog
|
2018-10-13 16:38:22 +02:00
|
|
|
* Thu Oct 11 2018 Nicolas Chauvet <kwizart@gmail.com> - 18.0-0.10.b3
|
|
|
|
|
- Update to beta3
|
2018-05-31 20:38:35 +02:00
|
|
|
|
2018-07-20 01:25:09 +02:00
|
|
|
* Mon Apr 23 2018 Michael Cronenworth <mike@cchtml.com> - 17.6-8
|
|
|
|
|
- Add patch for crash on startup (RFBZ#4863)
|
2018-02-23 21:26:48 +01:00
|
|
|
|
2018-07-20 01:25:09 +02:00
|
|
|
* Thu Mar 08 2018 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 17.6-7
|
|
|
|
|
- Rebuilt for new ffmpeg snapshot
|
2017-12-09 11:01:38 +01:00
|
|
|
|
2018-07-20 01:25:09 +02:00
|
|
|
* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 17.6-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
2017-09-16 17:24:26 +02:00
|
|
|
|
2018-07-20 01:25:09 +02:00
|
|
|
* Tue Feb 06 2018 Leigh Scott <leigh123linux@googlemail.com> - 17.6-5
|
|
|
|
|
- Rebuild for boost-1.66
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2018 Michael Cronenworth <mike@cchtml.com> - 17.6-4
|
|
|
|
|
- ffmpeg-3.5 support
|
|
|
|
|
- Make dvd support an rpm build conditional
|
|
|
|
|
|
|
|
|
|
* Thu Jan 18 2018 Leigh Scott <leigh123linux@googlemail.com> - 17.6-3
|
|
|
|
|
- Rebuilt for ffmpeg-3.5 git
|
|
|
|
|
|
|
|
|
|
* Mon Jan 15 2018 Nicolas Chauvet <kwizart@gmail.com> - 17.6-2
|
|
|
|
|
- Rebuilt for VA-API 1.0.0
|
|
|
|
|
|
|
|
|
|
* Fri Nov 17 2017 Michael Cronenworth <mike@cchtml.com> - 17.6-1
|
|
|
|
|
- Kodi 17.6 final
|
|
|
|
|
|
|
|
|
|
* Wed Oct 25 2017 Michael Cronenworth <mike@cchtml.com> - 17.5-1
|
|
|
|
|
- Kodi 17.5 final
|
|
|
|
|
|
|
|
|
|
* Wed Aug 23 2017 Michael Cronenworth <mike@cchtml.com> - 17.4-1
|
|
|
|
|
- Kodi 17.4 final
|
|
|
|
|
|
|
|
|
|
* Wed May 31 2017 Michael Cronenworth <mike@cchtml.com> - 17.3-1
|
|
|
|
|
- Kodi 17.3 final
|
|
|
|
|
|
|
|
|
|
* Wed May 24 2017 Michael Cronenworth <mike@cchtml.com> - 17.2-1
|
|
|
|
|
- Kodi 17.2 final
|
|
|
|
|
|
|
|
|
|
* Sat Apr 29 2017 Leigh Scott <leigh123linux@googlemail.com> - 17.1-2
|
|
|
|
|
- Rebuild for ffmpeg update
|
|
|
|
|
|
|
|
|
|
* Tue Mar 28 2017 Michael Cronenworth <mike@cchtml.com> - 17.1-1
|
|
|
|
|
- Kodi 17.1 final
|
|
|
|
|
|
|
|
|
|
* Sun Mar 19 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 17.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Feb 02 2017 Michael Cronenworth <mike@cchtml.com> - 17.0-1
|
|
|
|
|
- Kodi 17.0 final
|
|
|
|
|
|
|
|
|
|
* Fri Jan 27 2017 Michael Cronenworth <mike@cchtml.com> - 17.0-0.12.rc4
|
|
|
|
|
- Kodi 17 RC4
|
|
|
|
|
|
|
|
|
|
* Mon Jan 16 2017 Michael Cronenworth <mike@cchtml.com> - 17.0-0.12.rc3
|
|
|
|
|
- Kodi 17 RC3
|
|
|
|
|
- Check for new installs (RFBZ#4409)
|
|
|
|
|
- Drop the XBMC xsession file (RFBZ#4422)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 04 2017 Michael Cronenworth <mike@cchtml.com> - 17.0-0.11.rc2
|
|
|
|
|
- Kodi 17 RC2
|
|
|
|
|
|
|
|
|
|
* Thu Dec 29 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.11.rc1
|
|
|
|
|
- Kodi 17 RC1
|
|
|
|
|
|
|
|
|
|
* Mon Dec 19 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.10
|
|
|
|
|
- Kodi 17 beta 7
|
|
|
|
|
|
|
|
|
|
* Sun Dec 11 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.9
|
|
|
|
|
- Kodi 17 beta 6
|
|
|
|
|
- Drop libcec patch, now upstream
|
|
|
|
|
|
|
|
|
|
* Mon Oct 31 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.8
|
|
|
|
|
- Kodi 17 beta 5
|
|
|
|
|
- Include patch for libcec 4.0 support
|
|
|
|
|
- Drop ARM support
|
|
|
|
|
|
|
|
|
|
* Mon Oct 10 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.7
|
|
|
|
|
- Kodi 17 beta 3
|
|
|
|
|
|
|
|
|
|
* Mon Sep 19 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.6
|
|
|
|
|
- Kodi 17 beta 2
|
|
|
|
|
|
|
|
|
|
* Fri Aug 26 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.5
|
|
|
|
|
- Kodi 17 beta 1
|
|
|
|
|
|
|
|
|
|
* Fri Aug 05 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.4
|
|
|
|
|
- Kodi 17 alpha 3
|
|
|
|
|
|
|
|
|
|
* Sun Jul 31 2016 Julian Sikorski <belegdol@fedoraproject.org> - 17.0-0.3
|
|
|
|
|
- Rebuilt for ffmpeg-3.1.1
|
|
|
|
|
- Fixed the verbose build
|
|
|
|
|
- Ensured $RPM_LD_FLAGS are used
|
|
|
|
|
|
|
|
|
|
* Tue Jul 05 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.2
|
|
|
|
|
- Kodi 17.0 alpha 2
|
|
|
|
|
|
|
|
|
|
* Wed Jun 22 2016 Michael Cronenworth <mike@cchtml.com> - 17.0-0.1
|
|
|
|
|
- Kodi 17.0 alpha 1
|
|
|
|
|
|
|
|
|
|
* Mon Apr 25 2016 Michael Cronenworth <mike@cchtml.com> - 16.1-1
|
|
|
|
|
- Kodi 16.1 final
|
|
|
|
|
|
|
|
|
|
* Sat Feb 20 2016 Michael Cronenworth <mike@cchtml.com> - 16.0-1
|
|
|
|
|
- Kodi 16.0 final
|
|
|
|
|
|
|
|
|
|
* Fri Jan 22 2016 Michael Cronenworth <mike@cchtml.com> - 16.0-0.2
|
|
|
|
|
- Kodi 16.0 RC1
|
|
|
|
|
|
|
|
|
|
* Sun Dec 06 2015 Michael Cronenworth <mike@cchtml.com> - 16.0-0.1
|
|
|
|
|
- Kodi 16.0 beta 3
|
|
|
|
|
- Drop libhdhomerun support (dropped by Kodi)
|
|
|
|
|
|
|
|
|
|
* Wed Nov 25 2015 Michael Cronenworth <mike@cchtml.com> - 15.2-3
|
|
|
|
|
- Enable AirPlay support (shairplay library)
|
|
|
|
|
|
|
|
|
|
* Sat Oct 24 2015 Michael Cronenworth <mike@cchtml.com> - 15.2-2
|
|
|
|
|
- Enable NFS client support
|
|
|
|
|
|
|
|
|
|
* Thu Oct 22 2015 Michael Cronenworth <mike@cchtml.com> - 15.2-1
|
|
|
|
|
- Kodi 15.2 final
|
|
|
|
|
|
|
|
|
|
* Sun Aug 16 2015 Michael Cronenworth <mike@cchtml.com> - 15.1-1
|
|
|
|
|
- Kodi 15.1 final
|
|
|
|
|
|
|
|
|
|
* Wed Jul 22 2015 Michael Cronenworth <mike@cchtml.com> - 15.0-1
|
|
|
|
|
- Kodi 15.0 final
|
|
|
|
|
|
|
|
|
|
* Tue Jun 16 2015 Michael Cronenworth <mike@cchtml.com> - 15.0-0.1
|
|
|
|
|
- Kodi 15.0 beta 2
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2015 Michael Cronenworth <mike@cchtml.com> - 14.2-2
|
|
|
|
|
- GCC5 fixes
|
|
|
|
|
|
|
|
|
|
* Sun Mar 29 2015 Michael Cronenworth <mike@cchtml.com> - 14.2-1
|
|
|
|
|
- Update to 14.2 final
|
|
|
|
|
- Build with SDL2 to enable joystick support
|
|
|
|
|
|
|
|
|
|
* Fri Jan 30 2015 Michael Cronenworth <mike@cchtml.com> - 14.1-1
|
|
|
|
|
- Update to 14.1 final
|
|
|
|
|
- Fix Obsoletes for -devel
|
|
|
|
|
|
|
|
|
|
* Mon Jan 05 2015 Michael Cronenworth <mike@cchtml.com> - 14.0-2
|
|
|
|
|
- Fix xbmc upgrade path
|
|
|
|
|
|
|
|
|
|
* Sun Dec 28 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-1
|
|
|
|
|
- Update to 14.0 final
|
|
|
|
|
|
|
|
|
|
* Tue Dec 09 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.4.rc3
|
|
|
|
|
- Update to 14.0 RC3
|
|
|
|
|
|
|
|
|
|
* Sun Nov 09 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.3.beta2
|
|
|
|
|
- Update to 14.0 beta 2
|
|
|
|
|
|
|
|
|
|
* Tue Sep 02 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.2.alpha3
|
|
|
|
|
- Update to 14.0 alpha 3
|
|
|
|
|
|
|
|
|
|
* Sun Aug 24 2014 Michael Cronenworth <mike@cchtml.com> - 14.0-0.1.alpha2
|
|
|
|
|
- Update to 14.0 alpha 2
|
|
|
|
|
- Renamed XBMC to Kodi
|