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 |
---|
9 | Version: 2.2.0.99 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | Source0: http://download.skype.com/linux/skype_static-%{version}.tar.bz2 |
---|
12 | Source1: vine-skype.desktop |
---|
13 | |
---|
14 | License: non-free |
---|
15 | Group: Applications/Internet |
---|
16 | URL: http://www.skype.com/ |
---|
17 | |
---|
18 | BuildRequires: desktop-file-utils |
---|
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 |
---|
34 | %setup -q -n skype_staticQT-%{version} |
---|
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 |
---|
45 | |
---|
46 | %{__install} -m 0755 skype %{buildroot}%{_bindir} |
---|
47 | |
---|
48 | %{_bindir}/desktop-file-install --dir=%{buildroot}%{_datadir}/applications vine-skype.desktop |
---|
49 | |
---|
50 | %{__install} -m 0644 icons/SkypeBlue_16x16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/skype.png |
---|
51 | %{__install} -m 0644 icons/SkypeBlue_32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/skype.png |
---|
52 | %{__install} -m 0644 icons/SkypeBlue_48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/skype.png |
---|
53 | |
---|
54 | %{__cp} -a sounds %{buildroot}%{_datadir}/skype |
---|
55 | %{__cp} -a lang %{buildroot}%{_datadir}/skype |
---|
56 | %{__cp} -a avatars %{buildroot}%{_datadir}/skype |
---|
57 | |
---|
58 | %check |
---|
59 | %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/vine-skype.desktop |
---|
60 | |
---|
61 | %post |
---|
62 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
63 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
64 | fi |
---|
65 | # recreate icon cache |
---|
66 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
67 | [ -x %{_bindir}/gtk-update-icon-cache ] && \ |
---|
68 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
69 | |
---|
70 | %postun |
---|
71 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
72 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
73 | fi |
---|
74 | # recreate icon cache |
---|
75 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
76 | [ -x %{_bindir}/gtk-update-icon-cache ] && \ |
---|
77 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
78 | |
---|
79 | %clean |
---|
80 | %{__rm} -rf %{buildroot} |
---|
81 | |
---|
82 | %files |
---|
83 | %defattr(-,root,root) |
---|
84 | %doc README LICENSE skype.conf |
---|
85 | %{_bindir}/skype |
---|
86 | %{_datadir}/applications/vine-skype.desktop |
---|
87 | %{_datadir}/icons/hicolor/*/apps/skype.png |
---|
88 | %{_datadir}/skype |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1 |
---|
92 | - update to 2.2.0.99 |
---|
93 | |
---|
94 | * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1 |
---|
95 | - first release for Vine Linux |
---|