1 | %define pkgname Skype |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define ver 4.3.0.37 |
---|
4 | %define rel 2 |
---|
5 | |
---|
6 | %define sourceurl0 http://download.skype.com/linux/skype-%{version}.tar.bz2 |
---|
7 | |
---|
8 | Summary: Package to automatically build %{pkgname} rpm package |
---|
9 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
10 | Name: %{name} |
---|
11 | Version: %{ver} |
---|
12 | Release: %{rel}%{?_dist_release} |
---|
13 | Source0: %{pkgname}-vl.spec |
---|
14 | Source1: vine-skype.desktop |
---|
15 | |
---|
16 | License: non-free |
---|
17 | Group: Restricted Software |
---|
18 | |
---|
19 | ##!! Requires(posttrans) not yet implemented. So we use (post) instead. |
---|
20 | Requires(post): self-build-setup >= 0.9.9 |
---|
21 | Requires(post): desktop-file-utils |
---|
22 | |
---|
23 | # Requirements for Skype dynamic |
---|
24 | %ifarch x86_64 |
---|
25 | Requires(post): compat32-alsa-lib |
---|
26 | Requires(post): compat32-dbus |
---|
27 | Requires(post): compat32-e2fsprogs |
---|
28 | Requires(post): compat32-fontconfig |
---|
29 | Requires(post): compat32-freetype2 |
---|
30 | Requires(post): compat32-gamin |
---|
31 | Requires(post): compat32-glib2 |
---|
32 | Requires(post): compat32-keyutils-libs |
---|
33 | Requires(post): compat32-krb5-libs |
---|
34 | Requires(post): compat32-lcms |
---|
35 | Requires(post): compat32-libICE |
---|
36 | Requires(post): compat32-libSM |
---|
37 | Requires(post): compat32-libX11 |
---|
38 | Requires(post): compat32-libXScrnSaver |
---|
39 | Requires(post): compat32-libXau |
---|
40 | Requires(post): compat32-libXcursor |
---|
41 | Requires(post): compat32-libXdamage |
---|
42 | Requires(post): compat32-libXdmcp |
---|
43 | Requires(post): compat32-libXext |
---|
44 | Requires(post): compat32-libXfixes |
---|
45 | Requires(post): compat32-libXi |
---|
46 | Requires(post): compat32-libXinerama |
---|
47 | Requires(post): compat32-libXrandr |
---|
48 | Requires(post): compat32-libXrender |
---|
49 | Requires(post): compat32-libXv |
---|
50 | Requires(post): compat32-libXxf86vm |
---|
51 | Requires(post): compat32-libdrm |
---|
52 | Requires(post): compat32-libexpat |
---|
53 | Requires(post): compat32-libjpeg-turbo |
---|
54 | Requires(post): compat32-libmng |
---|
55 | Requires(post): compat32-libpciaccess |
---|
56 | Requires(post): compat32-libpng |
---|
57 | Requires(post): compat32-libtiff |
---|
58 | Requires(post): compat32-libxcb |
---|
59 | Requires(post): compat32-mesa-libGL |
---|
60 | Requires(post): compat32-mesa-libGLU |
---|
61 | Requires(post): compat32-openssl |
---|
62 | Requires(post): compat32-pulseaudio-core-libs |
---|
63 | Requires(post): compat32-openssl |
---|
64 | Requires(post): compat32-qt4 |
---|
65 | Requires(post): qt4, openssl |
---|
66 | %else |
---|
67 | Requires(post): alsa-lib |
---|
68 | Requires(post): dbus |
---|
69 | Requires(post): e2fsprogs |
---|
70 | Requires(post): fontconfig |
---|
71 | Requires(post): freetype2 |
---|
72 | Requires(post): gamin |
---|
73 | Requires(post): glib2 |
---|
74 | Requires(post): keyutils-libs |
---|
75 | Requires(post): krb5-libs |
---|
76 | Requires(post): lcms |
---|
77 | Requires(post): libICE |
---|
78 | Requires(post): libSM |
---|
79 | Requires(post): libX11 |
---|
80 | Requires(post): libXScrnSaver |
---|
81 | Requires(post): libXau |
---|
82 | Requires(post): libXcursor |
---|
83 | Requires(post): libXdamage |
---|
84 | Requires(post): libXdmcp |
---|
85 | Requires(post): libXext |
---|
86 | Requires(post): libXfixes |
---|
87 | Requires(post): libXi |
---|
88 | Requires(post): libXinerama |
---|
89 | Requires(post): libXrandr |
---|
90 | Requires(post): libXrender |
---|
91 | Requires(post): libXv |
---|
92 | Requires(post): libXxf86vm |
---|
93 | Requires(post): libdrm |
---|
94 | Requires(post): libexpat |
---|
95 | Requires(post): libjpeg-turbo |
---|
96 | Requires(post): libmng |
---|
97 | Requires(post): libpciaccess |
---|
98 | Requires(post): libpng |
---|
99 | Requires(post): libtiff |
---|
100 | Requires(post): libxcb |
---|
101 | Requires(post): mesa-libGL |
---|
102 | Requires(post): mesa-libGLU |
---|
103 | Requires(post): openssl |
---|
104 | Requires(post): pulseaudio-core-libs |
---|
105 | Requires(post): qt4 |
---|
106 | %endif |
---|
107 | |
---|
108 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
109 | |
---|
110 | Distribution: Vine Linux |
---|
111 | Vendor: Project Vine |
---|
112 | Packager: iwaim, daisuke, inagaki |
---|
113 | |
---|
114 | %description |
---|
115 | Skype Internet Telephony |
---|
116 | |
---|
117 | If you install this package, it automaticaly downloads source |
---|
118 | code, compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
119 | And the created rpm packages are automatically installed |
---|
120 | if installation is executed by apt-get command or synaptic |
---|
121 | package manager. |
---|
122 | |
---|
123 | [About self-build package] |
---|
124 | For some kind of software, distributing of binary package |
---|
125 | may viorate the patent or law. Therefore we chose self-build |
---|
126 | packge, create binary package on your machine, for such kind |
---|
127 | of softwares instead of distributing binary package. |
---|
128 | |
---|
129 | Please obey the national law when you use the created binary |
---|
130 | packages. And if you want to use the softwares using patented |
---|
131 | thechnology, it may be required to get a permission, make an |
---|
132 | agreement or purchas a license. Please consider it with your |
---|
133 | purpose or way of use and take appropriate action. |
---|
134 | |
---|
135 | %description -l ja |
---|
136 | Skype インターネット・テレフォニー |
---|
137 | |
---|
138 | このパッケージをインストールすると、自動的にソースコードを |
---|
139 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
140 | の rpm パッケージを作成します。 |
---|
141 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
142 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
143 | 行います。 |
---|
144 | |
---|
145 | [self-build パッケージについて] |
---|
146 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
147 | 違反する可能性があるものがあります。その為、このような問題が |
---|
148 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
149 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
150 | ジという方法を採っています。 |
---|
151 | |
---|
152 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
153 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
154 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
155 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
156 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
157 | |
---|
158 | |
---|
159 | %prep |
---|
160 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
161 | |
---|
162 | %install |
---|
163 | %{__rm} -rf %{buildroot} |
---|
164 | %{__install} -d %{buildroot}%{_datadir}/%{name} |
---|
165 | %{__install} -m 644 %{SOURCE0} %{buildroot}%{_datadir}/%{name} |
---|
166 | %{__install} -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name} |
---|
167 | |
---|
168 | %clean |
---|
169 | %{__rm} -rf %{buildroot} |
---|
170 | |
---|
171 | %posttrans |
---|
172 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 5000 |
---|
173 | |
---|
174 | %files |
---|
175 | %defattr(-,root,root) |
---|
176 | %{_datadir}/%{name} |
---|
177 | |
---|
178 | %changelog |
---|
179 | * Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.3.0.37-2 |
---|
180 | - added Requires: pulseaudio-core-libs <BTS:Vine Linux:2928> |
---|
181 | |
---|
182 | * Mon Oct 27 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 4.3.0.37-1 |
---|
183 | - update to 4.3.0.37 |
---|
184 | |
---|
185 | * Fri Nov 16 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.0.20-1 |
---|
186 | - update to 4.1.0.20 |
---|
187 | |
---|
188 | * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1 |
---|
189 | - update to 2.2.0.99 |
---|
190 | |
---|
191 | * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1 |
---|
192 | - first release for Vine Linux |
---|
193 | |
---|