Skype-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: 4.3.0.37
  8. Release: 1%{?_dist_release}
  9. Source0: http://download.skype.com/linux/skype-%{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-%{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. %{__mkdir_p} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
  35. %{__install} -m 0755 skype %{buildroot}%{_bindir}
  36. %{__install} -m 0644 skype.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
  37. %{_bindir}/desktop-file-install --dir=%{buildroot}%{_datadir}/applications vine-skype.desktop
  38. %{__install} -m 0644 icons/SkypeBlue_16x16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/skype.png
  39. %{__install} -m 0644 icons/SkypeBlue_32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/skype.png
  40. %{__install} -m 0644 icons/SkypeBlue_48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/skype.png
  41. %{__cp} -a sounds %{buildroot}%{_datadir}/skype
  42. %{__cp} -a lang %{buildroot}%{_datadir}/skype
  43. %{__cp} -a avatars %{buildroot}%{_datadir}/skype
  44. %check
  45. %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/vine-skype.desktop
  46. %post
  47. if [ -x %{_bindir}/update-desktop-database ] ; then
  48. %{_bindir}/update-desktop-database %{_datadir}/applications
  49. fi
  50. # recreate icon cache
  51. touch --no-create %{_datadir}/icons/hicolor || :
  52. [ -x %{_bindir}/gtk-update-icon-cache ] && \
  53. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  54. %postun
  55. if [ -x %{_bindir}/update-desktop-database ] ; then
  56. %{_bindir}/update-desktop-database %{_datadir}/applications
  57. fi
  58. # recreate icon cache
  59. touch --no-create %{_datadir}/icons/hicolor || :
  60. [ -x %{_bindir}/gtk-update-icon-cache ] && \
  61. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  62. %clean
  63. %{__rm} -rf %{buildroot}
  64. %files
  65. %defattr(-,root,root)
  66. %doc README LICENSE skype.conf
  67. %{_bindir}/skype
  68. %{_sysconfdir}/dbus-1/system.d/
  69. %{_datadir}/applications/vine-skype.desktop
  70. %{_datadir}/icons/hicolor/*/apps/skype.png
  71. %{_datadir}/skype
  72. %changelog
  73. * Mon Oct 27 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.3.0.37-1
  74. - update to 4.3.0.37
  75. * Fri Nov 16 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.0.20-1
  76. - update to 4.1.0.20
  77. * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1
  78. - update to 2.2.0.99
  79. * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1
  80. - first release for Vine Linux