3 %bcond_with license_agreement # generates package
9 %define base_name macromedia-flash
10 Summary: Flash plugin for Netscape-compatible WWW browsers
11 Summary(pl): Wtyczka Flash dla przeglĀ±darek WWW zgodnych z Netscape
12 %if %{with license_agreement}
15 Name: %{base_name}-installer
18 Version: %{_ver_major}.%{_ver_minor}.%{_ver_patch}.%{_ver_serial}
19 Release: %{_rel}%{?with_license_agreement:wla}
20 License: Free to use, non-distributable
21 Group: X11/Applications/Multimedia
22 %if %{with license_agreement}
23 #Source0: http://download.macromedia.com/pub/labs/flashplayer9_update/FP9_plugin_beta_101806.tar.gz
24 Source0: http://download.macromedia.com/pub/labs/flashplayer9_update/FP9_plugin_beta_112006.tar.gz
25 # NoSource0-md5: 3ab408f85ae6d8180cc913edf97bf3eb
27 Source0: license-installer.sh
28 # NoSource0-md5: 3ab408f85ae6d8180cc913edf97bf3eb
30 URL: http://labs.adobe.com/technologies/flashplayer9/
31 %if %{with license_agreement}
32 BuildRequires: rpmbuild(macros) >= 1.357
33 Requires: browser-plugins >= 2.0
35 Requires: rpm-build-tools
37 Obsoletes: flash-plugin
38 Obsoletes: konqueror-plugin-macromedia-flash
39 Obsoletes: mozilla-firefox-plugin-macromedia-flash
40 Obsoletes: mozilla-plugin-macromedia-flash
41 ExclusiveArch: %{ix86}
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define _sysconfdir /etc/adobe
47 Adobe(R) Flash(R) Player is the high-performance, lightweight, highly expressive
48 client runtime that delivers powerful and consistent user experiences across
49 major operating systems, browsers, mobile phones, and devices. Installed on
50 over 700 million Internet-connected desktops and mobile devices, Flash Player
51 enables organizations and individuals to build and deliver great digital
52 experiences to their end users.
55 Wtyczka Flash dla przeglĀ±darek WWW zgodnych z Netscape.
58 %if %{with license_agreement}
59 %setup -q -n flash-player-plugin-%{_ver_major}.%{_ver_minor}.%{_ver_patch}.%{_ver_serial}
63 rm -rf $RPM_BUILD_ROOT
64 %if %{without license_agreement}
65 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
68 s/@BASE_NAME@/%{base_name}/g
69 s/@TARGET_CPU@/%{_target_cpu}/g
70 s-@VERSION@-%{version}-g
71 s-@RELEASE@-%{release}-g
72 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
73 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
75 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
79 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir}}
80 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg
81 # http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=16701594
85 install *.so $RPM_BUILD_ROOT%{_browserpluginsdir}
90 rm -rf $RPM_BUILD_ROOT
92 %if %{without license_agreement}
94 %{_bindir}/%{base_name}.install
97 %update_browser_plugins
100 if [ "$1" = 0 ]; then
101 %update_browser_plugins
106 %defattr(644,root,root,755)
107 %if %{without license_agreement}
108 %attr(755,root,root) %{_bindir}/%{base_name}.install
109 %{_datadir}/%{base_name}
113 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg
114 %attr(755,root,root) %{_browserpluginsdir}/*.so