Switch to gitlab snapshot

el8
Nicolas Chauvet 5 years ago
parent f9bf28c299
commit 456e096512

1
.gitignore vendored

@ -1 +1,2 @@
vlc-*.tar.xz vlc-*.tar.xz
vlc-*.tar.gz

@ -1 +1 @@
SHA512 (vlc-3.0.9-20200402-0222.tar.xz) = b83d99d780713b21fceab88ea794e5e620d756728e69f9578536bd12d66315aa9b3ab48ec65988e1bb83b0dd51f5b49aba4fddbd67f6faea6e13d9e6e5a5c272 SHA512 (vlc-8b5cff4.tar.gz) = 868bf13a61407775a272448bad84c9d4fea761a94feaf61de428357ff4e69d18ad416b1911286c921b82c4574ae8029524c11b3a6c7d48c2d0b627a3b57d0dc8

@ -1,11 +1,6 @@
%global vlc_date 20200402 %global commit0 8b5cff44981b3af508678b7eb687944e8f2688ea
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
#global vlc_rc -rc9 #global vlc_rc -rc9
%global vlc_tag -%{?vlc_date}-0222
%if 0%{?vlc_tag:1}
%global vlc_url https://nightlies.videolan.org/build/source/
%else
%global vlc_url https://download.videolan.org/pub/videolan/vlc/
%endif
%global _with_bootstrap 1 %global _with_bootstrap 1
@ -54,10 +49,19 @@ Summary: The cross-platform open-source multimedia framework, player and server
Epoch: 1 Epoch: 1
Name: vlc Name: vlc
Version: 3.0.9 Version: 3.0.9
Release: 34%{?dist} Release: 35%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://www.videolan.org URL: https://www.videolan.org
Source0: %{vlc_url}/%{?!vlc_tag:%{version}/}vlc-%{version}%{?vlc_tag}.tar.xz %if 0%{?commit0:1}
Source0: https://code.videolan.org/videolan/vlc-3.0/-/archive/%{commit0}/vlc-%{shortcommit0}.tar.gz
%global vlc_setup vlc-3.0-%{?commit0}
%elif 0%{?vlc_rc:1}
Source0: https://download.videolan.org/pub/videolan/testing/vlc/%{version}%{?vlc_rc}/vlc-%{version}%{?vlc_rc}.tar.xz
%global vlc_setup vlc-%{version}%{?vlc_rc}
%else
Source0: https://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}.tar.xz
%global vlc_setup vlc-%{version}
%endif
Patch0: https://github.com/RPi-Distro/vlc/raw/buster-rpt/debian/patches/mmal_16.patch Patch0: https://github.com/RPi-Distro/vlc/raw/buster-rpt/debian/patches/mmal_16.patch
Patch2: Fix_aom_abi_break.patch Patch2: Fix_aom_abi_break.patch
Patch3: 0001-Use-SYSTEM-wide-ciphers-for-gnutls.patch Patch3: 0001-Use-SYSTEM-wide-ciphers-for-gnutls.patch
@ -221,8 +225,8 @@ BuildRequires: raspberrypi-vc-devel
BuildRequires: raspberrypi-vc-static BuildRequires: raspberrypi-vc-static
} }
%if 0%{?rhel} == 7 %if 0%{?el7}
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel BuildRequires: devtoolset-8-toolchain, devtoolset-8-libatomic-devel
%endif %endif
%if 0%{?fedora} || 0%{?rhel} >= 8 %if 0%{?fedora} || 0%{?rhel} >= 8
@ -299,7 +303,7 @@ VLC media player extras modules.
%prep %prep
%setup -q -n %{name}-%{version}%{?vlc_rc} %setup -q -n %{vlc_setup}
%{?_with_rpi: %{?_with_rpi:
%patch0 -p1 %patch0 -p1
} }
@ -311,10 +315,7 @@ VLC media player extras modules.
%if 0%{?el7} %if 0%{?el7}
# Lower opus requirement - rfbz#5585 # Lower opus requirement - rfbz#5585
sed -i -e 's/opus >= 1.0.3/opus >= 1.0.2/' configure.ac sed -i -e 's/opus >= 1.0.3/opus >= 1.0.2/' configure.ac
%endif . /opt/rh/devtoolset-8/enable
%if 0%{?rhel} == 7
. /opt/rh/devtoolset-7/enable
%endif %endif
%{?_with_bootstrap: %{?_with_bootstrap:
@ -322,10 +323,12 @@ rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || :
./bootstrap ./bootstrap
} }
touch src/revision.txt
%build %build
%if 0%{?rhel} == 7 %if 0%{?el7}
. /opt/rh/devtoolset-7/enable . /opt/rh/devtoolset-8/enable
%endif %endif
%configure \ %configure \
@ -336,6 +339,7 @@ rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || :
--with-default-font-family=DejaVuSans \ --with-default-font-family=DejaVuSans \
--with-default-monospace-font=%{_fontbasedir}/dejavu/DejaVuSansMono.ttf \ --with-default-monospace-font=%{_fontbasedir}/dejavu/DejaVuSansMono.ttf \
--with-default-monospace-font-family=DejaVuSansMono \ --with-default-monospace-font-family=DejaVuSansMono \
--with-kde-solid=no \
--with-pic \ --with-pic \
--disable-rpath \ --disable-rpath \
--with-binary-version=%{version} \ --with-binary-version=%{version} \
@ -472,7 +476,7 @@ fi || :
%files %files
%doc AUTHORS ChangeLog NEWS README THANKS %doc AUTHORS NEWS README THANKS
%license COPYING %license COPYING
%{_datadir}/metainfo/vlc.appdata.xml %{_datadir}/metainfo/vlc.appdata.xml
%{_datadir}/applications/*%{name}.desktop %{_datadir}/applications/*%{name}.desktop
@ -574,6 +578,10 @@ fi || :
%changelog %changelog
* Sun Apr 05 2020 Nicolas Chauvet <kwizart@gmail.com> - 1:3.0.9-35
- Switch to gitlab snapshot
- Switch to devtoolset-8 for el7
* Thu Apr 02 2020 Nicolas Chauvet <kwizart@gmail.com> - 1:3.0.9-34 * Thu Apr 02 2020 Nicolas Chauvet <kwizart@gmail.com> - 1:3.0.9-34
- Update to 20200402 - Update to 20200402
- Enable make tests - Enable make tests

Loading…
Cancel
Save