1 |
|
|
2 |
%define name flash-player-plugin |
%define name flash-player-plugin |
3 |
%define version 10.2.159.1 |
%define version 10.3.181.14 |
4 |
%define rel 1 |
%define rel 1 |
5 |
|
|
6 |
# backportability |
# backportability |
47 |
Conflicts: lightspark-mozilla-plugin |
Conflicts: lightspark-mozilla-plugin |
48 |
Conflicts: libflashsupport < 0.20080000.1 |
Conflicts: libflashsupport < 0.20080000.1 |
49 |
Obsoletes: flash-player-plugin10.2 < 10.2.152 |
Obsoletes: flash-player-plugin10.2 < 10.2.152 |
50 |
|
BuildRequires: kde4-macros |
51 |
BuildRoot: %{_tmppath}/%{name}-root |
BuildRoot: %{_tmppath}/%{name}-root |
52 |
|
|
53 |
%description |
%description |
68 |
# Their md5sums differ. |
# Their md5sums differ. |
69 |
%ifarch %ix86 |
%ifarch %ix86 |
70 |
%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 |
71 |
%define tmd5sum1 7abf41a13b02d68cf91f19c57eccadc5 |
%define tmd5sum1 257d2a592f416436d49e0322b30b4ef4 |
72 |
%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 |
73 |
%define tmd5sum2 827641c30e8b9888a489e830483de2ed |
%define tmd5sum2 257d2a592f416436d49e0322b30b4ef4 |
74 |
%define tarname flash-plugin-%version-release.i386.rpm |
%define tarname flash-plugin-%version-release.i386.rpm |
75 |
%define tartype rpm |
%define tartype rpm |
|
%define srcdir ./usr/lib/flash-plugin/ |
|
76 |
%endif |
%endif |
77 |
%ifarch x86_64 |
%ifarch x86_64 |
78 |
%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 |
81 |
%define tmd5sum2 %nil |
%define tmd5sum2 %nil |
82 |
%define tarname libflashplayer-%version.linux-x86_64.so.tar.gz |
%define tarname libflashplayer-%version.linux-x86_64.so.tar.gz |
83 |
%define tartype tar |
%define tartype tar |
|
%define srcdir %nil |
|
84 |
%endif |
%endif |
85 |
|
|
86 |
cat > download-flash-player-plugin <<EOF |
cat > download-flash-player-plugin <<EOF |
94 |
URL1="%{downurl1}" |
URL1="%{downurl1}" |
95 |
URL2="%{downurl2}" |
URL2="%{downurl2}" |
96 |
URL3= |
URL3= |
97 |
FILE1_SRC="%{srcdir}libflashplayer.so" |
FILE1_SRC="usr/lib/flash-plugin/libflashplayer.so" |
98 |
FILE1_DST="%{_libdir}/mozilla/plugins/libflashplayer.so" |
FILE1_DST="%{_libdir}/mozilla/plugins/libflashplayer.so" |
99 |
%ifarch x86_64 |
FILE2_SRC="usr/lib/flash-plugin/LICENSE" |
|
# x86_64 tarballs contains binary only |
|
|
# if changed, remember to update filelist as well |
|
|
FILE2_SRC= |
|
|
%else |
|
|
FILE2_SRC="%srcdir/LICENSE" |
|
|
%endif |
|
100 |
FILE2_DST="%{_libdir}/mozilla/plugins/LICENSE.flashplayer" |
FILE2_DST="%{_libdir}/mozilla/plugins/LICENSE.flashplayer" |
101 |
FILE3_SRC= |
FILE3_SRC="usr/lib/flash-plugin/README" |
102 |
|
FILE3_DST="%{_libdir}/mozilla/plugins/README.flashplayer" |
103 |
|
|
104 |
|
FILE4_SRC="usr/bin/flash-player-properties" |
105 |
|
FILE4_DST="%{_bindir}/flash-player-properties" |
106 |
|
FILE5_SRC="usr/share/applications/flash-player-properties.desktop" |
107 |
|
FILE5_DST="%{_datadir}/applications/flash-player-properties.desktop" |
108 |
|
|
109 |
|
FILE6_SRC="usr/share/icons/hicolor/16x16/apps/flash-player-properties.png" |
110 |
|
FILE6_DST="%{_iconsdir}/hicolor/16x16/apps/flash-player-properties.png" |
111 |
|
FILE7_SRC="usr/share/icons/hicolor/22x22/apps/flash-player-properties.png" |
112 |
|
FILE7_DST="%{_iconsdir}/hicolor/22x22/apps/flash-player-properties.png" |
113 |
|
FILE8_SRC="usr/share/icons/hicolor/24x24/apps/flash-player-properties.png" |
114 |
|
FILE8_DST="%{_iconsdir}/hicolor/24x24/apps/flash-player-properties.png" |
115 |
|
FILE9_SRC="usr/share/icons/hicolor/32x32/apps/flash-player-properties.png" |
116 |
|
FILE9_DST="%{_iconsdir}/hicolor/32x32/apps/flash-player-properties.png" |
117 |
|
FILE10_SRC="usr/share/icons/hicolor/48x48/apps/flash-player-properties.png" |
118 |
|
FILE10_DST="%{_iconsdir}/hicolor/48x48/apps/flash-player-properties.png" |
119 |
|
|
120 |
|
FILE11_SRC="usr/lib/kde4/kcm_adobe_flash_player.so" |
121 |
|
FILE11_DST="%{_kde_libdir}/kde4/kcm_adobe_flash_player.so" |
122 |
|
FILE12_SRC="usr/share/kde4/services/kcm_adobe_flash_player.desktop" |
123 |
|
FILE12_DST="%{_kde_services}/kcm_adobe_flash_player.desktop" |
124 |
|
|
125 |
|
FILE13_SRC= |
126 |
|
|
127 |
EOF |
EOF |
128 |
cat %SOURCE0 >> download-flash-player-plugin |
cat %SOURCE0 >> download-flash-player-plugin |
129 |
|
|
130 |
|
cat >> download-flash-player-plugin <<EOF |
131 |
|
%{_bindir}/gtk-update-icon-cache --force --quiet %{_iconsdir}/hicolor &>/dev/null |
132 |
|
EOF |
133 |
|
|
134 |
%ifarch %ix86 |
%ifarch %ix86 |
135 |
cat >> download-flash-player-plugin <<EOF |
cat >> download-flash-player-plugin <<EOF |
136 |
if [ "\$(uname -m)" == x86_64 ]; then |
if [ "\$(uname -m)" == x86_64 ]; then |
140 |
else |
else |
141 |
echo "Install nspluginwrapper if you want to use the plugin with 64bit browsers too." |
echo "Install nspluginwrapper if you want to use the plugin with 64bit browsers too." |
142 |
fi |
fi |
143 |
|
echo "Note: Adobe Flash Player configurator can only be accessed from the normal Tools" |
144 |
|
echo "menu instead of KDE System Settings (due to this being a 64bit system)." |
145 |
|
rm -f %{_kde_services}/kcm_adobe_flash_player.desktop |
146 |
|
sed -i 's,NotShowIn=KDE;,,' %{_datadir}/applications/flash-player-properties.desktop |
147 |
|
# otherwise KDE hides it: |
148 |
|
sed -i 's,GNOME;,,' %{_datadir}/applications/flash-player-properties.desktop |
149 |
fi |
fi |
150 |
EOF |
EOF |
151 |
%endif |
%endif |
156 |
install -d -m755 %{buildroot}%{_localstatedir}/lib/%{name} |
install -d -m755 %{buildroot}%{_localstatedir}/lib/%{name} |
157 |
install -d -m755 %{buildroot}%{_libdir}/mozilla/plugins |
install -d -m755 %{buildroot}%{_libdir}/mozilla/plugins |
158 |
touch %{buildroot}%{_libdir}/mozilla/plugins/libflashplayer.so |
touch %{buildroot}%{_libdir}/mozilla/plugins/libflashplayer.so |
|
%ifnarch x86_64 |
|
159 |
touch %{buildroot}%{_libdir}/mozilla/plugins/LICENSE.flashplayer |
touch %{buildroot}%{_libdir}/mozilla/plugins/LICENSE.flashplayer |
160 |
%endif |
touch %{buildroot}%{_libdir}/mozilla/plugins/README.flashplayer |
161 |
touch %{buildroot}%{_localstatedir}/lib/%{name}/%{tarname} |
touch %{buildroot}%{_localstatedir}/lib/%{name}/%{tarname} |
162 |
|
|
163 |
|
install -d -m755 %{buildroot}%{_bindir} |
164 |
|
touch %{buildroot}%{_bindir}/flash-player-properties |
165 |
|
|
166 |
|
install -d -m755 %{buildroot}%{_kde_services} |
167 |
|
touch %{buildroot}%{_kde_services}/kcm_adobe_flash_player.desktop |
168 |
|
install -d -m755 %{buildroot}%{_kde_libdir}/kde4 |
169 |
|
touch %{buildroot}%{_kde_libdir}/kde4/kcm_adobe_flash_player.so |
170 |
|
|
171 |
|
install -d -m755 %{buildroot}%{_datadir}/applications |
172 |
|
touch %{buildroot}%{_datadir}/applications/flash-player-properties.desktop |
173 |
|
|
174 |
|
for i in 16 22 24 32 48; do |
175 |
|
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
176 |
|
touch %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/flash-player-properties.png |
177 |
|
done |
178 |
|
|
179 |
install -d -m755 %{buildroot}%{_sbindir} |
install -d -m755 %{buildroot}%{_sbindir} |
180 |
install -m755 download-flash-player-plugin %{buildroot}%{_sbindir} |
install -m755 download-flash-player-plugin %{buildroot}%{_sbindir} |
181 |
|
|
201 |
%dir %{_libdir}/mozilla |
%dir %{_libdir}/mozilla |
202 |
%dir %{_libdir}/mozilla/plugins |
%dir %{_libdir}/mozilla/plugins |
203 |
%ghost %{_libdir}/mozilla/plugins/libflashplayer.so |
%ghost %{_libdir}/mozilla/plugins/libflashplayer.so |
|
%ifnarch x86_64 |
|
204 |
%ghost %{_libdir}/mozilla/plugins/LICENSE.flashplayer |
%ghost %{_libdir}/mozilla/plugins/LICENSE.flashplayer |
205 |
%endif |
%ghost %{_libdir}/mozilla/plugins/README.flashplayer |
206 |
|
|
207 |
|
%ghost %{_bindir}/flash-player-properties |
208 |
|
%ghost %{_datadir}/applications/flash-player-properties.desktop |
209 |
|
%ghost %{_iconsdir}/hicolor/*/apps/flash-player-properties.png |
210 |
|
|
211 |
|
# Prevent unowned directories on non-KDE systems |
212 |
|
%dir %{_kde_libdir}/kde4 |
213 |
|
%dir %{_datadir}/kde4 |
214 |
|
%dir %{_kde_services} |
215 |
|
|
216 |
|
%ghost %{_kde_libdir}/kde4/kcm_adobe_flash_player.so |
217 |
|
%ghost %{_kde_services}/kcm_adobe_flash_player.desktop |
218 |
|
|