# Prevent stripping %define __spec_install_post /usr/lib/rpm/brp-compress # Turn off debuginfo package %define debug_package %{nil} # pre-accept license -- Rex %define accept_license 1 Summary: Macromedia Flash Player 7.0 Name: flash-plugin Version: 7.0.68 Release: 1.0 License: Commercial ExclusiveArch: i386 Group: Applications/Internet Source0: flash-plugin-%{version}.tar.gz Source1: homecleanup Source2: appease-lawyers.c Source3: LICENSE Source4: setup.accept URL: http://macromedia.mplug.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %{?!accept_license:BuildRequires: gtk2-devel} %description Macromedia Flash Plugin %{version} Fully Supported: Mozilla 1.0+, Netscape 7.x, Firefox 0.8+ Partially Supported: Opera, Konqueror 3.x %prep %setup -q -c %{name}-%{version} mv install_flash_player_7_linux/Readme.* $RPM_BUILD_DIR/%{name}-%{version} %build %{!?accept_license:%{__cc} -Wall `pkg-config --cflags --libs gtk+-2.0` -s -o show-license %SOURCE2} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir}/flash-plugin chmod 755 $RPM_BUILD_ROOT%{_libdir}/flash-plugin find $RPM_BUILD_ROOT -type d | xargs chmod 755 install -pm 755 install_flash_player_7_linux/libflashplayer.so $RPM_BUILD_ROOT%{_libdir}/flash-plugin install -pm 755 install_flash_player_7_linux/flashplayer.xpt $RPM_BUILD_ROOT%{_libdir}/flash-plugin install -pm 744 %SOURCE1 $RPM_BUILD_ROOT%{_libdir}/flash-plugin/homecleanup install -pm 644 %SOURCE3 $RPM_BUILD_ROOT%{_libdir}/flash-plugin install -pm 744 %SOURCE4 $RPM_BUILD_ROOT%{_libdir}/flash-plugin/setup %if "%{?accept_license}" == "1" # We accept the license already! -- Rex mkdir -p $RPM_BUILD_ROOT/etc touch $RPM_BUILD_ROOT/etc/flash.license %else install -p -m744 -D show-license $RPM_BUILD_ROOT%{_libdir}/flash-plugin/show-license %endif %clean rm -rf $RPM_BUILD_ROOT %post if [ "$1" = "1" ]; then %{_libdir}/flash-plugin/setup install fi if [ "$1" = "2" ]; then %{_libdir}/flash-plugin/setup upgrade fi %preun if [ "$1" = "0" ]; then %{_libdir}/flash-plugin/setup preun fi %triggerin -- firefox,mozilla,opera,seamonkey if [ $2 -gt 0 ]; then %{_libdir}/flash-plugin/setup preun >& /dev/null ||: %{_libdir}/flash-plugin/setup install >& /dev/null fi %triggerun -- firefox,mozilla,opera,seamonkey if [ $2 -eq 0 ]; then %{_libdir}/flash-plugin/setup preun >& /dev/null fi %files %defattr(-,root,root,-) %doc Readme.txt %{?accept_license:/etc/flash.license} %{_libdir}/flash-plugin/* %dir %{_libdir}/flash-plugin %changelog * Wed Sep 13 2006 Rex Dieter 7.0.68-1.0 - 7.0.68 * Tue Aug 1 2006 Rex Dieter 7.0.63-1.2 - auto accept license - update for seamonkey * Wed Mar 15 2006 Warren Togami 7.0.63-1 - CVE-2006-0024 * Tue Nov 08 2005 Warren Togami 7.0.61-1 - #172731 7.0.61 CVE-2005-2628 - #163713 Fix setup script so it no longer errors on Firefox 1.5+ * Sat Nov 06 2004 Warren Togami 7.0.25-2 - add triggers for mozilla, firefox, opera - RPM scriptlets: only output messages for errors * Thu May 27 2004 Warren Togami 7.0.25-1 - update to 7.0.25 - scan for versioned firefox dirs * Sun Mar 14 2004 Warren Togami 6.0.81-1 - update to 6.0.81 (Security) - no longer requires libstdc++ Should solve XPCOM integration javascript problems with gcc-3.x compiled Mozilla - i386 binary only - really fix dir ownership - support firefox - gtk2 click-thru * Fri Nov 21 2003 Warren Togami 6.0.79-2 - Cleanup ugly hacks in spec and modernize to most fedora.us standards. - Drop Phoenix support, add MozillaFirebird and mozilla-firebird - Generate xpti.dat for all browsers in a generic way This should fix javascript integration. * Thu Mar 06 2003 Warren Togami 6.0.79-1 - Important security update - http://www.macromedia.com/devnet/security/security_zone/mpsb03-03.html * Thu Dec 12 2002 Warren Togami 6.0.69-6 - sync with final tarball (same binary though) * Wed Dec 11 2002 Warren Togami 6.0.69-5 - add setup complete message * Sun Dec 07 2002 Warren Togami 6.0.69-4 - fix minor suse uninstall glitch * Sat Dec 06 2002 Warren Togami 6.0.69-3 - patch to show-license.c, thanks to Bill Tompkins - textmode EULA interface * Sat Dec 06 2002 Warren Togami 6.0.69-2 - beta of "Lawyer Appeasement Edition" - show-license.c, thanks to Daniel Elstner - scripts separated from .spec into "setup" * Wed Dec 04 2002 Warren Togami 6.0.69-1 - cosmetic fix to RH special case - update to 6.0.69 (final release candidate) .