source: projects/specs/trunk/nonfree/self-build-libmpeg2/self-build-libmpeg2-vl.spec @ 4695

Revision 4695, 4.6 KB checked in by munepi, 13 years ago (diff)

updated self-build-x264-vl.spec, self-build-libmpeg2-vl.spec

Line 
1%define pkgname libmpeg2
2%define name    self-build-%{pkgname}
3%define version 0.5.1
4%define release 5%{?_dist_release}
5
6%define sourceurl0      http://libmpeg2.sourceforge.net/files/%{pkgname}-%{version}.tar.gz
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:        GPLv2+
16Group:          Restricted Software
17
18Requires(post):         self-build-setup >= 0.9.9
19
20Requires(post):         SDL-devel
21Requires(post):         libXt-devel
22Requires(post):         libXv-devel
23
24BuildArch:      noarch
25BuildRoot:      %{_tmppath}/%{name}-%{version}-root
26
27Packager:       munepi
28
29%description
30libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
31streams. It is released under the terms of the GPL license.
32
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
60libmpeg2 はmpeg-1/2ビデオストリームをデコードするための
61フリーなライブラリです.
62
63
64このパッケージをインストールすると、自動的にソースコードを
65ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm
66パッケージを作成します。
67また apt-get コマンドや synaptic パッケージマネージャから実行
68した場合は、作成された rpm パッケージのインストールも自動的に
69行います。
70
71[注意]
72コンパイルに必要な多くの関連パッケージを要求するので通常より
73ディスクの領域を多く消費します。
74またインストール時にコンパイルを行うため、通常より時間がかか
75る場合があります。(環境にもよりますが数分から数十分程度)
76
77[self-build パッケージについて]
78ソフトウェアによってはバイナリパッケージの配布が特許や法律に
79違反する可能性があるものがあります。その為、このような問題が
80懸念されるソフトウェアについてはバイナリパッケージを直接配布
81せずに、ユーザの環境でバイナリを作成する self-build パッケー
82ジという方法を採っています。
83
84作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
85アのライセンス、および利用する国の各種法令に従ってください。
86また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
87センスの購入などが必要となる場合がありますので、利用する目的
88や形態に応じて各自で判断し適切な対応を取ってください。
89
90
91%install
92%{__rm} -rf ${RPM_BUILD_ROOT}
93%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
94%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
95
96%clean
97%{__rm} -rf ${RPM_BUILD_ROOT}
98
99%posttrans
100/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 60000
101/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
102                                 %{pkgname}-devel-%{version}-%{release} \
103                                 mpeg2dec-%{version}-%{release}
104
105%files
106%defattr(-,root,root)
107%{_datadir}/%{name}/*
108
109%changelog
110* Thu Sep 1 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-5
111- do not support vl4
112
113* Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-4
114- renamed %%{Source0} to libmpeg2-vl.spec
115
116* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-3
117- added BuildArch: noarch
118- avoided to execute self-build-rpm.sh on RPM transaction
119  - moved %%post actions to %%posttrans
120
121* Fri Jan 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-2
122- initial bulid for self-build
Note: See TracBrowser for help on using the repository browser.