3 %bcond_with license_agreement # generates package
6 %define ver 10.2.152.27
10 %define ver 10.3.162.29
11 %define libmark ()(64bit)
14 %define base_name adobe-flash
16 Summary: Flash plugin for Netscape-compatible WWW browsers
17 Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape
18 %if %{with license_agreement}
21 Name: %{base_name}-installer
24 Release: %{rel}%{?with_license_agreement:wla}
26 License: Free to use, non-distributable
27 Group: X11/Applications/Multimedia
28 %if %{with license_agreement}
29 #Source0: http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p2_32bit_linux_111710.tar.gz
30 #Source0: http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-%{version}-release.i386.rpm
31 Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
32 # NoSource0-md5: e9fc57403796a4992474e4f25857ca14
34 ##Source1: http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-%{version}.linux-x86_64.so.tar.gz
35 Source1: http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz
36 # NoSource1-md5: 49b55c7eb8044453e5f6f2e4b3cb4084
39 Source2: http://svn.pld-linux.org/svn/license-installer/license-installer.sh
40 # Source2-md5: 329c25f457fea66ec502b7ef70cb9ede
42 URL: http://www.adobe.com/products/flashplayer/
43 %if %{with license_agreement}
44 BuildRequires: rpmbuild(macros) >= 1.357
45 BuildRequires: sed >= 4.0
46 Requires: browser-plugins >= 2.0
48 Requires: libasound.so.2%{libmark}
49 Requires: libcurl.so.4%{libmark}
51 Requires: rpm-build-tools >= 4.4.37
52 Requires: rpmbuild(macros) >= 1.544
54 Provides: browser(flash)
55 Provides: macromedia-flash
56 Obsoletes: flash-plugin
57 Obsoletes: konqueror-plugin-macromedia-flash
58 Obsoletes: macromedia-flash
59 Obsoletes: mozilla-firefox-plugin-macromedia-flash
60 Obsoletes: mozilla-plugin-macromedia-flash
61 ExclusiveArch: %{ix86} %{x8664}
62 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 %define _sysconfdir /etc/adobe
66 # So that building package on AC system won't write package name dep that Th system can't understand (libstdc++4)
67 %define _noautoreqdep libstdc++.so.6
69 # No debuginfo to be stored
70 %define _enable_debug_packages 0
73 Adobe(R) Flash(R) Player for Linux - the next-generation client
74 runtime for engaging with Flash content and applications on Linux.
76 %description -l pl.UTF-8
77 Adobe(R) Flash(R) Player - środowisko nowej generacji do obsługi
78 treści i aplikacji we Flashu pod Linuksem.
81 %if %{with license_agreement}
89 s=$(echo 'LNX %{version}' | tr . ,)
90 v=$(strings libflashplayer.so | grep '^LNX ')
91 if [ "$v" != "$s" ]; then
98 rm -rf $RPM_BUILD_ROOT
99 %if %{without license_agreement}
100 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
103 s/@BASE_NAME@/%{base_name}/g
104 s/@TARGET_CPU@/%{_target_cpu}/g
105 s-@VERSION@-%{version}-g
106 s-@RELEASE@-%{release}-g
107 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
108 s,@DATADIR@,%{_datadir}/%{base_name},g
109 ' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
111 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
115 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir}}
116 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg
117 # http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=16701594
118 # http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html
121 # OverrideGPUValidation=true
123 install *.so $RPM_BUILD_ROOT%{_browserpluginsdir}
127 rm -rf $RPM_BUILD_ROOT
129 %if %{without license_agreement}
131 %{_bindir}/%{base_name}.install
134 %update_browser_plugins
137 if [ "$1" = 0 ]; then
138 %update_browser_plugins
143 %defattr(644,root,root,755)
144 %if %{without license_agreement}
145 %attr(755,root,root) %{_bindir}/%{base_name}.install
146 %{_datadir}/%{base_name}
149 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg
150 %attr(755,root,root) %{_browserpluginsdir}/*.so