File flash-player.spec of Package flash-player.import4239

#
# spec file for package flash-player
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           flash-player
License:        NON-OSI-COMPLIANT(royalties)
Group:          Productivity/Networking/Web/Browsers
Summary:        Adobe Flash PlugIn and standalone Player
Provides:       netscape-plugins
Obsoletes:      netscape-plugins
%if %suse_version > 1110
#flash 10 does not need libflashsupport and using it can cause device conflicts
#just let flash talk with the default alsa plugin - bnc#539656
Provides:       libflashsupport = 1.2
Obsoletes:      libflashsupport <= 1.2
Provides:       libflashsupport-32bit = 1.2
Obsoletes:      libflashsupport-32bit <= 1.2
%endif
%if %suse_version > 1030
BuildRequires:  update-desktop-files
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# flash player dynamically opens that one and segfaults if not available (2008-11-12)
Requires:       libcurl.so.4 libasound.so.2
Version:        10.2.153.1
Release:        0.<RELEASE4>
# http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
Source0:        install_flash_player_%{version}_linux.tar.bz2
# http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa.tar.gz
Source1:        flashplayer_%{version}_sa.tar.bz2
# http://www.adobe.com/shockwave/welcome/
Source2:        README
Source3:        flashplayer.desktop
Source4:        flashplayer.png
Source99:       update.sh
NoSource:       99
Source5:        LICENSE
Provides:       flash-plugin = %version
%define build_standalone 1
ExclusiveArch:  %ix86
# find all the information about flash player / test page here:
# http://www.adobe.com/software/flash/about/

%description
This package contains Adobe's Flash Plugin for the supported Web
browsers in addition to a standalone flash player application.


%prep
%setup -c install_flash_player_10_linux -a 0 -b 1
cp %{SOURCE2} .
cp %{SOURCE5} .

%build

%install
%if %build_standalone
%if %suse_version > 1020
install -D -m 755 flashplayer $RPM_BUILD_ROOT/usr/bin/flashplayer
%endif
%if %suse_version > 1030
install -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT/usr/share/applications/flashplayer.desktop
install -D -m 644 %{SOURCE4} $RPM_BUILD_ROOT/usr/share/pixmaps/flashplayer.png
%suse_update_desktop_file flashplayer
%endif
%endif
install -D -m 755 libflashplayer.so $RPM_BUILD_ROOT/usr/%_lib/browser-plugins/libflashplayer.so

%files
%defattr(-,root,root)
%doc [Rr][eE][aA][dD][Mm][eE]* LICENSE
/usr/%_lib/browser-plugins/*
%if %build_standalone
%if %suse_version > 1020
/usr/bin/flashplayer
%endif
%if %suse_version > 1030
/usr/share/applications/flashplayer.desktop
/usr/share/pixmaps/flashplayer.png
%endif
%endif

%changelog
openSUSE Build Service is sponsored by