# Conditional build:
%bcond_with license_agreement # generates package
#
+%ifarch %{x8664}
+%define ver_major 10
+%define ver_minor 0
+%define ver_patch d21
+%define ver_serial 1
+%define libmark ()(64bit)
+%else
%define ver_major 10
%define ver_minor 0
-%define ver_patch 0
-%define ver_serial 0
+%define ver_patch 15
+%define ver_serial 3
+%define libmark %{nil}
+%endif
%define base_name adobe-flash
%define rel 1
Summary: Flash plugin for Netscape-compatible WWW browsers
License: Free to use, non-distributable
Group: X11/Applications/Multimedia
%if %{with license_agreement}
-Source0: http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_install_linux_051508.tar.gz
-# NoSource0-md5: 243dec36ba455c72beb909025c36e996
+Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
+# NoSource0-md5: afab0b40b0ae11445e2e90a4a9224a8a
+Source1: http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d21.1.linux-x86_64.so.tar.gz
+# NoSource1-md5: c165af9d4e324bfaf6d1cfbdbe959fbb
%else
-Source1: license-installer.sh
+Source2: license-installer.sh
%endif
URL: http://www.adobe.com/products/flashplayer/
%if %{with license_agreement}
BuildRequires: rpmbuild(macros) >= 1.357
+BuildRequires: sed >= 4.0
Requires: browser-plugins >= 2.0
-# apparently dlopened by player
-Requires: libasound.so.2
+# dlopened by player
+Requires: libasound.so.2%{libmark}
+Requires: libcurl.so.4%{libmark}
%else
Requires: rpm-build-tools
%endif
-Provides: macromedia-flash
Provides: browser(flash)
+Provides: macromedia-flash
Obsoletes: flash-plugin
Obsoletes: konqueror-plugin-macromedia-flash
Obsoletes: macromedia-flash
Obsoletes: mozilla-firefox-plugin-macromedia-flash
Obsoletes: mozilla-plugin-macromedia-flash
-ExclusiveArch: %{ix86}
+ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/adobe
+# So that building package on AC system won't write package name dep that Th system can't understand (libstdc++4)
+%define _noautoreqdep libstdc++.so.6
+
# No debuginfo to be stored
%define _enable_debug_packages 0
%description
-Adobe(R) Flash(R) Player 9 for Linux - the next-generation client
+Adobe(R) Flash(R) Player for Linux - the next-generation client
runtime for engaging with Flash content and applications on Linux.
%description -l pl.UTF-8
%prep
%if %{with license_agreement}
-%setup -q -n install_flash_player_%{ver_major}_linux
+%ifarch %{x8664}
+%setup -q -T -c -b 1
+%else
+%setup -q -T -b 0 -n install_flash_player_%{ver_major}_linux
+%endif
%endif
%install
s-@VERSION@-%{version}-g
s-@RELEASE@-%{release}-g
s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
-' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
+' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir}}
cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg
# http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=16701594
+# http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html
AutoUpdateDisable=1
AutoUpdateInterval=0
+# OverrideGPUValidation=true
EOF
install *.so $RPM_BUILD_ROOT%{_browserpluginsdir}
-
%endif
%clean