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