1 |
|
|
2 |
%define name flash-player-plugin |
%define name flash-player-plugin |
3 |
%define version 10.3.183.7 |
%define version 10.3.183.10 |
4 |
%define rel 1 |
%define rel 1 |
5 |
|
|
6 |
# backportability |
# backportability |
135 |
#ifarch %ix86 |
#ifarch %ix86 |
136 |
# fake 64-bit package |
# fake 64-bit package |
137 |
%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 |
138 |
%define tmd5sum1 951d2b9703e903b3c0ed700e2bbc5857 |
%define tmd5sum1 4ff0d8dc4a20c5b14a7bc5eb99a2aa5d |
139 |
%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 |
140 |
%define tmd5sum2 7c9fe718e8c7fb0a6b54560be74384e8 |
%define tmd5sum2 687d7dbeedbabfa30fda760a3bfc7bf4 |
141 |
%define tarname flash-plugin-%version-release.i386.rpm |
%define tarname flash-plugin-%version-release.i386.rpm |
142 |
%define tartype rpm |
%define tartype rpm |
143 |
#endif |
#endif |
195 |
|
|
196 |
cd "\$extractdir" || exit 1 |
cd "\$extractdir" || exit 1 |
197 |
%if "%tartype" == "rpm" |
%if "%tartype" == "rpm" |
198 |
rpm2cpio "%file" | cpio -i --quiet -d |
rpm2cpio "%file" | cpio -i --quiet -d -R root:root |
199 |
%else |
%else |
200 |
tar -xzf "%file" |
tar -xzf "%file" --no-same-owner --no-same-permissions |
201 |
%endif |
%endif |
202 |
|
|
203 |
FILENUM=1 |
FILENUM=1 |
204 |
FILE_SRC="\$FILE1_SRC" |
FILE_SRC="\$FILE1_SRC" |
205 |
FILE_DST="\$FILE1_DST" |
FILE_DST="\$FILE1_DST" |
206 |
|
FILE_PRM="\$FILE1_PRM" |
207 |
while [ -n "\$FILE_SRC" ]; do |
while [ -n "\$FILE_SRC" ]; do |
208 |
|
chmod "\$FILE_PRM" "\$FILE_SRC" |
209 |
mv -f "\$FILE_SRC" "\$FILE_DST" |
mv -f "\$FILE_SRC" "\$FILE_DST" |
210 |
FILENUM=\$((FILENUM+1)) |
FILENUM=\$((FILENUM+1)) |
211 |
eval FILE_SRC="\\\$FILE\${FILENUM}_SRC" |
eval FILE_SRC="\\\$FILE\${FILENUM}_SRC" |
212 |
eval FILE_DST="\\\$FILE\${FILENUM}_DST" |
eval FILE_DST="\\\$FILE\${FILENUM}_DST" |
213 |
|
eval FILE_PRM="\\\$FILE\${FILENUM}_PRM" |
214 |
done |
done |
215 |
rm -rf "\$extractdir" |
rm -rf "\$extractdir" |
216 |
} |
} |
267 |
%post |
%post |
268 |
FILE1_SRC="usr/lib/flash-plugin/libflashplayer.so" |
FILE1_SRC="usr/lib/flash-plugin/libflashplayer.so" |
269 |
FILE1_DST="%{_libdir}/mozilla/plugins/libflashplayer.so" |
FILE1_DST="%{_libdir}/mozilla/plugins/libflashplayer.so" |
270 |
|
FILE1_PRM="0755" |
271 |
FILE2_SRC="usr/lib/flash-plugin/LICENSE" |
FILE2_SRC="usr/lib/flash-plugin/LICENSE" |
272 |
FILE2_DST="%{_libdir}/mozilla/plugins/LICENSE.flashplayer" |
FILE2_DST="%{_libdir}/mozilla/plugins/LICENSE.flashplayer" |
273 |
|
FILE2_PRM="0644" |
274 |
FILE3_SRC="usr/lib/flash-plugin/README" |
FILE3_SRC="usr/lib/flash-plugin/README" |
275 |
FILE3_DST="%{_libdir}/mozilla/plugins/README.flashplayer" |
FILE3_DST="%{_libdir}/mozilla/plugins/README.flashplayer" |
276 |
|
FILE3_PRM="0644" |
277 |
|
|
278 |
FILE4_SRC="usr/bin/flash-player-properties" |
FILE4_SRC="usr/bin/flash-player-properties" |
279 |
FILE4_DST="%{_bindir}/flash-player-properties" |
FILE4_DST="%{_bindir}/flash-player-properties" |
280 |
|
FILE4_PRM="0755" |
281 |
FILE5_SRC="usr/share/applications/flash-player-properties.desktop" |
FILE5_SRC="usr/share/applications/flash-player-properties.desktop" |
282 |
FILE5_DST="%{_datadir}/applications/flash-player-properties.desktop" |
FILE5_DST="%{_datadir}/applications/flash-player-properties.desktop" |
283 |
|
FILE5_PRM="0644" |
284 |
|
|
285 |
FILE6_SRC="usr/share/icons/hicolor/16x16/apps/flash-player-properties.png" |
FILE6_SRC="usr/share/icons/hicolor/16x16/apps/flash-player-properties.png" |
286 |
FILE6_DST="%{_iconsdir}/hicolor/16x16/apps/flash-player-properties.png" |
FILE6_DST="%{_iconsdir}/hicolor/16x16/apps/flash-player-properties.png" |
287 |
|
FILE6_PRM="0644" |
288 |
FILE7_SRC="usr/share/icons/hicolor/22x22/apps/flash-player-properties.png" |
FILE7_SRC="usr/share/icons/hicolor/22x22/apps/flash-player-properties.png" |
289 |
FILE7_DST="%{_iconsdir}/hicolor/22x22/apps/flash-player-properties.png" |
FILE7_DST="%{_iconsdir}/hicolor/22x22/apps/flash-player-properties.png" |
290 |
|
FILE7_PRM="0644" |
291 |
FILE8_SRC="usr/share/icons/hicolor/24x24/apps/flash-player-properties.png" |
FILE8_SRC="usr/share/icons/hicolor/24x24/apps/flash-player-properties.png" |
292 |
FILE8_DST="%{_iconsdir}/hicolor/24x24/apps/flash-player-properties.png" |
FILE8_DST="%{_iconsdir}/hicolor/24x24/apps/flash-player-properties.png" |
293 |
|
FILE8_PRM="0644" |
294 |
FILE9_SRC="usr/share/icons/hicolor/32x32/apps/flash-player-properties.png" |
FILE9_SRC="usr/share/icons/hicolor/32x32/apps/flash-player-properties.png" |
295 |
FILE9_DST="%{_iconsdir}/hicolor/32x32/apps/flash-player-properties.png" |
FILE9_DST="%{_iconsdir}/hicolor/32x32/apps/flash-player-properties.png" |
296 |
|
FILE9_PRM="0644" |
297 |
FILE10_SRC="usr/share/icons/hicolor/48x48/apps/flash-player-properties.png" |
FILE10_SRC="usr/share/icons/hicolor/48x48/apps/flash-player-properties.png" |
298 |
FILE10_DST="%{_iconsdir}/hicolor/48x48/apps/flash-player-properties.png" |
FILE10_DST="%{_iconsdir}/hicolor/48x48/apps/flash-player-properties.png" |
299 |
|
FILE10_PRM="0644" |
300 |
FILE11_SRC= |
FILE11_SRC= |
301 |
|
|
302 |
. %{_datadir}/%{name}/functions |
. %{_datadir}/%{name}/functions |
320 |
%post kde |
%post kde |
321 |
FILE1_SRC="usr/lib/kde4/kcm_adobe_flash_player.so" |
FILE1_SRC="usr/lib/kde4/kcm_adobe_flash_player.so" |
322 |
FILE1_DST="%{_kde_libdir}/kde4/kcm_adobe_flash_player.so" |
FILE1_DST="%{_kde_libdir}/kde4/kcm_adobe_flash_player.so" |
323 |
|
FILE1_PRM="0755" |
324 |
FILE2_SRC="usr/share/kde4/services/kcm_adobe_flash_player.desktop" |
FILE2_SRC="usr/share/kde4/services/kcm_adobe_flash_player.desktop" |
325 |
FILE2_DST="%{_kde_services}/kcm_adobe_flash_player.desktop" |
FILE2_DST="%{_kde_services}/kcm_adobe_flash_player.desktop" |
326 |
|
FILE2_PRM="0644" |
327 |
|
FILE3_SRC= |
328 |
|
|
329 |
. %{_datadir}/%{name}/functions |
. %{_datadir}/%{name}/functions |
330 |
tar_extract |
tar_extract |