# Conditional build:
%bcond_with license_agreement # generates package
#
-%define _ver_major 9
-%define _ver_minor 0
-%define _ver_patch 31
-%define _ver_serial 0
+%define ver_major 9
+%define ver_minor 0
+%define ver_patch 124
+%define ver_serial 0
%define base_name adobe-flash
+%define rel 2
Summary: Flash plugin for Netscape-compatible WWW browsers
Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape
%if %{with license_agreement}
%else
Name: %{base_name}-installer
%endif
-%define _rel 1
-Version: %{_ver_major}.%{_ver_minor}.%{_ver_patch}.%{_ver_serial}
-Release: %{_rel}%{?with_license_agreement:wla}
+Version: %{ver_major}.%{ver_minor}.%{ver_patch}.%{ver_serial}
+Release: %{rel}%{?with_license_agreement:wla}
License: Free to use, non-distributable
Group: X11/Applications/Multimedia
%if %{with license_agreement}
Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz
-# NoSource0-md5: 76b38231a68995935185aa42dfda9db7
+# NoSource0-md5: a311fd97aa6c214f63dc089a20cf7a39
%else
-Source0: license-installer.sh
-# NoSource0-md5: 76b38231a68995935185aa42dfda9db7
+Source1: license-installer.sh
%endif
URL: http://www.adobe.com/products/flashplayer/
%if %{with license_agreement}
BuildRequires: rpmbuild(macros) >= 1.357
Requires: browser-plugins >= 2.0
+# apparently dlopened by player
+Requires: libasound.so.2
%else
Requires: rpm-build-tools
%endif
Provides: macromedia-flash
+Provides: browser(flash)
Obsoletes: flash-plugin
Obsoletes: konqueror-plugin-macromedia-flash
Obsoletes: macromedia-flash
%define _sysconfdir /etc/adobe
+# No debuginfo to be stored
+%define _enable_debug_packages 0
+
%description
Adobe(R) Flash(R) Player 9 for Linux - the next-generation client
runtime for engaging with Flash content and applications on Linux.
%prep
%if %{with license_agreement}
-%setup -q -n install_flash_player_%{_ver_major}_linux
+%setup -q -n install_flash_player_%{ver_major}_linux
%endif
%install
s-@VERSION@-%{version}-g
s-@RELEASE@-%{release}-g
s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
-' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
+' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
%attr(755,root,root) %{_bindir}/%{base_name}.install
%{_datadir}/%{base_name}
%else
-%doc *.txt
%dir %{_sysconfdir}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg
%attr(755,root,root) %{_browserpluginsdir}/*.so