/[packages]/cauldron/flash-player-plugin/current/SPECS/flash-player-plugin.spec
ViewVC logotype

Diff of /cauldron/flash-player-plugin/current/SPECS/flash-player-plugin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 141930 by anssi, Mon Aug 29 04:23:14 2011 UTC revision 141931 by anssi, Fri Sep 9 17:51:43 2011 UTC
# Line 195  tar_extract() { Line 195  tar_extract() {
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  }  }
# Line 264  done Line 267  done
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
# Line 307  fi Line 320  fi
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

Legend:
Removed from v.141930  
changed lines
  Added in v.141931

  ViewVC Help
Powered by ViewVC 1.1.26