1 | %define pkgname Skype |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define ver 2.2.0.99 |
---|
4 | %define rel 1 |
---|
5 | |
---|
6 | %define sourceurl0 http://download.skype.com/linux/skype_static-%{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 | |
---|
22 | BuildArch: noarch |
---|
23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
24 | |
---|
25 | Distribution: Vine Linux |
---|
26 | Vendor: Project Vine |
---|
27 | Packager: iwaim |
---|
28 | |
---|
29 | %description |
---|
30 | Skype Internet Telephony |
---|
31 | |
---|
32 | If you install this package, it automaticaly downloads source |
---|
33 | code, compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
34 | And the created rpm packages are automatically installed |
---|
35 | if installation is executed by apt-get command or synaptic |
---|
36 | package manager. |
---|
37 | |
---|
38 | [About self-build package] |
---|
39 | For some kind of software, distributing of binary package |
---|
40 | may viorate the patent or law. Therefore we chose self-build |
---|
41 | packge, create binary package on your machine, for such kind |
---|
42 | of softwares instead of distributing binary package. |
---|
43 | |
---|
44 | Please obey the national law when you use the created binary |
---|
45 | packages. And if you want to use the softwares using patented |
---|
46 | thechnology, it may be required to get a permission, make an |
---|
47 | agreement or purchas a license. Please consider it with your |
---|
48 | purpose or way of use and take appropriate action. |
---|
49 | |
---|
50 | %description -l ja |
---|
51 | Skype インターネット・テレフォニー |
---|
52 | |
---|
53 | このパッケージをインストールすると、自動的にソースコードを |
---|
54 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
55 | の rpm パッケージを作成します。 |
---|
56 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
57 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
58 | 行います。 |
---|
59 | |
---|
60 | [self-build パッケージについて] |
---|
61 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
62 | 違反する可能性があるものがあります。その為、このような問題が |
---|
63 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
64 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
65 | ジという方法を採っています。 |
---|
66 | |
---|
67 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
68 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
69 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
70 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
71 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
72 | |
---|
73 | |
---|
74 | %prep |
---|
75 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
76 | |
---|
77 | %install |
---|
78 | %{__rm} -rf %{buildroot} |
---|
79 | %{__install} -d %{buildroot}%{_datadir}/%{name} |
---|
80 | %{__install} -m 644 %{SOURCE0} %{buildroot}%{_datadir}/%{name} |
---|
81 | %{__install} -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name} |
---|
82 | |
---|
83 | %clean |
---|
84 | %{__rm} -rf %{buildroot} |
---|
85 | |
---|
86 | %posttrans |
---|
87 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 5000 |
---|
88 | |
---|
89 | %files |
---|
90 | %defattr(-,root,root) |
---|
91 | %{_datadir}/%{name} |
---|
92 | |
---|
93 | %changelog |
---|
94 | * Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0.99-1 |
---|
95 | - update to 2.2.0.99 |
---|
96 | |
---|
97 | * Wed Jan 4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1 |
---|
98 | - first release for Vine Linux |
---|
99 | |
---|