3 %bcond_with license_agreement # generates package
5 Summary: Flash plugin for Netscape-compatible WWW browsers
6 Summary(pl): Wtyczka Flash dla przegl±darek WWW zgodnych z Netscape
7 %define base_name macromedia-flash
8 %if %{with license_agreement}
11 Name: %{base_name}-installer
14 Release: 2.26%{?with_license_agreement:wla}
15 License: Free to use, non-distributable
16 Group: X11/Applications/Multimedia
17 %if %{with license_agreement}
18 Source0: http://fpdownload.macromedia.com/get/shockwave/flash/english/linux/%{version}/install_flash_player_7_linux.tar.gz
19 # NoSource0-md5: 79c59a5ea29347e01c8e6575dd054cd1
21 Source0: license-installer.sh
23 URL: http://www.macromedia.com/software/flashplayer/
24 BuildRequires: rpmbuild(macros) >= 1.235
25 Requires: browser-plugins(%{_target_cpu})
26 %if %{without license_agreement}
28 Requires: rpm-build-tools
31 Obsoletes: flash-plugin
32 Obsoletes: mozilla-plugin-macromedia-flash
33 Obsoletes: mozilla-firefox-plugin-macromedia-flash
34 Obsoletes: konqueror-plugin-macromedia-flash
35 ExclusiveArch: %{ix86}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _plugindir %{_libdir}/browser-plugins
40 # TODO: galeon and skipstone.
41 # use macro, otherwise extra LF inserted along with the ifarch
42 %define browsers mozilla, mozilla-firefox, konqueror, opera
45 Flash plugin for Netscape-compatible WWW browsers.
47 Supported browsers: %{browsers}.
50 Wtyczka Flash dla przegl±darek WWW zgodnych z Netscape.
52 Obs³ugiwane przegl±darki: %{browsers}.
55 %if %{with license_agreement}
56 %setup -q -n install_flash_player_7_linux
60 rm -rf $RPM_BUILD_ROOT
61 %if %{without license_agreement}
62 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
65 s/@BASE_NAME@/%{base_name}/g
66 s/@TARGET_CPU@/%{_target_cpu}/g
67 s-@VERSION@-%{version}-g
68 s-@RELEASE@-%{release}-g
69 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
70 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
72 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
76 install -d $RPM_BUILD_ROOT%{_plugindir}
77 install *.{so,xpt} $RPM_BUILD_ROOT%{_plugindir}
82 rm -rf $RPM_BUILD_ROOT
84 %if %{without license_agreement}
86 %{_bindir}/%{base_name}.install
90 %triggerin -- mozilla-firefox
91 %nsplugin_install -d %{_libdir}/mozilla-firefox/plugins libflashplayer.so flashplayer.xpt
93 %triggerun -- mozilla-firefox
94 %nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins libflashplayer.so flashplayer.xpt
97 %nsplugin_install -d %{_libdir}/mozilla/plugins libflashplayer.so flashplayer.xpt
98 if [ -d /usr/%{_lib}/mozilla ]; then
100 rm -f /usr/%{_lib}/mozilla/components/{compreg,xpti}.dat
101 if [ -x /usr/bin/regxpcom ]; then
102 MOZILLA_FIVE_HOME=/usr/%{_lib}/mozilla /usr/bin/regxpcom
106 %triggerun -- mozilla
107 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins libflashplayer.so flashplayer.xpt
108 if [ -d /usr/%{_lib}/mozilla ]; then
110 rm -f /usr/%{_lib}/mozilla/components/{compreg,xpti}.dat
111 if [ -x /usr/bin/regxpcom ]; then
112 MOZILLA_FIVE_HOME=/usr/%{_lib}/mozilla /usr/bin/regxpcom
116 %triggerin -- konqueror
117 %nsplugin_install -d %{_libdir}/kde3/plugins/konqueror libflashplayer.so
119 %triggerun -- konqueror
120 %nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror libflashplayer.so
123 %nsplugin_install -d %{_libdir}/opera/plugins libflashplayer.so
126 %nsplugin_uninstall -d %{_libdir}/opera/plugins libflashplayer.so
131 %defattr(644,root,root,755)
133 %if %{without license_agreement}
134 %attr(755,root,root) %{_bindir}/%{base_name}.install
135 %{_datadir}/%{base_name}
138 %attr(755,root,root) %{_plugindir}/*.so