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