Changes for Fedora26

This commit is contained in:
2017-07-18 18:29:15 +02:00
parent 33f23cdd9e
commit c2fb0fcfb3
3 changed files with 67 additions and 135 deletions

View File

@@ -77,7 +77,7 @@ autoreconf -fiv
--enable-utf8 \ --enable-utf8 \
--enable-tcb=btree \ --enable-tcb=btree \
--with-getline \ --with-getline \
--with-openssl \ --with-openssl=%{_prefix} \
--enable-bzip \ --enable-bzip \
--enable-zlib --enable-zlib

View File

@@ -1,14 +1,13 @@
#global PRERELEASE rc1 #global PRERELEASE rc4
%global myversion 17.3 %global DIRVERSION %{version}
%global DIRVERSION %{myversion}
#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
%define debug_package %{nil} %global _with_dvd 0
Name: kodi Name: kodi
Version: %myversion Version: 17.3
Release: 1%{?dist} Release: 1%{?dist}
Summary: Media center Summary: Media center
@@ -25,25 +24,24 @@ Source0: %{name}-%{DIRVERSION}-patched.tar.xz
# ./kodi-generate-tarball-xz.sh # ./kodi-generate-tarball-xz.sh
Source1: kodi-generate-tarball-xz.sh Source1: kodi-generate-tarball-xz.sh
# filed ticket, but patch still needs work %if 0%{?_with_dvd}
# http://trac.xbmc.org/ticket/9658 # kodi uses modified libdvd{css,nav,read} source and downloads at build time
Patch1: xbmc-13.0-dvdread.patch # wget -O kodi-libdvdnav-master.tar.gz https://github.com/xbmc/libdvdnav/archive/master.tar.gz
Source2: kodi-libdvdnav-master.tar.gz
# wget -O kodi-libdvdread-master.tar.gz https://github.com/xbmc/libdvdread/archive/master.tar.gz
Source3: kodi-libdvdread-master.tar.gz
# wget -O kodi-libdvdcss-master.tar.gz https://github.com/xbmc/libdvdcss/archive/master.tar.gz
Source4: kodi-libdvdcss-master.tar.gz
%endif
# Set program version parameters # Set program version parameters
Patch2: kodi-16.0-versioning.patch Patch1: kodi-16.0-versioning.patch
# Remove call to internal ffmpeg function (misued anyway) # Drop DVD library support
Patch3: kodi-14.0-dvddemux-ffmpeg.patch Patch2: kodi-17a2-libdvd.patch
# Disable dcadec library detection when using external ffmpeg (dcadec is only # Problem with variable definitions in FTPParse module:
# needed to build bundled ffmpeg) Patch3: kodi-ftpparse.patch
Patch4: kodi-16.0-dcadec.patch
Patch5: ffmpeg-2.9.patch
Patch6: gcc6.patch
Patch7: kodi-avicodec.patch
Patch8: kodi-AEDefines_disable.patch
# Optional deps (not in EPEL) # Optional deps (not in EPEL)
%if 0%{?fedora} %if 0%{?fedora}
@@ -61,7 +59,8 @@ Patch8: kodi-AEDefines_disable.patch
%endif %endif
# Upstream does not support ppc64 # Upstream does not support ppc64
ExcludeArch: ppc64 # ARM support is restricted to one GPU per build
ExclusiveArch: i686 x86_64
BuildRequires: SDL2-devel BuildRequires: SDL2-devel
BuildRequires: SDL_image-devel BuildRequires: SDL_image-devel
@@ -102,6 +101,7 @@ BuildRequires: gperf
BuildRequires: jasper-devel BuildRequires: jasper-devel
BuildRequires: java-devel BuildRequires: java-devel
BuildRequires: lame-devel BuildRequires: lame-devel
BuildRequires: lcms2-devel
BuildRequires: libXinerama-devel BuildRequires: libXinerama-devel
BuildRequires: libXmu-devel BuildRequires: libXmu-devel
BuildRequires: libXtst-devel BuildRequires: libXtst-devel
@@ -112,14 +112,17 @@ BuildRequires: libbluray-devel
BuildRequires: libcap-devel BuildRequires: libcap-devel
BuildRequires: libcdio-devel BuildRequires: libcdio-devel
%if 0%{?_with_libcec} %if 0%{?_with_libcec}
BuildRequires: libcec-devel >= 3.0.0 %if 0%{?fedora} > 24
BuildRequires: libcec-devel >= 4.0.0
%else
BuildRequires: libcec-devel < 4.0.0
%endif
%endif %endif
%if 0%{?_with_crystalhd} %if 0%{?_with_crystalhd}
BuildRequires: libcrystalhd-devel BuildRequires: libcrystalhd-devel
%endif %endif
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
BuildRequires: libdca-devel BuildRequires: libdca-devel
BuildRequires: libdvdread-devel
%if 0%{?el6} %if 0%{?el6}
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
%else %else
@@ -183,7 +186,7 @@ BuildRequires: weston-devel
BuildRequires: yajl-devel BuildRequires: yajl-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
Requires: google-roboto-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
# pseudo-DLL loading scheme (sigh) # pseudo-DLL loading scheme (sigh)
@@ -191,7 +194,11 @@ Requires: google-roboto-fonts
Requires: libbluray%{?_isa} Requires: libbluray%{?_isa}
%endif %endif
%if 0%{?_with_libcec} %if 0%{?_with_libcec}
Requires: libcec%{?_isa} >= 3.0.0 %if 0%{?fedora} > 24
Requires: libcec%{?_isa} >= 4.0.0
%else
Requires: libcec%{?_isa} < 4.0.0
%endif
%endif %endif
%if 0%{?_with_crystalhd} %if 0%{?_with_crystalhd}
Requires: libcrystalhd%{?_isa} Requires: libcrystalhd%{?_isa}
@@ -253,16 +260,15 @@ library.
%prep %prep
%setup -q -n %{name}-%{DIRVERSION} %setup -q -n %{name}-%{DIRVERSION}
#%patch1 -p1 %patch1 -p1 -b.versioning
%patch2 -p1 %if 0%{?_with_dvd}
#%patch3 -p0 cp -p %{SOURCE2} tools/depends/target/libdvdnav/libdvdnav-master.tar.gz
#%patch4 -p0 cp -p %{SOURCE3} tools/depends/target/libdvdread/libdvdread-master.tar.gz
#%patch5 -p1 cp -p %{SOURCE4} tools/depends/target/libdvdcss/libdvdcss-master.tar.gz
#%if 0%{?fedora} >= 24 %else
#%patch6 -p1 %patch2 -p1 -b.libdvd
#%endif %endif
%patch7 %patch3 -p0 -b.ftpparse
%patch8
%build %build
@@ -292,29 +298,29 @@ chmod +x bootstrap
%else %else
--disable-ssh \ --disable-ssh \
%endif %endif
%if ! 0%{?_with_dvd}
--disable-optical-drive \
%endif
--disable-optimizations --disable-debug \ --disable-optimizations --disable-debug \
%ifnarch %{arm} %ifnarch %{arm}
--enable-gl \ --enable-gl \
--disable-gles \ --disable-gles \
--enable-vdpau \ --enable-vdpau \
%else %else
--enable-gl \
--enable-gles \ --enable-gles \
--disable-vdpau \ --enable-vdpau \
--disable-vaapi \ --enable-vaapi \
%ifarch armv7hl \ %ifarch armv7hl \
--enable-tegra \ --enable-tegra \
--disable-neon \
%endif
%ifarch armv7hnl
--enable-neon \
%endif %endif
%endif %endif
CFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/ -D__STDC_CONSTANT_MACROS" \ 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" \ CXXFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/ -D__STDC_CONSTANT_MACROS" \
LDFLAGS="-fPIC" \ LDFLAGS="$RPM_LD_FLAGS -fPIC" \
ASFLAGS=-fPIC ASFLAGS=-fPIC
make %{?_smp_mflags} VERBOSE=1 make %{?_smp_mflags} V=1
%install %install
@@ -328,6 +334,9 @@ desktop-file-install \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/kodi.desktop $RPM_BUILD_ROOT%{_datadir}/applications/kodi.desktop
# Stop shipping the duplicate xsession file
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
@@ -335,9 +344,8 @@ ln -s %{python_sitearch}/PIL $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module
#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 %{python_sitearch}/pysqlite2 $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib/pysqlite2
# Use external Roboto font files instead of bundled ones # Use external font files instead of bundled ones
#ln -sf %{_fontbasedir}/google-roboto/Roboto-Regular.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.confluence/fonts/ ln -sf %{_fontbasedir}/dejavu/DejaVuSans-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.estouchy/fonts/
#ln -sf %{_fontbasedir}/google-roboto/Roboto-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.confluence/fonts/
# Move man-pages into system dir # Move man-pages into system dir
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/
@@ -358,7 +366,9 @@ fi
%posttrans %posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
if [ ! -L %{_libdir}/xbmc ] ; then if [ ! -L %{_libdir}/xbmc ] ; then
if [ -d %{_libdir}/xbmc ] ; then
rmdir %{_libdir}/xbmc %{_datadir}/xbmc rmdir %{_libdir}/xbmc %{_datadir}/xbmc
fi
ln -s kodi ${RPM_BUILD_ROOT}%{_libdir}/xbmc ln -s kodi ${RPM_BUILD_ROOT}%{_libdir}/xbmc
ln -s kodi ${RPM_BUILD_ROOT}%{_datadir}/xbmc ln -s kodi ${RPM_BUILD_ROOT}%{_datadir}/xbmc
fi fi
@@ -366,7 +376,9 @@ fi
%posttrans devel %posttrans devel
if [ ! -L %{_includedir}/xbmc ] ; then if [ ! -L %{_includedir}/xbmc ] ; then
if [ -d %{_includedir}/xbmc ] ; then
rmdir %{_includedir}/xbmc rmdir %{_includedir}/xbmc
fi
ln -s kodi ${RPM_BUILD_ROOT}%{_includedir}/xbmc ln -s kodi ${RPM_BUILD_ROOT}%{_includedir}/xbmc
fi fi
@@ -383,7 +395,6 @@ fi
%{_datadir}/kodi %{_datadir}/kodi
%ghost %{_datadir}/xbmc %ghost %{_datadir}/xbmc
%{_datadir}/xsessions/kodi.desktop %{_datadir}/xsessions/kodi.desktop
%{_datadir}/xsessions/xbmc.desktop
%{_datadir}/applications/kodi.desktop %{_datadir}/applications/kodi.desktop
%{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/icons/hicolor/*/*/*.png
%{_mandir}/man1/kodi.1.gz %{_mandir}/man1/kodi.1.gz
@@ -416,36 +427,6 @@ fi
%changelog %changelog
* Thu Jun 6 2017 Daniel Steiner <elpito@bluewin.ch> * Tue Jul 18 2017 Daniel Steiner <dsteiner@redhat.com> - 17.3-1
- Update to Krypton 17.3 - Kodi 17.3 final for Fedora 26
* Sat Feb 25 2017 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton 17.1rc1
* Wed Feb 8 2017 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton Final
* Sun Jan 29 2017 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton RC 4
* Sat Jan 14 2017 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton RC 3
* Sat Dec 3 2016 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton Beta6
* Fri Nov 25 2016 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton Beta5, built on Fedora 25
* Wed Oct 26 2016 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton Beta4
* Thu Oct 6 2016 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton Beta3
* Tue Sep 20 2016 Daniel Steiner <elpito@bluewin.ch>
- Update to Krypton Beta2
* Sun Jul 31 2016 Daniel Steiner <elpito@bluewin.ch>
- New build for Fedora 24

View File

@@ -1,6 +1,6 @@
Name: lnav Name: lnav
Version: 0.8.0 Version: 0.8.2
Release: 2%{?dist} Release: 1%{?dist}
Summary: Curses-based tool for viewing and analyzing log files Summary: Curses-based tool for viewing and analyzing log files
License: BSD License: BSD
URL: http://lnav.org URL: http://lnav.org
@@ -48,54 +48,5 @@ autoreconf -fiv
%{_mandir}/man1/lnav.1* %{_mandir}/man1/lnav.1*
%changelog %changelog
* Tue Feb 23 2016 Daniel Steiner <elpito@bluewin.ch> * Tue Jul 18 2017 Daniel Steiner <dsteiner@redhat.com>
- Relinking for sqlite3 libraries. - First build for Fedora 26
* Sat Jan 9 2016 Daniel Steiner <elpito@bluewin.ch>
- Upgrade to 0.8.0.
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.7.2-2
- Rebuilt for GCC 5 C++11 ABI change
* Thu Mar 05 2015 Christopher Meng <rpm@cicku.me> - 0.7.2-1
- Update to 0.7.2
* Tue Nov 25 2014 Christopher Meng <rpm@cicku.me> - 0.7.1-1
- Update to 0.7.1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Apr 04 2014 Dan Horák <dan[at]danny.cz> - 0.7.0-2
- fix build on big endian arches
* Tue Apr 01 2014 Christopher Meng <rpm@cicku.me> - 0.7.0-1
- Update to 0.7.0
* Thu Nov 21 2013 Christopher Meng <rpm@cicku.me> - 0.6.2-1
- Update to 0.6.2
* Thu Sep 12 2013 Christopher Meng <rpm@cicku.me> - 0.6.1-1
- Update to 0.6.1
- Add python BR for environ detection.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu May 09 2013 Christopher Meng <rpm@cicku.me> - 0.5.1-2
- Cleanup old stuffs.
* Fri May 03 2013 Christopher Meng <rpm@cicku.me> - 0.5.1-1
- Update to 0.5.1
* Fri May 03 2013 Christopher Meng <rpm@cicku.me> - 0.5.0-2
- Patch with automake foreign option in order to support aarch64
* Sat Apr 27 2013 Christopher Meng <rpm@cicku.me> - 0.5.0-1
- Initial Package.