2019-01-31 00:01:13 +01:00
|
|
|
%global PRERELEASE r
|
2019-05-10 18:44:37 +02:00
|
|
|
%global myRELEASE 1
|
2017-02-22 18:21:37 +01:00
|
|
|
#global GITCOMMIT Gotham_r2-ge988513
|
|
|
|
|
# use the line below for pre-releases
|
2019-02-22 20:47:21 +01:00
|
|
|
# global DIRVERSION #{version}#{PRERELEASE}
|
2019-01-30 23:59:50 +01:00
|
|
|
%global DIRVERSION %{version}
|
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
|
2019-06-20 09:30:16 +02:00
|
|
|
Version: 18.3
|
2019-05-10 18:44:37 +02:00
|
|
|
Release: 99.%{myRELEASE}.%{PRERELEASE}%{?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-23 21:30:39 +02:00
|
|
|
Source1: kodi-generate-tarball-xz.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
|
2019-02-22 20:47:21 +01:00
|
|
|
BuildRequires: libunistring-devel
|
2017-02-22 18:21:37 +01:00
|
|
|
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}
|
2018-10-24 01:49:52 +02:00
|
|
|
#%patch1 -p1 -b.versioning
|
|
|
|
|
#%patch2 -p1 -b.assert
|
2018-10-13 16:38:22 +02:00
|
|
|
# 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
|
2019-06-20 09:30:16 +02:00
|
|
|
* Wed Jun 19 2019 Daniel Steiner <daniel.steiner@greenmail.ch>
|
|
|
|
|
- Update to 18.3
|
|
|
|
|
|
|
|
|
|
- Release increase to 99, using myRELEASE.
|
2019-05-10 18:44:37 +02:00
|
|
|
* Fri May 10 2019 Daniel Steiner <daniel.steiner@greenmail.ch>
|
|
|
|
|
- Update 18.2 to commit 5c09e9d
|
|
|
|
|
- Release increase to 99, using myRELEASE.
|
|
|
|
|
|
|
|
|
|
* Fri Feb 22 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.1-1.60.final
|
2019-04-23 19:19:41 +02:00
|
|
|
- Update to Final 18.2.
|
|
|
|
|
|
2019-02-22 17:40:20 +01:00
|
|
|
* Fri Feb 22 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.1-1.60.final
|
|
|
|
|
- Update to Final 18.1.
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-1.60.final
|
2019-01-30 23:51:36 +01:00
|
|
|
- Update to Final 18.
|
|
|
|
|
|
2019-01-13 10:01:30 +01:00
|
|
|
* Sun Jan 13 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.50.rc5
|
|
|
|
|
- Update to RC5
|
|
|
|
|
|
2019-01-04 18:06:03 +01:00
|
|
|
* Fri Jan 4 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.21.rc4
|
|
|
|
|
- Update to RC4
|
|
|
|
|
|
2018-12-20 14:56:15 +01:00
|
|
|
* Wed Dec 19 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.21.rc3
|
|
|
|
|
- Update to RC3
|
|
|
|
|
|
2018-12-08 00:22:42 +01:00
|
|
|
* Sat Dec 8 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.21.rc2
|
|
|
|
|
- fmt library updated.
|
|
|
|
|
|
2018-12-07 21:47:40 +01:00
|
|
|
* Fri Dec 7 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.20.rc2
|
|
|
|
|
- Update to RC2
|
|
|
|
|
|
2018-11-10 16:57:22 +01:00
|
|
|
* Sat Nov 10 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.10.rc0
|
|
|
|
|
- Update to RC0
|
|
|
|
|
|
2018-11-04 09:12:54 +01:00
|
|
|
* Sun Nov 4 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 18.0-0.10.b5
|
|
|
|
|
- Update to beta5
|