Projects
Essentials
flash-player
flash-player.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File flash-player.spec of Package flash-player (Revision 3)
Currently displaying revision
3
,
Show latest
# # spec file for package flash-player # # Copyright (c) 2016 SUSE LINUX 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/ # Name: flash-player Version: 11.2.202.644 Release: 0 Summary: Adobe Flash Plugin and Standalone Player License: SUSE-NonFree Group: Productivity/Networking/Web/Browsers Url: https://get.adobe.com/flashplayer %ifarch %ix86 Source0: https://fpdownload.macromedia.com/get/flashplayer/pdc/%{version}/install_flash_player_11_linux.i386.tar.gz#/install_flash_player_%{version}_linux.i386.tar.gz Source1: flashplayer_%{version}_sa.i386.tar.gz %endif %ifarch x86_64 Source0: https://fpdownload.macromedia.com/get/flashplayer/pdc/%{version}/install_flash_player_11_linux.x86_64.tar.gz#/install_flash_player_%{version}_linux.x86_64.tar.gz Source1: flashplayer_11.1.102.55_sa.x86_64.tar.bz2 %endif # Licence referenced at https://adobe.com/legal/licenses-terms.html Source2: http://wwwimages.adobe.com/content/dam/acom/en/legal/licenses-terms/pdf/Flash%20Player_12.0.pdf#/Flash_Player_12_0.pdf Source4: flashplayer.desktop Source5: flashplayer.png # PATCH-FIX-OPENSUSE desktop.diff -- Fix desktop file to be MATE/GNOME compatible. Patch0: desktop.diff BuildRequires: hicolor-icon-theme BuildRequires: update-desktop-files # Flash Player and the plugin dynamically opens that one and segfaults if not available (2008-11-12). Requires: libasound2%{?_isa} Requires: libcurl4%{?_isa} Provides: flash-plugin = %{version} Provides: netscape-plugins Obsoletes: netscape-plugins ExclusiveArch: %ix86 x86_64 %description This package contains Adobe's Flash Plugin for the supported Web browsers in addition to a standalone flash player application. %package gnome Summary: Adobe Flash Plugin and Standalone Player Settings Group: Productivity/Networking/Web/Browsers Requires: %{name} = %{version} Supplements: packageand(cinnamon-session:flash-player) Supplements: packageand(gnome-session:flash-player) Supplements: packageand(mate-session-manager:flash-player) Provides: %{name}-mate = %{version} %description gnome This package contains Adobe's Flash Plugin Settings for the MATE and GNOME desktops. %prep %setup -q -c %{name}-%{version} -a 0 -b 1 %patch0 mkdir -p EULA/ cp -f %{SOURCE2} "EULA/Flash_Player_12_0.pdf" %build # Nothing to build. %install install -Dpm 0644 libflashplayer.so %{buildroot}%{_libdir}/browser-plugins/libflashplayer.so mkdir -p %{buildroot}%{_datadir}/icons/ rm -rf .%{_datadir}/icons/hicolor/24x24/ cp -a .%{_datadir}/icons/* %{buildroot}%{_datadir}/icons # MATE/GNOME frontend. install -Dpm 0755 .%{_bindir}/flash-player-properties %{buildroot}%{_bindir}/flash-player-properties install -Dpm 0644 .%{_datadir}/applications/flash-player-properties.desktop \ %{buildroot}%{_datadir}/applications/flash-player-properties.desktop if [ -f install_flash_player_linux_sa/flashplayer ]; then install -Dpm 0755 install_flash_player_linux_sa/flashplayer %{buildroot}%{_bindir}/flashplayer else install -Dpm 0755 flashplayer %{buildroot}%{_bindir}/flashplayer fi install -Dpm 0644 %{SOURCE4} %{buildroot}%{_datadir}/applications/flashplayer.desktop install -Dpm 0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/flashplayer.png %suse_update_desktop_file flashplayer %suse_update_desktop_file flash-player-properties %post %desktop_database_post %ifarch %ix86 # This is an ugly hack: flash-player hard-requires SSE2. rpm nor # zypp can limit installation to SSE2 equipped systems only. We # have to choose one from two bad things: Install and let it crash # or install and deliberately break it. We do the second here # (boo#856386). if ( ! grep -q '^flags.*sse2' /proc/cpuinfo ); then rm -f %{_libdir}/browser-plugins/libflashplayer.so rm -f %{_bindir}/flashplayer echo "Flash Player requires a CPU with SSE2. It cannot work on your system." >&2 echo "Please, uninstall it!" >&2 fi %endif %postun %desktop_database_postun %post gnome %desktop_database_post %icon_theme_cache_post %postun gnome %desktop_database_postun %icon_theme_cache_postun %files %defattr(-,root,root) %doc readme.txt EULA/ %{_libdir}/browser-plugins/libflashplayer.so %{_bindir}/flashplayer %{_datadir}/applications/flashplayer.desktop %{_datadir}/pixmaps/flashplayer.png %files gnome %defattr(-,root,root) %{_bindir}/flash-player-properties %{_datadir}/applications/flash-player-properties.desktop %{_datadir}/icons/hicolor/*/apps/flash-player-properties.png %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.