2014-09-19 21:18:05 +02:00
|
|
|
Name: chromium-pepper-flash
|
|
|
|
Version: @SRPMVERSION@
|
|
|
|
Release: @SRPMRELEASE@
|
2016-12-13 16:34:49 +01:00
|
|
|
Epoch: 2
|
2014-09-19 21:18:05 +02:00
|
|
|
Summary: Google Chrome's pepper-flash plugin for Chromium
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: @vendor@
|
|
|
|
Distribution: @distribution@
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://macromedia.rediris.es/
|
|
|
|
Source: LICENSE
|
|
|
|
License: Non Distributable
|
|
|
|
BuildPrereq: wget
|
|
|
|
BuildPrereq: /usr/bin/tempfile
|
|
|
|
# NOTE: requires the backward compatible version of the libstdc++ library
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Google Chrome's pepper-flash plugin for Chromium.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -n %{name}-%{version} -D -T
|
|
|
|
|
|
|
|
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
|
|
|
declare -A SRPMVERSION SRPMRELEASE
|
|
|
|
. /etc/sysconfig/@sysconfigfile@
|
|
|
|
|
|
|
|
[ "${CHROMIUM_PEPPER_FLASH_PCK}" ] || exit 1
|
|
|
|
[ "${CHROMIUM_PEPPER_FLASH_URL}" ] || \
|
|
|
|
CHROMIUM_PEPPER_FLASH_URL="https://dl.google.com/linux/chrome/rpm/stable/%{_arch}/"
|
|
|
|
|
|
|
|
tmpdir=$(mktemp -q -d -t flashplugin.XXXXXXXX)
|
|
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
|
|
|
|
[ -f ${tmpdir}/${FLASH_PLUGIN_PCK} ] ||
|
|
|
|
wget -nv --timeout=10 --tries=2 \
|
|
|
|
${CHROMIUM_PEPPER_FLASH_URL}${CHROMIUM_PEPPER_FLASH_PCK} -O ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
|
|
|
|
[ -f ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK} ] || exit 1
|
|
|
|
|
2016-12-13 16:34:49 +01:00
|
|
|
tar xzf ${tmpdir}/${CHROMIUM_PEPPER_FLASH_PCK}
|
2014-09-19 21:18:05 +02:00
|
|
|
|
|
|
|
%build -q
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
install -d -m0755 %{buildroot}/opt/chromium/PepperFlash
|
2016-12-13 16:34:49 +01:00
|
|
|
cp -a * %{buildroot}/opt/chromium/PepperFlash/
|
2014-09-19 21:18:05 +02:00
|
|
|
|
|
|
|
cp %{S:0} LICENSE
|
|
|
|
|
|
|
|
rm -fr ${tmpdir}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2016-02-12 11:01:35 +01:00
|
|
|
rm -rf %{_builddir}/%{name}-*
|
|
|
|
:
|
2014-09-19 21:18:05 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /opt/chromium/PepperFlash
|
|
|
|
/opt/chromium/PepperFlash/libpepflashplayer.so
|
2016-12-13 16:47:06 +01:00
|
|
|
/opt/chromium/PepperFlash/LICENSE
|
|
|
|
/opt/chromium/PepperFlash/license.pdf
|
2014-09-19 21:18:05 +02:00
|
|
|
/opt/chromium/PepperFlash/manifest.json
|
2016-12-13 16:47:06 +01:00
|
|
|
/opt/chromium/PepperFlash/readme.txt
|
2016-12-13 16:34:49 +01:00
|
|
|
%dir /opt/chromium/PepperFlash/LGPL
|
|
|
|
/opt/chromium/PepperFlash/LGPL/*
|
2014-09-19 21:18:05 +02:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2016-12-13 16:34:49 +01:00
|
|
|
* Sat Dec 3 2016 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
|
|
|
|
- PPAPI plugin for Chromium
|
|
|
|
|
2014-09-19 21:18:05 +02:00
|
|
|
* Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0.2062.120-1mamba
|
|
|
|
- first build for chromium-pepper-flash
|