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: 4.3.0.37 |
---|
10 | Release: 2%{?_dist_release} |
---|
11 | Source0: http://download.skype.com/linux/skype-%{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-%{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 | %{__mkdir_p} %{buildroot}%{_sysconfdir}/dbus-1/system.d/ |
---|
46 | |
---|
47 | %{__install} -m 0755 skype %{buildroot}%{_bindir} |
---|
48 | |
---|
49 | %{__install} -m 0644 skype.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/ |
---|
50 | |
---|
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 |
---|
89 | %{_sysconfdir}/dbus-1/system.d/ |
---|
90 | %{_datadir}/applications/vine-skype.desktop |
---|
91 | %{_datadir}/icons/hicolor/*/apps/skype.png |
---|
92 | %{_datadir}/skype |
---|
93 | |
---|
94 | %changelog |
---|
95 | * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.3.0.37-2 |
---|
96 | - added Requires: pulseaudio-core-libs <BTS:Vine Linux:2928> |
---|
97 | |
---|
98 | * Mon Oct 27 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.3.0.37-1 |
---|
99 | - update to 4.3.0.37 |
---|
100 | |
---|
101 | * Fri Nov 16 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.0.20-1 |
---|
102 | - update to 4.1.0.20 |
---|
103 | |
---|
104 | * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1 |
---|
105 | - update to 2.2.0.99 |
---|
106 | |
---|
107 | * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1 |
---|
108 | - first release for Vine Linux |
---|