]>
Commit | Line | Data |
---|---|---|
d8f8df8e ER |
1 | # NOTES: |
2 | # - release archives: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html | |
5e166df9 AF |
3 | # TODO: package kde4 component |
4 | # | |
aa3cbbce | 5 | # Conditional build: |
6 | %bcond_with license_agreement # generates package | |
5e166df9 | 7 | |
e6d2385a | 8 | %ifarch %{ix86} |
e6d2385a ER |
9 | %define libmark %{nil} |
10 | %endif | |
e0aacdca | 11 | %ifarch %{x8664} |
e6d2385a | 12 | %define libmark ()(64bit) |
b18d4034 | 13 | %endif |
19d7e29f | 14 | |
fdeb48aa | 15 | %define base_name adobe-flash |
34f4f422 | 16 | %define rel 1 |
53f15d83 | 17 | Summary: Flash plugin for Netscape-compatible WWW browsers |
989db712 | 18 | Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape |
aa3cbbce | 19 | %if %{with license_agreement} |
20 | Name: %{base_name} | |
21 | %else | |
22 | Name: %{base_name}-installer | |
23 | %endif | |
aee17b98 | 24 | Version: 26.0.0.102 |
5e11dd18 | 25 | Release: %{rel}%{?with_license_agreement:wla} |
4ec0200b | 26 | Epoch: 1 |
53f15d83 | 27 | License: Free to use, non-distributable |
01b5e1fb | 28 | Group: X11/Applications/Multimedia |
aa3cbbce | 29 | %if %{with license_agreement} |
fc9828eb | 30 | Source0: https://fpdownload.macromedia.com/pub/labs/flashruntimes/flashplayer/linux32/flash_player_npapi_linux.i386.tar.gz?/flash-%{version}.i386.tar.gz |
aee17b98 | 31 | # NoSource0-md5: 00a5711e9b45f7ad37e48ae77e125dd6 |
364b3cd0 | 32 | NoSource: 0 |
fc9828eb | 33 | Source1: https://fpdownload.macromedia.com/pub/labs/flashruntimes/flashplayer/linux64/flash_player_npapi_linux.x86_64.tar.gz?/flash-%{version}.x86_64.tar.gz |
aee17b98 | 34 | # NoSource1-md5: 73f1832ff152d70ac330593a39120cfa |
e0aacdca | 35 | NoSource: 1 |
18284157 | 36 | %else |
63f88470 | 37 | Source3: http://svn.pld-linux.org/svn/license-installer/license-installer.sh |
aee17b98 | 38 | # Source3-md5: 39dd73d36280769d0f74d642c7b0c6d3 |
aa3cbbce | 39 | %endif |
e7f111c3 | 40 | Source2: mms.cfg |
fc9828eb JR |
41 | #URL: http://www.adobe.com/products/flashplayer/ |
42 | URL: http://labs.adobe.com/downloads/flashplayer.html | |
df5ca9b7 | 43 | Patch0: desktop.patch |
b68eb59b | 44 | %if %{with license_agreement} |
df79ad5e | 45 | BuildRequires: rpmbuild(macros) >= 1.357 |
5f855dbc | 46 | BuildRequires: sed >= 4.0 |
df79ad5e | 47 | Requires: browser-plugins >= 2.0 |
df5ca9b7 | 48 | Requires: hicolor-icon-theme |
15b3da69 | 49 | # dlopened by player |
b18d4034 AM |
50 | Requires: libasound.so.2%{libmark} |
51 | Requires: libcurl.so.4%{libmark} | |
94ae04b2 | 52 | %else |
1fe695bf | 53 | Requires: rpm-build-tools >= 4.4.37 |
9377eeca | 54 | Requires: rpmbuild(macros) >= 1.544 |
533db319 | 55 | %endif |
4608d459 | 56 | Requires: cpuinfo(sse2) |
bcccd50e | 57 | Provides: browser(flash) |
5f855dbc | 58 | Provides: macromedia-flash |
533db319 | 59 | Obsoletes: flash-plugin |
533db319 | 60 | Obsoletes: konqueror-plugin-macromedia-flash |
5891b1a0 | 61 | Obsoletes: macromedia-flash |
a00d2cc2 ER |
62 | Obsoletes: mozilla-firefox-plugin-macromedia-flash |
63 | Obsoletes: mozilla-plugin-macromedia-flash | |
e0aacdca | 64 | ExclusiveArch: %{ix86} %{x8664} |
01b5e1fb PG |
65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
66 | ||
ed1085d2 ER |
67 | %define _sysconfdir /etc/adobe |
68 | ||
0fa08e0e ER |
69 | # So that building package on AC system won't write package name dep that Th system can't understand (libstdc++4) |
70 | %define _noautoreqdep libstdc++.so.6 | |
71 | ||
1fe30e9c ER |
72 | # No debuginfo to be stored |
73 | %define _enable_debug_packages 0 | |
74 | ||
01b5e1fb | 75 | %description |
65fff478 | 76 | Adobe(R) Flash(R) Player for Linux - the next-generation client |
e338620c | 77 | runtime for engaging with Flash content and applications on Linux. |
53f15d83 | 78 | |
5f2286aa JR |
79 | %description -l pl.UTF-8 |
80 | Adobe(R) Flash(R) Player - środowisko nowej generacji do obsługi | |
81 | treści i aplikacji we Flashu pod Linuksem. | |
53f15d83 | 82 | |
01b5e1fb | 83 | %prep |
aa3cbbce | 84 | %if %{with license_agreement} |
b18d4034 AM |
85 | %ifarch %{x8664} |
86 | %setup -q -T -c -b 1 | |
87 | %else | |
3170126a | 88 | %setup -q -T -c -b 0 |
b18d4034 | 89 | %endif |
df5ca9b7 | 90 | %patch0 -p1 |
d4052f7c ER |
91 | |
92 | %build | |
361299b8 JP |
93 | s=$(echo '%{version}' | tr . ,) |
94 | v=$(strings libflashplayer.so | grep -m 1 'LNX ' | sed 's/.*LNX //') | |
d4052f7c ER |
95 | if [ "$v" != "$s" ]; then |
96 | : wrong version | |
97 | exit 1 | |
98 | fi | |
3a950945 | 99 | %endif |
d6511d55 | 100 | |
01b5e1fb PG |
101 | %install |
102 | rm -rf $RPM_BUILD_ROOT | |
ed1085d2 | 103 | %if %{without license_agreement} |
aa3cbbce | 104 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}} |
105 | ||
18284157 ER |
106 | sed -e ' |
107 | s/@BASE_NAME@/%{base_name}/g | |
108 | s/@TARGET_CPU@/%{_target_cpu}/g | |
109 | s-@VERSION@-%{version}-g | |
110 | s-@RELEASE@-%{release}-g | |
111 | s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g | |
03482652 | 112 | s,@DATADIR@,%{_datadir}/%{base_name},g |
77a494ed | 113 | s,@COPYSOURCES@,mms.cfg desktop.patch,g |
63f88470 | 114 | ' %{SOURCE3} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install |
aa3cbbce | 115 | |
63f88470 | 116 | cp -p %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name} |
8524ac1d ER |
117 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{base_name} |
118 | cp -p %{PATCH0} $RPM_BUILD_ROOT%{_datadir}/%{base_name} | |
aa3cbbce | 119 | |
120 | %else | |
121 | ||
5e166df9 | 122 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir},%{_bindir},%{_desktopdir},%{_iconsdir}} |
63f88470 ER |
123 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg |
124 | install -p *.so $RPM_BUILD_ROOT%{_browserpluginsdir} | |
8524ac1d ER |
125 | install -p usr/bin/flash-player-properties $RPM_BUILD_ROOT%{_bindir} |
126 | cp -p usr/share/applications/flash-player-properties.desktop $RPM_BUILD_ROOT%{_desktopdir}/flash-player-properties.desktop | |
8fb4d8b7 | 127 | cp -a usr/share/icons/* $RPM_BUILD_ROOT%{_iconsdir} |
aa3cbbce | 128 | %endif |
129 | ||
01b5e1fb PG |
130 | %clean |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
df79ad5e | 133 | %if %{without license_agreement} |
ae33c71b | 134 | %post |
18284157 | 135 | %{_bindir}/%{base_name}.install |
533db319 | 136 | %else |
df79ad5e ER |
137 | %post |
138 | %update_browser_plugins | |
5e166df9 | 139 | %update_icon_cache hicolor |
533db319 | 140 | |
df79ad5e ER |
141 | %postun |
142 | if [ "$1" = 0 ]; then | |
143 | %update_browser_plugins | |
144 | fi | |
5e166df9 | 145 | %update_icon_cache hicolor |
533db319 ER |
146 | %endif |
147 | ||
aa3cbbce | 148 | %files |
149 | %defattr(644,root,root,755) | |
df79ad5e | 150 | %if %{without license_agreement} |
aa3cbbce | 151 | %attr(755,root,root) %{_bindir}/%{base_name}.install |
152 | %{_datadir}/%{base_name} | |
aa3cbbce | 153 | %else |
baac248d | 154 | %doc readme.txt |
ed1085d2 ER |
155 | %dir %{_sysconfdir} |
156 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg | |
8fb4d8b7 | 157 | %attr(755,root,root) %{_bindir}/flash-player-properties |
df79ad5e | 158 | %attr(755,root,root) %{_browserpluginsdir}/*.so |
8fb4d8b7 ER |
159 | %{_desktopdir}/flash-player-properties.desktop |
160 | %{_iconsdir}/hicolor/*/apps/*.png | |
aa3cbbce | 161 | %endif |