[9485] | 1 | %define pkgname mpg123 |
---|
| 2 | %define name self-build-%{pkgname} |
---|
| 3 | %define version 1.22.1 |
---|
| 4 | %define release 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | %define sourceurl0 http://downloads.sourceforge.net/mpg123/%{pkgname}-%{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: LGPLv2 |
---|
| 16 | Group: Restricted Software |
---|
| 17 | |
---|
| 18 | Requires(post): alsa-lib-devel |
---|
| 19 | Requires(post): jack-audio-connection-kit-devel |
---|
| 20 | Requires(post): libtool-ltdl-devel |
---|
| 21 | Requires(post): pulseaudio-libs-devel |
---|
| 22 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 23 | |
---|
| 24 | BuildArch: noarch |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | Packager: inagaki |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | Real time command line MPEG audio player for Layer 1, 2 and Layer3. |
---|
| 33 | |
---|
| 34 | If you install this package, it automaticaly downloads source |
---|
| 35 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 36 | And the created rpm packages are automatically installed |
---|
| 37 | if installation is executed by apt-get command or synaptic |
---|
| 38 | package manager. |
---|
| 39 | |
---|
| 40 | [Note] |
---|
| 41 | This package requires many other packages to compile |
---|
| 42 | targetsoftware. So it consume more disk space than usual. |
---|
| 43 | Also installation takes logner time because of compilation. |
---|
| 44 | (This will take a few minutes to quarter or half of an hour, |
---|
| 45 | depends on building environment) |
---|
| 46 | |
---|
| 47 | [About self-build package] |
---|
| 48 | For some kind of software, distributing of binary package |
---|
| 49 | may viorate the patent or law. Therefore we chose self-build |
---|
| 50 | packge, create binary package on your machine, for such kind |
---|
| 51 | of softwares instead of distributing binary package. |
---|
| 52 | |
---|
| 53 | Please obey the national law when you use the created binary |
---|
| 54 | packages. And if you want to use the softwares using patented |
---|
| 55 | thechnology, it may be required to get a permission, make an |
---|
| 56 | agreement or purchas a license. Please consider it with your |
---|
| 57 | purpose or way of use and take appropriate action. |
---|
| 58 | |
---|
| 59 | %description -l ja |
---|
| 60 | MPEG-1 レイヤー 1, 2, 3(=MP3) 向けのコマンドライン型 MPEG |
---|
| 61 | オーディオプレイヤーです。 |
---|
| 62 | |
---|
| 63 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 64 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
| 65 | パッケージを作成します。 |
---|
| 66 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 67 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 68 | 行います。 |
---|
| 69 | |
---|
| 70 | [注意] |
---|
| 71 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 72 | ディスクの領域を多く消費します。 |
---|
| 73 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 74 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 75 | |
---|
| 76 | [self-build パッケージについて] |
---|
| 77 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 78 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 79 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 80 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 81 | ジという方法を採っています。 |
---|
| 82 | |
---|
| 83 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 84 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 85 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 86 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 87 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 88 | |
---|
| 89 | %prep |
---|
| 90 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %install |
---|
| 94 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 95 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 96 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 97 | |
---|
| 98 | %clean |
---|
| 99 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 100 | |
---|
| 101 | %posttrans |
---|
| 102 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 20000 |
---|
| 103 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 104 | %{pkgname}-devel-%{version}-%{release} |
---|
| 105 | |
---|
| 106 | %files |
---|
| 107 | %defattr(-,root,root) |
---|
| 108 | %{_datadir}/%{name} |
---|
| 109 | |
---|
| 110 | %changelog |
---|
| 111 | * Sat Apr 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.22.1-1 |
---|
| 112 | - initial bulid for self-build |
---|