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

# 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
%if %suse_version > 1030
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# flash player dynamically opens that one and segfaults if not available (2008-11-12)
Release:        0.<RELEASE4>
Source0:        install_flash_player_%{version}_linux.tar.bz2
Source1:        flashplayer_%{version}_sa.tar.bz2
Source2:        README
Source3:        flashplayer.desktop
Source4:        flashplayer.png
NoSource:       99
Source5:        LICENSE
Provides:       flash-plugin = %version
%define build_standalone 1
ExclusiveArch:  %ix86
# find all the information about flash player / test page here:

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

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


%if %build_standalone
%if %suse_version > 1020
install -D -m 755 flashplayer $RPM_BUILD_ROOT/usr/bin/flashplayer
%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
install -D -m 755 $RPM_BUILD_ROOT/usr/%_lib/browser-plugins/

%doc [Rr][eE][aA][dD][Mm][eE]* LICENSE
%if %build_standalone
%if %suse_version > 1020
%if %suse_version > 1030

openSUSE Build Service is sponsored by