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