1 | %define pkgname k3b-extra |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define version 2.0.1 |
---|
4 | %define release 2%{?_dist_release} |
---|
5 | |
---|
6 | %define sourceurl0 http://downloads.sourceforge.net/project/k3b/k3b/%{version}/k3b-%{version}.tar.bz2 |
---|
7 | |
---|
8 | Summary: Package to automatically build %{pkgname} rpm package |
---|
9 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
10 | Name: %{name} |
---|
11 | Version: %{version} |
---|
12 | Release: %{release} |
---|
13 | Source0: %{pkgname}-vl.spec |
---|
14 | |
---|
15 | License: GPLv2 |
---|
16 | Group: Restricted Software |
---|
17 | |
---|
18 | Requires(post): self-build-setup >= 0.8 |
---|
19 | Requires(post): self-build-ffmpeg |
---|
20 | Requires(post): self-build-lame |
---|
21 | Requires(post): self-build-libmad |
---|
22 | |
---|
23 | Requires(post): desktop-file-utils |
---|
24 | Requires(post): gettext |
---|
25 | Requires(post): kdelibs4-devel |
---|
26 | Requires(post): kdemultimedia4-devel |
---|
27 | Requires(post): libdvdread-devel |
---|
28 | Requires(post): libmusicbrainz-devel |
---|
29 | Requires(post): libsamplerate-devel |
---|
30 | Requires(post): taglib-devel |
---|
31 | |
---|
32 | Requires: k3b >= %{version} |
---|
33 | |
---|
34 | BuildArch: noarch |
---|
35 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
36 | |
---|
37 | Packager: inagaki |
---|
38 | |
---|
39 | %description |
---|
40 | This package contains additional plugins for K3b. |
---|
41 | |
---|
42 | - FFMpeg decoder for decoding WMA file(s) |
---|
43 | - MAD decoder for decoding MP3 file(s) |
---|
44 | - Lame MP3 encoder for encoding MP3 file(s) |
---|
45 | |
---|
46 | If you install this package, it automaticaly downloads source |
---|
47 | code ,compile it, and create rpm packages of k3b-extra. |
---|
48 | And the created rpm packages are automatically installed |
---|
49 | if installation is executed by apt-get command or synaptic |
---|
50 | package manager. |
---|
51 | |
---|
52 | [Note] |
---|
53 | This package requires many other packages to compile |
---|
54 | targetsoftware. So it consume more disk space than usual. |
---|
55 | Also installation takes logner time because of compilation. |
---|
56 | (This will take a few minutes to quarter or half of an hour, |
---|
57 | depends on building environment) |
---|
58 | |
---|
59 | [About self-build package] |
---|
60 | For some kind of software, distributing of binary package |
---|
61 | may viorate the patent or law. Therefore we chose self-build |
---|
62 | packge, create binary package on your machine, for such kind |
---|
63 | of softwares instead of distributing binary package. |
---|
64 | |
---|
65 | Please obey the national law when you use the created binary |
---|
66 | packages. And if you want to use the softwares using patented |
---|
67 | thechnology, it may be required to get a permission, make an |
---|
68 | agreement or purchas a license. Please consider it with your |
---|
69 | purpose or way of use and take appropriate action. |
---|
70 | |
---|
71 | %description -l ja |
---|
72 | K3b 向けに以下の追加プラグインを提供します. |
---|
73 | |
---|
74 | - WMA ファイルをデコードするための FFMpeg デコーダ |
---|
75 | - MP3 ファイルをデコードするための MAD デコーダ |
---|
76 | - MP3 ファイルをエンコードするための Lame MP3 エンコーダ |
---|
77 | |
---|
78 | このパッケージをインストールすると、自動的にソースコードを |
---|
79 | ダウンロードしてコンパイルし、k3b-extra の rpm パッケージを作成します。 |
---|
80 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
81 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
82 | 行います。 |
---|
83 | |
---|
84 | [注意] |
---|
85 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
86 | ディスクの領域を多く消費します。 |
---|
87 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
88 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
89 | |
---|
90 | [self-build パッケージについて] |
---|
91 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
92 | 違反する可能性があるものがあります。その為、このような問題が |
---|
93 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
94 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
95 | ジという方法を採っています。 |
---|
96 | |
---|
97 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
98 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
99 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
100 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
101 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
102 | |
---|
103 | %prep |
---|
104 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
105 | |
---|
106 | %install |
---|
107 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
108 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
109 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
110 | |
---|
111 | %clean |
---|
112 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
113 | |
---|
114 | %posttrans |
---|
115 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" |
---|
116 | |
---|
117 | %files |
---|
118 | %defattr(-,root,root) |
---|
119 | %{_datadir}/%{name} |
---|
120 | |
---|
121 | %changelog |
---|
122 | * Sun Sep 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-2 |
---|
123 | - fixed %%build section to remove qt-devel dependency |
---|
124 | |
---|
125 | * Wed Sep 8 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-1 |
---|
126 | - new upstream release |
---|
127 | |
---|
128 | * Thu Jul 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.0-1 |
---|
129 | - initial bulid for Vine Linux |
---|