%define name flash-player-plugin %define version 10.3.181.14 %define rel 1 # backportability %define _localstatedir /var Summary: Flash Player plugin for browsers Name: %name Version: %version Release: %mkrel %rel License: Proprietary URL: http://www.adobe.com/products/flashplayer/ Source0: download-flash-player-plugin.in Group: Networking/WWW ExclusiveArch: %ix86 Requires: curl Requires(post): curl # obtained by objdump -x /usr/lib/mozilla/plugins/libflashplayer.so | grep NEEDED # helper: for i in $(objdump -p libflashplayer.so | grep NEEDED | awk '{ print $2 }'); do # echo -n "$i: "; rpm -qf /usr/lib64/$i; done # libX11.so.6 libXext.so.6 libXt.so.6 libfreetype.so.6 Requires: %{_lib}x11_6 %{_lib}xext6 %{_lib}xt6 %{_lib}freetype6 # libfontconfig.so.1 libgtk-x11-2.0.so.0, libgdk-x11-2.0.so.0 Requires: %{_lib}fontconfig1 %{_lib}gtk+-x11-2.0_0 # libatk-1.0.so.0 libgdk_pixbuf-2.0.so.0 libpangocairo-1.0.so.0, libpango-1.0.so.0 Requires: %{_lib}atk1.0_0 %{_lib}gdk_pixbuf2.0_0 %{_lib}pango1.0_0 # libcairo.so.2 libgobject-2.0.so.0, libgmodule-2.0.so.0, libglib-2.0.so.0 Requires: %{_lib}cairo2 %{_lib}glib2.0_0 # libnss3.so, libsmime3.so, libssl3.so libplds4.so, libplc4.so, libnspr4.so Requires: %{_lib}nss3 %{_lib}nspr4 # required for audio, dlopened: Requires: %{_lib}alsa2 # dlopened: Requires: %{_lib}curl4 # dlopened, for video acceleration: Suggests: %{_lib}vdpau1 # Conflicts: FlashPlayer < 9.0.115.0-5 Conflicts: flash-plugin FlashPlayer-plugin flashplayer-plugin # Conflict with free plugins to avoid user confusion as to which one is # actually used: Conflicts: gnash-firefox-plugin Conflicts: swfdec-mozilla Conflicts: lightspark-mozilla-plugin Conflicts: libflashsupport < 0.20080000.1 Obsoletes: flash-player-plugin10.2 < 10.2.152 BuildRequires: kde4-macros BuildRoot: %{_tmppath}/%{name}-root %description Adobe Flash Player plugin for browsers. NOTE: This package does not contain the Flash Player itself. The software will be automatically downloaded from Adobe during package installation. Alternatively you can use the command "download-flash-player-plugin" manually. Installing this package indicates acceptance of the EULA, available from http://www.adobe.com/products/eulas/players/flash/. %prep %setup -c -T # The linuxdownload.adobe.com rpm usually stays up longer, but fpdownload.macromedia.com is faster. # Their md5sums differ. %ifarch %ix86 %define downurl1 http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-%version-release.i386.rpm %define tmd5sum1 257d2a592f416436d49e0322b30b4ef4 %define downurl2 http://linuxdownload.adobe.com/linux/i386/flash-plugin-%version-release.i386.rpm %define tmd5sum2 257d2a592f416436d49e0322b30b4ef4 %define tarname flash-plugin-%version-release.i386.rpm %define tartype rpm %endif %ifarch x86_64 %define downurl1 http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-%version.linux-x86_64.so.tar.gz %define tmd5sum1 none, not available %define downurl2 %nil %define tmd5sum2 %nil %define tarname libflashplayer-%version.linux-x86_64.so.tar.gz %define tartype tar %endif cat > download-flash-player-plugin <> download-flash-player-plugin cat >> download-flash-player-plugin </dev/null EOF %ifarch %ix86 cat >> download-flash-player-plugin <