chromium-pepper-flash: fetch from Adobe site instead of Chrome archive

This commit is contained in:
Silvan Calarco 2016-12-13 16:34:49 +01:00
parent b1d86fff96
commit 5d36bf96a4
3 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,7 @@
Name: chromium-pepper-flash Name: chromium-pepper-flash
Version: @SRPMVERSION@ Version: @SRPMVERSION@
Release: @SRPMRELEASE@ Release: @SRPMRELEASE@
Epoch: 1 Epoch: 2
Summary: Google Chrome's pepper-flash plugin for Chromium Summary: Google Chrome's pepper-flash plugin for Chromium
Group: Applications/Web Group: Applications/Web
Vendor: @vendor@ Vendor: @vendor@
@ -37,14 +37,14 @@ tmpdir=$(mktemp -q -d -t flashplugin.XXXXXXXX)
${CHROMIUM_PEPPER_FLASH_URL}${CHROMIUM_PEPPER_FLASH_PCK} -O ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ${CHROMIUM_PEPPER_FLASH_URL}${CHROMIUM_PEPPER_FLASH_PCK} -O ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
[ -f ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ] || exit 1 [ -f ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ] || exit 1
rpm2cpio ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} | cpio -id tar xzf ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
%build -q %build -q
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d -m0755 %{buildroot}/opt/chromium/PepperFlash install -d -m0755 %{buildroot}/opt/chromium/PepperFlash
cp -a opt/google/chrome/PepperFlash/* %{buildroot}/opt/chromium/PepperFlash/ cp -a * %{buildroot}/opt/chromium/PepperFlash/
cp %{S:0} LICENSE cp %{S:0} LICENSE
@ -60,8 +60,14 @@ rm -rf %{_builddir}/%{name}-*
%dir /opt/chromium/PepperFlash %dir /opt/chromium/PepperFlash
/opt/chromium/PepperFlash/libpepflashplayer.so /opt/chromium/PepperFlash/libpepflashplayer.so
/opt/chromium/PepperFlash/manifest.json /opt/chromium/PepperFlash/manifest.json
/opt/chromium/PepperFlash/README
%dir /opt/chromium/PepperFlash/LGPL
/opt/chromium/PepperFlash/LGPL/*
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sat Dec 3 2016 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
- PPAPI plugin for Chromium
* Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0.2062.120-1mamba * Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0.2062.120-1mamba
- first build for chromium-pepper-flash - first build for chromium-pepper-flash

View File

@ -1,7 +1,7 @@
## Google Chrome's pepper-flash ## Google Chrome's pepper-flash
# package name (do not modify unless you know what you're doing) # package name (do not modify unless you know what you're doing)
CHROMIUM_PEPPER_FLASH_PCK=google-chrome-stable_current_@arch@.rpm CHROMIUM_PEPPER_FLASH_PCK=flash_player_ppapi_linux.@arch@.tar.gz
# package URL (do not modify unless you know what you're doing) # package URL (do not modify unless you know what you're doing)
CHROMIUM_PEPPER_FLASH_URL=https://dl.google.com/linux/direct/ CHROMIUM_PEPPER_FLASH_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/${SRPMVERSION["chromium-pepper-flash"]}/

View File

@ -3,7 +3,7 @@ SRPMVERSION["b43-firmware"]=4.150.10.5
SRPMRELEASE["b43-firmware"]=1mamba SRPMRELEASE["b43-firmware"]=1mamba
# flashplugin # flashplugin
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "flashplugin" ]; then if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "flashplugin" ]; then
SRPMVERSION["flashplugin"]="`curl --max-time 20 -sL http://www.adobe.com/software/flash/about/ | grep -A2 "Linux" | tail -n1 | sed -e 's/[[:space:]]*<[^>][^>]*>//g;s/[[:space:]]//' 2>/dev/null`" SRPMVERSION["flashplugin"]="`curl --max-time 20 -sL http://www.adobe.com/software/flash/about/ | grep -A10 "Linux" | grep -A1 "NPAPI" | tail -n1 | sed -e 's/[[:space:]]*<[^>][^>]*>//g;s/[[:space:]]//' 2>/dev/null`"
SRPMRELEASE["flashplugin"]=1mamba SRPMRELEASE["flashplugin"]=1mamba
fi fi
# msttcorefonts # msttcorefonts
@ -41,10 +41,6 @@ SRPMVERSION["win32codecs"]=20110131
SRPMRELEASE["win32codecs"]=1mamba SRPMRELEASE["win32codecs"]=1mamba
# chromium-pepper-flash # chromium-pepper-flash
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then
if [ "`uname -m`" == "x86_64" ]; then SRPMVERSION["chromium-pepper-flash"]="`curl --max-time 20 -sL http://www.adobe.com/software/flash/about/ | grep -A11 "Linux" | grep -A1 "Chromium" | tail -n1 | sed -e 's/[[:space:]]*<[^>][^>]*>//g;s/[[:space:]]//' 2>/dev/null`"
SRPMVERSION["chromium-pepper-flash"]="`curl --max-time 20 -sL "https://googlechromereleases.blogspot.it/" | grep -i -A10 "stable channel" | grep -m1 "[^0-9][0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" | sed "s|.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*|\1|" 2>/dev/null`"
else
SRPMVERSION["chromium-pepper-flash"]="0"
fi
SRPMRELEASE["chromium-pepper-flash"]=1mamba SRPMRELEASE["chromium-pepper-flash"]=1mamba
fi fi