source: projects/specs/trunk/nonfree/self-build-mpg123/self-build-mpg123-vl.spec @ 9485

Revision 9485, 4.3 KB checked in by inagaki, 9 years ago (diff)

2015-04-04 Ryoichi INAGAKI <ryo1@…>

  • audacious, audacious-plugins, self-build-audacious-plugins-extra: updated
  • fluidsynth, libguess, self-build-mpg123: NEW


Line 
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
8Summary:        Package to automatically build %{pkgname} rpm package
9Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
10Name:           %{name}
11Version:        %{version}
12Release:        %{release}
13Source0:        %{pkgname}-vl.spec
14
15License:        LGPLv2
16Group:          Restricted Software
17
18Requires(post): alsa-lib-devel
19Requires(post): jack-audio-connection-kit-devel
20Requires(post): libtool-ltdl-devel
21Requires(post): pulseaudio-libs-devel
22Requires(post): self-build-setup >= 0.9.9
23
24BuildArch:      noarch
25BuildRoot:      %{_tmppath}/%{name}-%{version}-root
26
27Vendor:         Project Vine
28Distribution:   Vine Linux
29Packager:       inagaki
30
31%description
32Real time command line MPEG audio player for Layer 1, 2 and Layer3.
33
34If you install this package, it automaticaly downloads source
35code ,compile it, and create rpm packages of %{pkgname}-%{version}.
36And the created rpm packages are automatically installed
37if installation is executed by apt-get command or synaptic
38package manager.
39
40[Note]
41This package requires many other packages to compile
42targetsoftware. So it consume more disk space than usual.
43Also installation takes logner time because of compilation.
44(This will take a few minutes to quarter or half of an hour,
45depends on building environment)
46
47[About self-build package]
48For some kind of software, distributing of binary package
49may viorate the patent or law. Therefore we chose self-build
50packge, create binary package on your machine, for such kind
51of softwares instead of distributing binary package.
52
53Please obey the national law when you use the created binary
54packages. And if you want to use the softwares using patented
55thechnology, it may be required to get a permission, make an
56agreement or purchas a license. Please consider it with your
57purpose or way of use and take appropriate action.
58
59%description -l ja
60MPEG-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
Note: See TracBrowser for help on using the repository browser.