Skype-vl.spec 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # -*- coding: utf-8 -*-
  2. # stop strip
  3. %define __spec_install_post /usr/lib/rpm/brp-compress || :
  4. Summary: Skype Internet Telephony
  5. Summary(ja): Skype インターネット・テレフォニー
  6. Name: Skype
  7. Version: 2.2.0.99
  8. Release: 1%{?_dist_release}
  9. Source0: http://download.skype.com/linux/skype_static-%{version}.tar.bz2
  10. Source1: vine-skype.desktop
  11. License: non-free
  12. Group: Applications/Internet
  13. URL: http://www.skype.com/
  14. BuildRequires: desktop-file-utils
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Distribution: Vine Linux
  17. Vendor: Project Vine
  18. Packager: iwaim
  19. %description
  20. Skype Internet Telephony
  21. %description -l ja
  22. Skype インターネット・テレフォニー
  23. %prep
  24. %setup -q -n skype_staticQT-%{version}
  25. %{__cp} %{SOURCE1} .
  26. %install
  27. %{__rm} -rf %{buildroot}
  28. %{__mkdir_p} %{buildroot}%{_bindir}
  29. %{__mkdir_p} %{buildroot}%{_datadir}/skype
  30. %{__mkdir_p} %{buildroot}%{_datadir}/applications
  31. %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
  32. %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
  33. %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
  34. %{__install} -m 0755 skype %{buildroot}%{_bindir}
  35. %{_bindir}/desktop-file-install --dir=%{buildroot}%{_datadir}/applications vine-skype.desktop
  36. %{__install} -m 0644 icons/SkypeBlue_16x16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/skype.png
  37. %{__install} -m 0644 icons/SkypeBlue_32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/skype.png
  38. %{__install} -m 0644 icons/SkypeBlue_48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/skype.png
  39. %{__cp} -a sounds %{buildroot}%{_datadir}/skype
  40. %{__cp} -a lang %{buildroot}%{_datadir}/skype
  41. %{__cp} -a avatars %{buildroot}%{_datadir}/skype
  42. %check
  43. %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/vine-skype.desktop
  44. %post
  45. if [ -x %{_bindir}/update-desktop-database ] ; then
  46. %{_bindir}/update-desktop-database %{_datadir}/applications
  47. fi
  48. # recreate icon cache
  49. touch --no-create %{_datadir}/icons/hicolor || :
  50. [ -x %{_bindir}/gtk-update-icon-cache ] && \
  51. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  52. %postun
  53. if [ -x %{_bindir}/update-desktop-database ] ; then
  54. %{_bindir}/update-desktop-database %{_datadir}/applications
  55. fi
  56. # recreate icon cache
  57. touch --no-create %{_datadir}/icons/hicolor || :
  58. [ -x %{_bindir}/gtk-update-icon-cache ] && \
  59. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  60. %clean
  61. %{__rm} -rf %{buildroot}
  62. %files
  63. %defattr(-,root,root)
  64. %doc README LICENSE skype.conf
  65. %{_bindir}/skype
  66. %{_datadir}/applications/vine-skype.desktop
  67. %{_datadir}/icons/hicolor/*/apps/skype.png
  68. %{_datadir}/skype
  69. %changelog
  70. * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1
  71. - update to 2.2.0.99
  72. * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1
  73. - first release for Vine Linux