Commit f44219efaea3bfd021bfe4efdb3ecedeaa7efeba

Authored by Silvan Calarco
1 parent 76b6dde25f
Exists in master

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

Showing 4 changed files with 14 additions and 12 deletions Inline Diff

SRPMS/chromium-pepper-flash/chromium-pepper-flash.spec.in
1 Name: chromium-pepper-flash 1 Name: chromium-pepper-flash
2 Version: @SRPMVERSION@ 2 Version: @SRPMVERSION@
3 Release: @SRPMRELEASE@ 3 Release: @SRPMRELEASE@
4 Epoch: 1 4 Epoch: 2
5 Summary: Google Chrome's pepper-flash plugin for Chromium 5 Summary: Google Chrome's pepper-flash plugin for Chromium
6 Group: Applications/Web 6 Group: Applications/Web
7 Vendor: @vendor@ 7 Vendor: @vendor@
8 Distribution: @distribution@ 8 Distribution: @distribution@
9 Packager: Silvan Calarco <silvan.calarco@mambasoft.it> 9 Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
10 URL: http://macromedia.rediris.es/ 10 URL: http://macromedia.rediris.es/
11 Source: LICENSE 11 Source: LICENSE
12 License: Non Distributable 12 License: Non Distributable
13 BuildPrereq: wget 13 BuildPrereq: wget
14 BuildPrereq: /usr/bin/tempfile 14 BuildPrereq: /usr/bin/tempfile
15 # NOTE: requires the backward compatible version of the libstdc++ library 15 # NOTE: requires the backward compatible version of the libstdc++ library
16 BuildRoot: %{_tmppath}/%{name}-%{version}-root 16 BuildRoot: %{_tmppath}/%{name}-%{version}-root
17 17
18 %description 18 %description
19 Google Chrome's pepper-flash plugin for Chromium. 19 Google Chrome's pepper-flash plugin for Chromium.
20 20
21 %prep 21 %prep
22 %setup -c -n %{name}-%{version} -D -T 22 %setup -c -n %{name}-%{version} -D -T
23 23
24 [ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1 24 [ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
25 declare -A SRPMVERSION SRPMRELEASE 25 declare -A SRPMVERSION SRPMRELEASE
26 . /etc/sysconfig/@sysconfigfile@ 26 . /etc/sysconfig/@sysconfigfile@
27 27
28 [ "${CHROMIUM_PEPPER_FLASH_PCK}" ] || exit 1 28 [ "${CHROMIUM_PEPPER_FLASH_PCK}" ] || exit 1
29 [ "${CHROMIUM_PEPPER_FLASH_URL}" ] || \ 29 [ "${CHROMIUM_PEPPER_FLASH_URL}" ] || \
30 CHROMIUM_PEPPER_FLASH_URL="https://dl.google.com/linux/chrome/rpm/stable/%{_arch}/" 30 CHROMIUM_PEPPER_FLASH_URL="https://dl.google.com/linux/chrome/rpm/stable/%{_arch}/"
31 31
32 tmpdir=$(mktemp -q -d -t flashplugin.XXXXXXXX) 32 tmpdir=$(mktemp -q -d -t flashplugin.XXXXXXXX)
33 [ $? -eq 0 ] || exit 1 33 [ $? -eq 0 ] || exit 1
34 34
35 [ -f ${tmpdir}/${FLASH_PLUGIN_PCK} ] || 35 [ -f ${tmpdir}/${FLASH_PLUGIN_PCK} ] ||
36 wget -nv --timeout=10 --tries=2 \ 36 wget -nv --timeout=10 --tries=2 \
37 ${CHROMIUM_PEPPER_FLASH_URL}${CHROMIUM_PEPPER_FLASH_PCK} -O ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} 37 ${CHROMIUM_PEPPER_FLASH_URL}${CHROMIUM_PEPPER_FLASH_PCK} -O ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
38 [ -f ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ] || exit 1 38 [ -f ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ] || exit 1
39 39
40 rpm2cpio ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} | cpio -id 40 tar xzf ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
41 41
42 %build -q 42 %build -q
43 43
44 %install 44 %install
45 [ "%{buildroot}" != / ] && rm -rf %{buildroot} 45 [ "%{buildroot}" != / ] && rm -rf %{buildroot}
46 install -d -m0755 %{buildroot}/opt/chromium/PepperFlash 46 install -d -m0755 %{buildroot}/opt/chromium/PepperFlash
47 cp -a opt/google/chrome/PepperFlash/* %{buildroot}/opt/chromium/PepperFlash/ 47 cp -a * %{buildroot}/opt/chromium/PepperFlash/
48 48
49 cp %{S:0} LICENSE 49 cp %{S:0} LICENSE
50 50
51 rm -fr ${tmpdir} 51 rm -fr ${tmpdir}
52 52
53 %clean 53 %clean
54 [ "%{buildroot}" != / ] && rm -rf %{buildroot} 54 [ "%{buildroot}" != / ] && rm -rf %{buildroot}
55 rm -rf %{_builddir}/%{name}-* 55 rm -rf %{_builddir}/%{name}-*
56 : 56 :
57 57
58 %files 58 %files
59 %defattr(-,root,root) 59 %defattr(-,root,root)
60 %dir /opt/chromium/PepperFlash 60 %dir /opt/chromium/PepperFlash
61 /opt/chromium/PepperFlash/libpepflashplayer.so 61 /opt/chromium/PepperFlash/libpepflashplayer.so
62 /opt/chromium/PepperFlash/manifest.json 62 /opt/chromium/PepperFlash/manifest.json
63 /opt/chromium/PepperFlash/README
64 %dir /opt/chromium/PepperFlash/LGPL
65 /opt/chromium/PepperFlash/LGPL/*
63 %doc LICENSE 66 %doc LICENSE
64 67
65 %changelog 68 %changelog
69 * Sat Dec 3 2016 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
70 - PPAPI plugin for Chromium
71
66 * Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0.2062.120-1mamba 72 * Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0.2062.120-1mamba
67 - first build for chromium-pepper-flash 73 - first build for chromium-pepper-flash
68 74
SRPMS/chromium-pepper-flash/distroutils.sysconfig.in
1 ## Google Chrome's pepper-flash 1 ## Google Chrome's pepper-flash
2 2
3 # package name (do not modify unless you know what you're doing) 3 # package name (do not modify unless you know what you're doing)
4 CHROMIUM_PEPPER_FLASH_PCK=google-chrome-stable_current_@arch@.rpm 4 CHROMIUM_PEPPER_FLASH_PCK=flash_player_ppapi_linux.@arch@.tar.gz
5 5
6 # package URL (do not modify unless you know what you're doing) 6 # package URL (do not modify unless you know what you're doing)
7 CHROMIUM_PEPPER_FLASH_URL=https://dl.google.com/linux/direct/ 7 CHROMIUM_PEPPER_FLASH_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/${SRPMVERSION["chromium-pepper-flash"]}/
8 8
1 # b43-firmware 1 # b43-firmware
2 SRPMVERSION["b43-firmware"]=4.150.10.5 2 SRPMVERSION["b43-firmware"]=4.150.10.5
3 SRPMRELEASE["b43-firmware"]=1mamba 3 SRPMRELEASE["b43-firmware"]=1mamba
4 # flashplugin 4 # flashplugin
5 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "flashplugin" ]; then 5 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "flashplugin" ]; then
6 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`" 6 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`"
7 SRPMRELEASE["flashplugin"]=1mamba 7 SRPMRELEASE["flashplugin"]=1mamba
8 fi 8 fi
9 # msttcorefonts 9 # msttcorefonts
10 SRPMVERSION["msttcorefonts"]=1.3 10 SRPMVERSION["msttcorefonts"]=1.3
11 SRPMRELEASE["msttcorefonts"]=7mamba 11 SRPMRELEASE["msttcorefonts"]=7mamba
12 # skype 12 # skype
13 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "skype" ]; then 13 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "skype" ]; then
14 SRPMVERSION["skype"]="`curl --max-time 20 -sLI "http://www.skype.com/go/getskype-linux-beta-dynamic"|grep "linux/skype-"|sed "s|.*skype-\(.*\)\.tar\..*|\1|"|grep -v "\.\.0\." 2>/dev/null`" 14 SRPMVERSION["skype"]="`curl --max-time 20 -sLI "http://www.skype.com/go/getskype-linux-beta-dynamic"|grep "linux/skype-"|sed "s|.*skype-\(.*\)\.tar\..*|\1|"|grep -v "\.\.0\." 2>/dev/null`"
15 SRPMRELEASE["skype"]=2mamba 15 SRPMRELEASE["skype"]=2mamba
16 fi 16 fi
17 # spotify 17 # spotify
18 if [ "`uname -m`" == "x86_64" ]; then 18 if [ "`uname -m`" == "x86_64" ]; then
19 SRPMVERSION["spotify"]=20150629 19 SRPMVERSION["spotify"]=20150629
20 else 20 else
21 SRPMVERSION["spotify"]=0 21 SRPMVERSION["spotify"]=0
22 fi 22 fi
23 SRPMRELEASE["spotify"]=1mamba 23 SRPMRELEASE["spotify"]=1mamba
24 # sun-java7 24 # sun-java7
25 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java7" ]; then 25 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java7" ]; then
26 SRPMVERSION["sun-java7"]="`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`" 26 SRPMVERSION["sun-java7"]="`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
27 SRPMRELEASE["sun-java7"]=1mamba 27 SRPMRELEASE["sun-java7"]=1mamba
28 fi 28 fi
29 # sun-java8 29 # sun-java8
30 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java8" ]; then 30 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "sun-java8" ]; then
31 SRPMVERSION["sun-java8"]="`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`" 31 SRPMVERSION["sun-java8"]="`curl --max-time 20 -sL http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
32 SRPMRELEASE["sun-java8"]=1mamba 32 SRPMRELEASE["sun-java8"]=1mamba
33 fi 33 fi
34 # virtualbox-extension-pack 34 # virtualbox-extension-pack
35 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "virtualbox-extension-pack" ]; then 35 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "virtualbox-extension-pack" ]; then
36 SRPMVERSION["virtualbox-extension-pack"]="`rpm -q VirtualBox 2>/dev/null| cut -d- -f2`" 36 SRPMVERSION["virtualbox-extension-pack"]="`rpm -q VirtualBox 2>/dev/null| cut -d- -f2`"
37 SRPMRELEASE["virtualbox-extension-pack"]=1mamba 37 SRPMRELEASE["virtualbox-extension-pack"]=1mamba
38 fi 38 fi
39 # win32codecs 39 # win32codecs
40 SRPMVERSION["win32codecs"]=20110131 40 SRPMVERSION["win32codecs"]=20110131
41 SRPMRELEASE["win32codecs"]=1mamba 41 SRPMRELEASE["win32codecs"]=1mamba
42 # chromium-pepper-flash 42 # chromium-pepper-flash
43 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then 43 if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then
44 if [ "`uname -m`" == "x86_64" ]; then 44 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`"
45 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`"
46 else
47 SRPMVERSION["chromium-pepper-flash"]=""
48 fi
49 SRPMRELEASE["chromium-pepper-flash"]=1mamba 45 SRPMRELEASE["chromium-pepper-flash"]=1mamba
50 fi 46 fi
51 47
1 VERSION = 3.92.1 1 VERSION = 3.93.0
2 2