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