]>
Commit | Line | Data |
---|---|---|
e9cc6da3 | 1 | # |
aa3cbbce | 2 | # Conditional build: |
3 | %bcond_with license_agreement # generates package | |
e9cc6da3 | 4 | # |
29d8201b | 5 | %define _ver_major 9 |
b68eb59b | 6 | %define _ver_minor 0 |
e73d8fbe | 7 | %define _ver_patch 124 |
43f0f735 | 8 | %define _ver_serial 0 |
fdeb48aa | 9 | %define base_name adobe-flash |
53f15d83 | 10 | Summary: Flash plugin for Netscape-compatible WWW browsers |
989db712 | 11 | Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape |
aa3cbbce | 12 | %if %{with license_agreement} |
13 | Name: %{base_name} | |
14 | %else | |
15 | Name: %{base_name}-installer | |
16 | %endif | |
08bdb019 | 17 | %define _rel 1 |
a00d2cc2 | 18 | Version: %{_ver_major}.%{_ver_minor}.%{_ver_patch}.%{_ver_serial} |
d628a757 | 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} |
f1e0b648 | 23 | Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz |
e73d8fbe | 24 | # NoSource0-md5: a311fd97aa6c214f63dc089a20cf7a39 |
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 ER |
30 | BuildRequires: rpmbuild(macros) >= 1.357 |
31 | Requires: browser-plugins >= 2.0 | |
e8872bc1 ER |
32 | # apparently dlopened by player |
33 | Requires: libasound.so.2 | |
94ae04b2 | 34 | %else |
f68af2cb | 35 | Requires: rpm-build-tools |
533db319 | 36 | %endif |
0b0dcf20 | 37 | Provides: macromedia-flash |
bcccd50e | 38 | Provides: browser(flash) |
533db319 | 39 | Obsoletes: flash-plugin |
533db319 | 40 | Obsoletes: konqueror-plugin-macromedia-flash |
5891b1a0 | 41 | Obsoletes: macromedia-flash |
a00d2cc2 ER |
42 | Obsoletes: mozilla-firefox-plugin-macromedia-flash |
43 | Obsoletes: mozilla-plugin-macromedia-flash | |
01b5e1fb PG |
44 | ExclusiveArch: %{ix86} |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
46 | ||
ed1085d2 ER |
47 | %define _sysconfdir /etc/adobe |
48 | ||
01b5e1fb | 49 | %description |
e338620c JB |
50 | Adobe(R) Flash(R) Player 9 for Linux - the next-generation client |
51 | runtime for engaging with Flash content and applications on Linux. | |
53f15d83 | 52 | |
5f2286aa JR |
53 | %description -l pl.UTF-8 |
54 | Adobe(R) Flash(R) Player - środowisko nowej generacji do obsługi | |
55 | treści i aplikacji we Flashu pod Linuksem. | |
53f15d83 | 56 | |
01b5e1fb | 57 | %prep |
aa3cbbce | 58 | %if %{with license_agreement} |
08bdb019 | 59 | %setup -q -n install_flash_player_%{_ver_major}_linux |
aa3cbbce | 60 | %endif |
01b5e1fb PG |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
ed1085d2 | 64 | %if %{without license_agreement} |
aa3cbbce | 65 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}} |
66 | ||
18284157 ER |
67 | sed -e ' |
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 | |
6b6413ed | 73 | ' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install |
aa3cbbce | 74 | |
75 | install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name} | |
76 | ||
77 | %else | |
78 | ||
ed1085d2 ER |
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 | |
82 | AutoUpdateDisable=1 | |
83 | AutoUpdateInterval=0 | |
84 | EOF | |
df79ad5e | 85 | install *.so $RPM_BUILD_ROOT%{_browserpluginsdir} |
01b5e1fb | 86 | |
aa3cbbce | 87 | %endif |
88 | ||
01b5e1fb PG |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
df79ad5e | 92 | %if %{without license_agreement} |
ae33c71b | 93 | %post |
18284157 | 94 | %{_bindir}/%{base_name}.install |
533db319 | 95 | %else |
df79ad5e ER |
96 | %post |
97 | %update_browser_plugins | |
533db319 | 98 | |
df79ad5e ER |
99 | %postun |
100 | if [ "$1" = 0 ]; then | |
101 | %update_browser_plugins | |
102 | fi | |
533db319 ER |
103 | %endif |
104 | ||
aa3cbbce | 105 | %files |
106 | %defattr(644,root,root,755) | |
df79ad5e | 107 | %if %{without license_agreement} |
aa3cbbce | 108 | %attr(755,root,root) %{_bindir}/%{base_name}.install |
109 | %{_datadir}/%{base_name} | |
aa3cbbce | 110 | %else |
ed1085d2 ER |
111 | %dir %{_sysconfdir} |
112 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg | |
df79ad5e | 113 | %attr(755,root,root) %{_browserpluginsdir}/*.so |
aa3cbbce | 114 | %endif |