chromium-pepper-flash: fetch from Adobe site instead of Chrome archive
This commit is contained in:
parent
76b6dde25f
commit
f44219efae
@ -1,7 +1,7 @@
|
||||
Name: chromium-pepper-flash
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Epoch: 1
|
||||
Epoch: 2
|
||||
Summary: Google Chrome's pepper-flash plugin for Chromium
|
||||
Group: Applications/Web
|
||||
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}
|
||||
[ -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
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
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
|
||||
|
||||
@ -60,8 +60,14 @@ rm -rf %{_builddir}/%{name}-*
|
||||
%dir /opt/chromium/PepperFlash
|
||||
/opt/chromium/PepperFlash/libpepflashplayer.so
|
||||
/opt/chromium/PepperFlash/manifest.json
|
||||
/opt/chromium/PepperFlash/README
|
||||
%dir /opt/chromium/PepperFlash/LGPL
|
||||
/opt/chromium/PepperFlash/LGPL/*
|
||||
%doc LICENSE
|
||||
|
||||
%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
|
||||
- first build for chromium-pepper-flash
|
||||
|
@ -1,7 +1,7 @@
|
||||
## Google Chrome's pepper-flash
|
||||
|
||||
# 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)
|
||||
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"]}/
|
||||
|
@ -3,7 +3,7 @@ SRPMVERSION["b43-firmware"]=4.150.10.5
|
||||
SRPMRELEASE["b43-firmware"]=1mamba
|
||||
# flashplugin
|
||||
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
|
||||
fi
|
||||
# msttcorefonts
|
||||
@ -41,10 +41,6 @@ SRPMVERSION["win32codecs"]=20110131
|
||||
SRPMRELEASE["win32codecs"]=1mamba
|
||||
# chromium-pepper-flash
|
||||
if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then
|
||||
if [ "`uname -m`" == "x86_64" ]; then
|
||||
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"]=""
|
||||
fi
|
||||
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`"
|
||||
SRPMRELEASE["chromium-pepper-flash"]=1mamba
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user