Projects
Multimedia
kodi
kodi-noX.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kodi-noX.spec of Package kodi (Revision 8)
Currently displaying revision
8
,
Show latest
# # Please submit bugfixes or comments via https://bugs.links2linux.org/ # # Please edit kodi.spec and kodi.changes only. *-noX.* files are generated from kodi.* files with the pre_checkin.sh script # %define _libtag_ver %(version="`rpm -q --qf '%{VERSION}' libtag-devel`"; echo "$version") %define _kodi_addons_dir %{_datadir}/kodi/addons %define ffmpeg_archive_name 2.4.4-Helix %define pvr_addons_archive_name Helix_rc3 %define kodi_version Helix %bcond_without enable_rpi_build %bcond_without enable_rpi_omxplayer # kodi can be built without X support when openGL ES is used (mainly used on ARM boards used as media center) %define noX_build ("%{name}" == "kodi-noX") %if %{noX_build} # no X build needs openGL ES %bcond_with enable_opengl %bcond_without enable_opengles %else %ifarch %{arm} armv6l armv6hl %bcond_with enable_opengl %bcond_without enable_opengles %else %bcond_without enable_opengl %bcond_with enable_opengles %endif %endif Name: kodi-noX Version: 14.0 Release: 0 Summary: Kodi Media center License: GPL-2.0+ and GPL-3.0+ Group: Productivity/Multimedia/Video/Players Url: http://kodi.tv/ Source0: %{version}-%{kodi_version}.tar.gz Source1: https://github.com/opdenkamp/xbmc-pvr-addons/archive/%{pvr_addons_archive_name}.tar.gz Source2: https://github.com/xbmc/FFmpeg/archive/%{ffmpeg_archive_name}.tar.gz # PATCH-FIX-OPENSUSE -- enable all pvr addons Patch0: pvr-addons-enable-all.patch Patch1: no-xbmc-symbolic-link.patch # Raspberry Pi (armv6): omxplayer 3D support is only available for non X11 KODI #Patch2: disable_omxplayer_3d_support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: ppc64 %if %{noX_build} Conflicts: kodi %else Conflicts: kodi-noX %endif Obsoletes: xbmc <= %{version} Provides: xbmc = %{version} Conflicts: xbmc %if 0%{?suse_version} < 1140 BuildRequires: hal-devel %endif %if 0%{?fedora} >= 14 BuildRequires: gettext-autopoint %else BuildRequires: gettext %endif %ifarch armv6l armv6hl %if %{with enable_rpi_build} %if %{with enable_rpi_omxplayer} BuildRequires: omxplayer %endif %endif %endif BuildRequires: -post-build-checks BuildRequires: alsa-devel BuildRequires: avahi-devel BuildRequires: boost-devel BuildRequires: ccache BuildRequires: cmake BuildRequires: curl curl-devel BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: enca-devel BuildRequires: fdupes BuildRequires: flac-devel BuildRequires: flex BuildRequires: fontconfig-devel BuildRequires: freetype2-devel BuildRequires: fribidi-devel BuildRequires: ftgl-devel BuildRequires: gcc-c++ %if %{with enable_opengl} BuildRequires: glew-devel %endif BuildRequires: glibc-devel BuildRequires: gmp-devel BuildRequires: gperf BuildRequires: java BuildRequires: libSDL-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel BuildRequires: libass-devel >= 0.9.7 BuildRequires: libbluray-devel BuildRequires: libbz2-devel BuildRequires: libcdio-devel BuildRequires: libcec-devel >= 2.2.0 %ifarch %ix86 x86_64 BuildRequires: libcrystalhd-devel %endif BuildRequires: libdca-devel BuildRequires: libdvdread-devel BuildRequires: libexpat-devel BuildRequires: libfaac-devel #BuildRequires: libffmpeg-devel BuildRequires: libgcrypt-devel BuildRequires: libgpg-error-devel BuildRequires: libhdhomerun-devel BuildRequires: libhogweed2 BuildRequires: libjasper-devel BuildRequires: libjpeg-devel BuildRequires: libmad-devel BuildRequires: libmicrohttpd-devel BuildRequires: libmodplug-devel BuildRequires: libmpeg2-devel BuildRequires: libnettle-devel BuildRequires: libnfs-devel BuildRequires: libogg-devel BuildRequires: libpcrecpp0 BuildRequires: libplist-devel BuildRequires: libpng-devel BuildRequires: libpulse-devel BuildRequires: librtmp-devel BuildRequires: libsamplerate-devel BuildRequires: libsmbclient-devel BuildRequires: libssh-devel BuildRequires: libstdc++-devel BuildRequires: libtag-devel >= 1.8 BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: libudev-devel BuildRequires: libva-devel %if %{with enable_opengl} BuildRequires: libvdpau-devel %endif BuildRequires: libvorbis-devel BuildRequires: libyajl-devel BuildRequires: lzo-devel BuildRequires: mysql-devel BuildRequires: nasm BuildRequires: pcre-devel BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: sqlite-devel BuildRequires: swig BuildRequires: tinyxml-devel BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: unzip BuildRequires: libgnutls-devel BuildRequires: bluez-devel BuildRequires: libcap-devel %if !%{noX_build} BuildRequires: xorg-x11-devel %endif BuildRequires: yasm BuildRequires: byacc BuildRequires: zip BuildRequires: zlib-devel BuildRequires: pkgconfig(glib-2.0) ## kodi needs the same libtag version which was used to build against Requires: libtag1 = %{_libtag_ver} # kodi needs libnfs to access nfs sources, it is not automatically required Requires: libnfs # glxinfo is needed to check hw accel %if 0%{?suse_version} >= 1220 %if !%{noX_build} Requires: Mesa-demo-x Requires: xdpyinfo %endif %endif %if %{with enable_opengles} %ifnarch armv6l armv6hl BuildRequires: Mesa-libEGL-devel BuildRequires: Mesa-libGLESv2-devel %else %if %{with enable_rpi_build} BuildRequires: raspberrypi-userland-devel %else BuildRequires: Mesa-libEGL-devel BuildRequires: Mesa-libGLESv2-devel %endif %endif %endif # needed to delete the fixed rpath introduced by smbclient BuildRequires: chrpath %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 %{noX_build} Conflicts: kodi-devel %else Conflicts: kodi-noX-devel %endif %description devel Development files for the Kodi media Center %prep %setup -q -n xbmc-%{version}-%{kodi_version} %patch0 %patch1 %if !%{noX_build} #%%patch2 %endif tar -xf %{SOURCE1} mv xbmc-pvr-addons-%{pvr_addons_archive_name} pvr-addons pushd pvr-addons ./bootstrap popd #cp %{SOURCE2} tools/depends/target/ffmpeg/ffmpeg-%{ffmpeg_archive_name}.tar.gz # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') FAKE_BUILDDATETIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes) # remove it in ffmpeg archive and repackage it tar xpfz %{SOURCE2} -C tools/depends/target/ffmpeg/ for file in tools/depends/target/ffmpeg/FFmpeg-%{ffmpeg_archive_name}/ffprobe.c tools/depends/target/ffmpeg/FFmpeg-%{ffmpeg_archive_name}/cmdutils.c; do sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" $file done tar cpfz tools/depends/target/ffmpeg/ffmpeg-%{ffmpeg_archive_name}.tar.gz -C tools/depends/target/ffmpeg/ FFmpeg-%{ffmpeg_archive_name}/ rm -r tools/depends/target/ffmpeg/FFmpeg-%{ffmpeg_archive_name} # remove the remaining occurencies in the source tree for file in lib/timidity/timidity/speex_a.c xbmc/Application.cpp xbmc/GUIInfoManager.cpp ; do sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" $file done for file in xbmc/interfaces/python/PythonSwig.cpp.template ; do sed -i -e "/PyModule_AddStringConstant.*__date__/ s/\${new Date()\.toString()}/$FAKE_BUILDDATETIME/" $file done chmod +x bootstrap ./bootstrap %build %ifarch armv6l armv6hl %if %{with enable_rpi_build} export CXXFLAGS="$CXXFLAGS -I%{_includedir}/interface/vcos/pthreads -I%{_includedir}/interface/vmcs_host/linux" %endif %endif %configure \ --enable-airplay \ --enable-vdpau \ --enable-vaapi \ --enable-rtmp \ --enable-libbluray \ --disable-debug \ --enable-shared \ --enable-optimizations \ --disable-static \ --enable-libcec \ --enable-alsa \ %if %{with enable_opengl} --enable-goom \ --enable-vaapi \ --enable-vdpau \ --enable-gl \ %else --disable-goom \ --disable-vaapi \ --disable-vdpau \ --disable-gl \ %endif %if %{with enable_opengles} --enable-gles \ %else --disable-gles \ %endif %ifarch armv6l armv6hl %if %{with enable_rpi_build} --with-platform=raspberry-pi \ %if %{with enable_rpi_omxplayer} --enable-player=omxplayer \ %endif %endif %endif %ifarch armv7l armv7hl --enable-tegra --disable-neon \ %endif %if %{noX_build} --disable-x11 --disable-xrandr --disable-sdl --disable-joystick \ %endif make %{?_smp_mflags} #make -j1 V=0 %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # remove the doc files from unversioned /usr/share/doc/kodi, they should be in versioned docdir rm -r %{buildroot}/%{_datadir}/doc/ # copy manpages 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 # 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 desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/kodi.desktop # delete fixed rpath from smbclient.pc - this fixes # http://trac.kodi.tv/ticket/15497 and # http://bugzilla.opensuse.org/show_bug.cgi?id=902421 chrpath %{buildroot}%{_libdir}/kodi/kodi.bin >/dev/null 2>&1 && \ chrpath -d %{buildroot}%{_libdir}/kodi/kodi.bin %fdupes %{buildroot} %files %defattr(-,root,root) %doc copying.txt LICENSE.GPL docs/README.linux %{_bindir}/kodi %{_bindir}/xbmc %{_bindir}/kodi-standalone %{_bindir}/xbmc-standalone %{_libdir}/kodi %{_datadir}/xsessions/kodi.desktop %{_datadir}/xsessions/xbmc.desktop %{_datadir}/applications/kodi.desktop %{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/kodi %{_datadir}/kodi/FEH.py %{_datadir}/kodi/language/* %{_datadir}/kodi/media/* %{_datadir}/kodi/sounds/* %{_datadir}/kodi/system/* %{_datadir}/kodi/userdata/* %{_mandir}/man1/kodi.1.gz %{_mandir}/man1/kodi-standalone.1.gz %{_kodi_addons_dir}/metadata.album.universal/* %{_kodi_addons_dir}/metadata.artists.universal/* %{_kodi_addons_dir}/metadata.common.allmusic.com/* %{_kodi_addons_dir}/metadata.common.amazon.de/* %{_kodi_addons_dir}/metadata.common.fanart.tv/* %{_kodi_addons_dir}/metadata.common.hdtrailers.net/* %{_kodi_addons_dir}/metadata.common.htbackdrops.com/* %{_kodi_addons_dir}/metadata.common.imdb.com/* %{_kodi_addons_dir}/metadata.common.last.fm/* %{_kodi_addons_dir}/metadata.common.musicbrainz.org/* %{_kodi_addons_dir}/metadata.common.theaudiodb.com/* %{_kodi_addons_dir}/metadata.common.themoviedb.org/* %{_kodi_addons_dir}/metadata.local/* %{_kodi_addons_dir}/metadata.musicvideos.theaudiodb.com/* %{_kodi_addons_dir}/metadata.themoviedb.org/* %{_kodi_addons_dir}/metadata.tvdb.com/* %{_kodi_addons_dir}/repository.xbmc.org/* %if %{with enable_opengl} %{_kodi_addons_dir}/screensaver.rsxs.euphoria/* %{_kodi_addons_dir}/screensaver.rsxs.plasma/* %{_kodi_addons_dir}/screensaver.rsxs.solarwinds/* %endif %{_kodi_addons_dir}/screensaver.xbmc.builtin.black/* %{_kodi_addons_dir}/screensaver.xbmc.builtin.dim/* %{_kodi_addons_dir}/script.module.pil/* %{_kodi_addons_dir}/service.xbmc.versioncheck/* %{_kodi_addons_dir}/skin.confluence/* %if %{with enable_opengl} %{_kodi_addons_dir}/visualization.fishbmc/* %endif %{_kodi_addons_dir}/visualization.glspectrum/* %if %{with enable_opengl} %{_kodi_addons_dir}/visualization.goom/* %{_kodi_addons_dir}/visualization.projectm/* %endif %{_kodi_addons_dir}/visualization.vortex/* %{_kodi_addons_dir}/visualization.waveform/* %{_kodi_addons_dir}/webinterface.default/* %{_kodi_addons_dir}/xbmc.codec/* %{_kodi_addons_dir}/xbmc.addon/* %{_kodi_addons_dir}/xbmc.core/* %{_kodi_addons_dir}/xbmc.gui/* %{_kodi_addons_dir}/xbmc.json/* %{_kodi_addons_dir}/xbmc.metadata/* %{_kodi_addons_dir}/xbmc.pvr/* %{_kodi_addons_dir}/xbmc.python/* %{_kodi_addons_dir}/pvr.argustv/* %{_kodi_addons_dir}/pvr.demo/* %{_kodi_addons_dir}/pvr.dvblink/* %{_kodi_addons_dir}/pvr.dvbviewer/* %{_kodi_addons_dir}/pvr.hts/* %{_kodi_addons_dir}/pvr.iptvsimple/* %{_kodi_addons_dir}/pvr.mediaportal.tvserver/* %{_kodi_addons_dir}/pvr.mythtv/* %{_kodi_addons_dir}/pvr.nextpvr/* %{_kodi_addons_dir}/pvr.njoy/* %{_kodi_addons_dir}/pvr.vdr.vnsi/* %{_kodi_addons_dir}/pvr.vuplus/* %{_kodi_addons_dir}/pvr.wmc/* %files devel %defattr(-,root,root) %{_includedir}/kodi %{_includedir}/kodi/DVDDemuxPacket.h %{_includedir}/kodi/libXBMC_addon.h %{_includedir}/kodi/libXBMC_codec.h %{_includedir}/kodi/libXBMC_gui.h %{_includedir}/kodi/libXBMC_pvr.h %{_includedir}/kodi/xbmc_addon_cpp_dll.h %{_includedir}/kodi/xbmc_addon_dll.h %{_includedir}/kodi/xbmc_addon_types.h %{_includedir}/kodi/xbmc_codec_types.h %{_includedir}/kodi/xbmc_epg_types.h %{_includedir}/kodi/xbmc_pvr_dll.h %{_includedir}/kodi/xbmc_pvr_types.h %{_includedir}/kodi/xbmc_scr_dll.h %{_includedir}/kodi/xbmc_scr_types.h %{_includedir}/kodi/xbmc_stream_utils.hpp %{_includedir}/kodi/xbmc_vis_dll.h %{_includedir}/kodi/xbmc_vis_types.h %{_includedir}/kodi/xbmc_audioenc_dll.h %{_includedir}/kodi/xbmc_audioenc_types.h %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.