2 |
%define name flash-player-plugin |
%define name flash-player-plugin |
3 |
%define version 10.3.183.5 |
%define version 10.3.183.5 |
4 |
%define rel 0 |
%define rel 0 |
5 |
%define subrel 1 |
%define subrel 2 |
6 |
|
|
7 |
# backportability |
# backportability |
8 |
%define _localstatedir /var |
%define _localstatedir /var |
9 |
|
|
10 |
|
%ifarch x86_64 |
11 |
|
# fake 64-bit package that contains 32-bit flash |
12 |
|
# (to avoid having to have 32-bit nonfree repo on 64-bit) |
13 |
|
# - Anssi 08/2011 |
14 |
|
%define _lib lib |
15 |
|
%define _libdir %{_prefix}/lib |
16 |
|
%endif |
17 |
|
|
18 |
|
%ifarch x86_64 |
19 |
|
# fake 64-bit package |
20 |
|
Summary: Flash Player plugin for browsers - 32-bit version |
21 |
|
%else |
22 |
Summary: Flash Player plugin for browsers |
Summary: Flash Player plugin for browsers |
23 |
|
%endif |
24 |
Name: %name |
Name: %name |
25 |
Version: %version |
Version: %version |
26 |
Release: %mkrel %rel |
Release: %mkrel %rel |
28 |
URL: http://www.adobe.com/products/flashplayer/ |
URL: http://www.adobe.com/products/flashplayer/ |
29 |
Group: Networking/WWW |
Group: Networking/WWW |
30 |
ExclusiveArch: %ix86 |
ExclusiveArch: %ix86 |
31 |
|
# fake 64-bit package: |
32 |
|
ExclusiveArch: x86_64 |
33 |
|
|
34 |
Requires(pre): curl |
Requires(pre): curl |
35 |
|
|
36 |
# obtained by objdump -x /usr/lib/mozilla/plugins/libflashplayer.so | grep NEEDED |
# obtained by objdump -x /usr/lib/mozilla/plugins/libflashplayer.so | grep NEEDED |
63 |
Conflicts: libflashsupport < 0.20080000.1 |
Conflicts: libflashsupport < 0.20080000.1 |
64 |
Obsoletes: flash-player-plugin10.2 < 10.2.152 |
Obsoletes: flash-player-plugin10.2 < 10.2.152 |
65 |
BuildRequires: kde4-macros |
BuildRequires: kde4-macros |
66 |
|
%ifarch x86_64 |
67 |
|
# fake 64-bit package |
68 |
|
Suggests: nspluginwrapper |
69 |
|
%endif |
70 |
BuildRoot: %{_tmppath}/%{name}-root |
BuildRoot: %{_tmppath}/%{name}-root |
71 |
|
|
72 |
%description |
%description |
78 |
|
|
79 |
Installing this package indicates acceptance of the EULA, available |
Installing this package indicates acceptance of the EULA, available |
80 |
from http://www.adobe.com/products/eulas/players/flash/. |
from http://www.adobe.com/products/eulas/players/flash/. |
81 |
|
%ifarch x86_64 |
82 |
|
NOTE: This package actually contains the 32-bit version of Flash |
83 |
|
Player as 64-bit stable Flash Player is not yet available. |
84 |
|
|
85 |
|
This package will be automatically upgraded to the 64-bit version |
86 |
|
when it becomes available. |
87 |
|
%endif |
88 |
# It would be preferable to have the KCM module in the main package with |
# It would be preferable to have the KCM module in the main package with |
89 |
# simply not requiring any kde stuff. However, standard KDE installation |
# simply not requiring any kde stuff. However, standard KDE installation |
90 |
# doesn't necessary include libkutils4. - Anssi 08/2011 |
# doesn't necessary include libkutils4. - Anssi 08/2011 |
91 |
|
|
92 |
|
%ifnarch x86_64 |
93 |
|
# fake 64-bit package |
94 |
%package kde |
%package kde |
95 |
Summary: Flash Player KDE settings module |
Summary: Flash Player KDE settings module |
96 |
Group: Networking/WWW |
Group: Networking/WWW |
126 |
Installing this package indicates acceptance of the EULA, available |
Installing this package indicates acceptance of the EULA, available |
127 |
from http://www.adobe.com/products/eulas/players/flash/. |
from http://www.adobe.com/products/eulas/players/flash/. |
128 |
|
|
129 |
|
%endif |
130 |
|
|
131 |
%prep |
%prep |
132 |
%setup -c -T |
%setup -c -T |
133 |
|
|
134 |
# The linuxdownload.adobe.com rpm usually stays up longer, but fpdownload.macromedia.com is faster. |
# The linuxdownload.adobe.com rpm usually stays up longer, but fpdownload.macromedia.com is faster. |
135 |
# Their md5sums usually differ. |
# Their md5sums usually differ. |
136 |
%ifarch %ix86 |
#ifarch %ix86 |
137 |
|
# fake 64-bit package |
138 |
%define downurl1 http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-%version-release.i386.rpm |
%define downurl1 http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-%version-release.i386.rpm |
139 |
%define tmd5sum1 05df93d6f61f555bec3267ea6eeb54f0 |
%define tmd5sum1 05df93d6f61f555bec3267ea6eeb54f0 |
140 |
%define downurl2 http://linuxdownload.adobe.com/linux/i386/flash-plugin-%version-release.i386.rpm |
%define downurl2 http://linuxdownload.adobe.com/linux/i386/flash-plugin-%version-release.i386.rpm |
141 |
%define tmd5sum2 c02f9b54d942c0b0d59edb1cbff2ae6b |
%define tmd5sum2 c02f9b54d942c0b0d59edb1cbff2ae6b |
142 |
%define tarname flash-plugin-%version-release.i386.rpm |
%define tarname flash-plugin-%version-release.i386.rpm |
143 |
%define tartype rpm |
%define tartype rpm |
144 |
%endif |
#endif |
145 |
%ifarch x86_64 |
|
146 |
|
%if 0 |
147 |
|
# fake 64-bit package |
148 |
|
#ifarch x86_64 |
149 |
%define downurl1 http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-%version.linux-x86_64.so.tar.gz |
%define downurl1 http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-%version.linux-x86_64.so.tar.gz |
150 |
%define tmd5sum1 none, not available |
%define tmd5sum1 none, not available |
151 |
%define downurl2 %nil |
%define downurl2 %nil |
169 |
install -d -m755 %{buildroot}%{_bindir} |
install -d -m755 %{buildroot}%{_bindir} |
170 |
touch %{buildroot}%{_bindir}/flash-player-properties |
touch %{buildroot}%{_bindir}/flash-player-properties |
171 |
|
|
172 |
|
%ifnarch x86_64 |
173 |
|
# fake 64-bit package |
174 |
install -d -m755 %{buildroot}%{_kde_services} |
install -d -m755 %{buildroot}%{_kde_services} |
175 |
touch %{buildroot}%{_kde_services}/kcm_adobe_flash_player.desktop |
touch %{buildroot}%{_kde_services}/kcm_adobe_flash_player.desktop |
176 |
install -d -m755 %{buildroot}%{_kde_libdir}/kde4 |
install -d -m755 %{buildroot}%{_kde_libdir}/kde4 |
177 |
touch %{buildroot}%{_kde_libdir}/kde4/kcm_adobe_flash_player.so |
touch %{buildroot}%{_kde_libdir}/kde4/kcm_adobe_flash_player.so |
178 |
|
%endif |
179 |
|
|
180 |
install -d -m755 %{buildroot}%{_datadir}/applications |
install -d -m755 %{buildroot}%{_datadir}/applications |
181 |
touch %{buildroot}%{_datadir}/applications/flash-player-properties.desktop |
touch %{buildroot}%{_datadir}/applications/flash-player-properties.desktop |
301 |
fi |
fi |
302 |
fi |
fi |
303 |
|
|
304 |
|
%ifnarch x86_64 |
305 |
|
# fake 64-bit package |
306 |
%post kde |
%post kde |
307 |
FILE1_SRC="usr/lib/kde4/kcm_adobe_flash_player.so" |
FILE1_SRC="usr/lib/kde4/kcm_adobe_flash_player.so" |
308 |
FILE1_DST="%{_kde_libdir}/kde4/kcm_adobe_flash_player.so" |
FILE1_DST="%{_kde_libdir}/kde4/kcm_adobe_flash_player.so" |
317 |
echo "menu instead of KDE System Settings (due to this being a 64bit system)." |
echo "menu instead of KDE System Settings (due to this being a 64bit system)." |
318 |
rm -f %{_kde_services}/kcm_adobe_flash_player.desktop |
rm -f %{_kde_services}/kcm_adobe_flash_player.desktop |
319 |
fi |
fi |
320 |
|
%endif |
321 |
|
|
322 |
%files |
%files |
323 |
%defattr(-,root,root) |
%defattr(-,root,root) |
336 |
%ghost %{_datadir}/applications/flash-player-properties.desktop |
%ghost %{_datadir}/applications/flash-player-properties.desktop |
337 |
%ghost %{_iconsdir}/hicolor/*/apps/flash-player-properties.png |
%ghost %{_iconsdir}/hicolor/*/apps/flash-player-properties.png |
338 |
|
|
339 |
|
%ifnarch x86_64 |
340 |
|
# fake 64-bit package |
341 |
%files kde |
%files kde |
342 |
%defattr(-,root,root) |
%defattr(-,root,root) |
343 |
%ghost %{_kde_libdir}/kde4/kcm_adobe_flash_player.so |
%ghost %{_kde_libdir}/kde4/kcm_adobe_flash_player.so |
344 |
%ghost %{_kde_services}/kcm_adobe_flash_player.desktop |
%ghost %{_kde_services}/kcm_adobe_flash_player.desktop |
345 |
|
%endif |