]>
Commit | Line | Data |
---|---|---|
e9cc6da3 | 1 | # |
aa3cbbce | 2 | # Conditional build: |
3 | %bcond_with license_agreement # generates package | |
e9cc6da3 | 4 | # |
7c54dc02 | 5 | %define ver_major 10 |
5e11dd18 | 6 | %define ver_minor 0 |
6fa8c0e6 BZ |
7 | %define ver_patch 12 |
8 | %define ver_serial 36 | |
fdeb48aa | 9 | %define base_name adobe-flash |
6fa8c0e6 | 10 | %define rel 1 |
53f15d83 | 11 | Summary: Flash plugin for Netscape-compatible WWW browsers |
989db712 | 12 | Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape |
aa3cbbce | 13 | %if %{with license_agreement} |
14 | Name: %{base_name} | |
15 | %else | |
16 | Name: %{base_name}-installer | |
17 | %endif | |
5e11dd18 ER |
18 | Version: %{ver_major}.%{ver_minor}.%{ver_patch}.%{ver_serial} |
19 | Release: %{rel}%{?with_license_agreement:wla} | |
53f15d83 | 20 | License: Free to use, non-distributable |
01b5e1fb | 21 | Group: X11/Applications/Multimedia |
aa3cbbce | 22 | %if %{with license_agreement} |
6fa8c0e6 BZ |
23 | Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz |
24 | # NoSource0-md5: 4777665a6149af11233d8a000b89ffb1 | |
18284157 | 25 | %else |
6b6413ed | 26 | Source1: license-installer.sh |
aa3cbbce | 27 | %endif |
ba9bcac5 | 28 | URL: http://www.adobe.com/products/flashplayer/ |
b68eb59b | 29 | %if %{with license_agreement} |
df79ad5e | 30 | BuildRequires: rpmbuild(macros) >= 1.357 |
5f855dbc | 31 | BuildRequires: sed >= 4.0 |
df79ad5e | 32 | Requires: browser-plugins >= 2.0 |
e8872bc1 ER |
33 | # apparently dlopened by player |
34 | Requires: libasound.so.2 | |
8fb522d2 | 35 | Requires: libcurl.so.4 |
6fa8c0e6 | 36 | Requires: libnss3.so |
94ae04b2 | 37 | %else |
f68af2cb | 38 | Requires: rpm-build-tools |
533db319 | 39 | %endif |
bcccd50e | 40 | Provides: browser(flash) |
5f855dbc | 41 | Provides: macromedia-flash |
533db319 | 42 | Obsoletes: flash-plugin |
533db319 | 43 | Obsoletes: konqueror-plugin-macromedia-flash |
5891b1a0 | 44 | Obsoletes: macromedia-flash |
a00d2cc2 ER |
45 | Obsoletes: mozilla-firefox-plugin-macromedia-flash |
46 | Obsoletes: mozilla-plugin-macromedia-flash | |
01b5e1fb PG |
47 | ExclusiveArch: %{ix86} |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
ed1085d2 ER |
50 | %define _sysconfdir /etc/adobe |
51 | ||
0fa08e0e ER |
52 | # So that building package on AC system won't write package name dep that Th system can't understand (libstdc++4) |
53 | %define _noautoreqdep libstdc++.so.6 | |
54 | ||
1fe30e9c ER |
55 | # No debuginfo to be stored |
56 | %define _enable_debug_packages 0 | |
57 | ||
01b5e1fb | 58 | %description |
65fff478 | 59 | Adobe(R) Flash(R) Player for Linux - the next-generation client |
e338620c | 60 | runtime for engaging with Flash content and applications on Linux. |
53f15d83 | 61 | |
5f2286aa JR |
62 | %description -l pl.UTF-8 |
63 | Adobe(R) Flash(R) Player - środowisko nowej generacji do obsługi | |
64 | treści i aplikacji we Flashu pod Linuksem. | |
53f15d83 | 65 | |
01b5e1fb | 66 | %prep |
aa3cbbce | 67 | %if %{with license_agreement} |
5e11dd18 | 68 | %setup -q -n install_flash_player_%{ver_major}_linux |
aa3cbbce | 69 | %endif |
01b5e1fb PG |
70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
ed1085d2 | 73 | %if %{without license_agreement} |
aa3cbbce | 74 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}} |
75 | ||
18284157 ER |
76 | sed -e ' |
77 | s/@BASE_NAME@/%{base_name}/g | |
78 | s/@TARGET_CPU@/%{_target_cpu}/g | |
79 | s-@VERSION@-%{version}-g | |
80 | s-@RELEASE@-%{release}-g | |
81 | s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g | |
6b6413ed | 82 | ' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install |
aa3cbbce | 83 | |
84 | install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name} | |
85 | ||
86 | %else | |
87 | ||
ed1085d2 ER |
88 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir}} |
89 | cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg | |
90 | # http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=16701594 | |
e953e2c9 | 91 | # http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html |
ed1085d2 ER |
92 | AutoUpdateDisable=1 |
93 | AutoUpdateInterval=0 | |
be05c7b7 | 94 | # OverrideGPUValidation=true |
ed1085d2 | 95 | EOF |
df79ad5e | 96 | install *.so $RPM_BUILD_ROOT%{_browserpluginsdir} |
01b5e1fb | 97 | |
5f855dbc ER |
98 | # HACK: Try if new ABI is compatible |
99 | sed -i -e 's/libcurl\.so\.3/libcurl.so.4/g' $RPM_BUILD_ROOT%{_browserpluginsdir}/libflashplayer.so | |
100 | ||
aa3cbbce | 101 | %endif |
102 | ||
01b5e1fb PG |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
df79ad5e | 106 | %if %{without license_agreement} |
ae33c71b | 107 | %post |
18284157 | 108 | %{_bindir}/%{base_name}.install |
533db319 | 109 | %else |
df79ad5e ER |
110 | %post |
111 | %update_browser_plugins | |
533db319 | 112 | |
df79ad5e ER |
113 | %postun |
114 | if [ "$1" = 0 ]; then | |
115 | %update_browser_plugins | |
116 | fi | |
533db319 ER |
117 | %endif |
118 | ||
aa3cbbce | 119 | %files |
120 | %defattr(644,root,root,755) | |
df79ad5e | 121 | %if %{without license_agreement} |
aa3cbbce | 122 | %attr(755,root,root) %{_bindir}/%{base_name}.install |
123 | %{_datadir}/%{base_name} | |
aa3cbbce | 124 | %else |
ed1085d2 ER |
125 | %dir %{_sysconfdir} |
126 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg | |
df79ad5e | 127 | %attr(755,root,root) %{_browserpluginsdir}/*.so |
aa3cbbce | 128 | %endif |