1 | %define pkgname gstreamer-plugins-bad |
---|
2 | %define majorminor 0.10 |
---|
3 | %define gstreamer gstreamer |
---|
4 | %define gst_minver 0.10.22.1 |
---|
5 | %define gstpb_minver 0.10.22.1 |
---|
6 | %define _gst_ver 0.10.21 |
---|
7 | %define release 1%{?_dist_release} |
---|
8 | |
---|
9 | %define sourceurl http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%{_gst_ver}.tar.bz2 |
---|
10 | |
---|
11 | Summary: Package to automatically build %{pkgname} rpm package |
---|
12 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
13 | Name: self-build-%{pkgname} |
---|
14 | Version: %{_gst_ver} |
---|
15 | Release: %{release} |
---|
16 | Source0: %{pkgname}-vl.spec |
---|
17 | License: LGPLv2+ and LGPLv2 |
---|
18 | Group: Restricted Software |
---|
19 | |
---|
20 | Requires(post): self-build-setup >= 0.9.9 |
---|
21 | |
---|
22 | # (build)requies of target package. |
---|
23 | Requires: %{gstreamer} >= %{gst_minver} |
---|
24 | Requires(post): %{gstreamer}-devel >= %{gst_minver} |
---|
25 | Requires(post): %{gstreamer}-plugins-base-devel >= %{gstpb_minver} |
---|
26 | |
---|
27 | Requires(post): check |
---|
28 | Requires(post): gettext |
---|
29 | Requires(post): PyXML |
---|
30 | Requires(post): libXt-devel |
---|
31 | |
---|
32 | Requires(post): liboil-devel |
---|
33 | Requires(post): libdirectfb-devel |
---|
34 | Requires(post): self-build-libdca |
---|
35 | Requires(post): self-build-faac |
---|
36 | Requires(post): self-build-faad2 |
---|
37 | Requires(post): gsm-devel |
---|
38 | Requires(post): libmpcdec-devel |
---|
39 | Requires(post): SDL-devel |
---|
40 | #Requires(post): soundtouch-devel |
---|
41 | #Requires(post): swfdec-devel |
---|
42 | #Buildrequires: wavpack-devel |
---|
43 | Requires(post): self-build-xvidcore |
---|
44 | Requires(post): bzip2-devel |
---|
45 | Requires(post): mesa-libGLU-devel |
---|
46 | Requires(post): neon-devel |
---|
47 | Requires(post): libmms-devel |
---|
48 | Requires(post): libmusicbrainz-devel |
---|
49 | #Requires(post): libcdaudio-devel |
---|
50 | Requires(post): jack-audio-connection-kit-devel |
---|
51 | #Requires(post): mjpegtools-devel |
---|
52 | #Requires(post): nas-devel |
---|
53 | Requires(post): self-build-x264 |
---|
54 | #Requires(post): wildmidi-devel |
---|
55 | Requires(post): libsndfile-devel |
---|
56 | #Requires(post): libmodplug-devel |
---|
57 | #Requires(post): libtimidity-devel |
---|
58 | #Requires(post): gmyth-devel >= 0.4 |
---|
59 | Requires(post): libdc1394-devel |
---|
60 | Requires(post): libexif-devel |
---|
61 | #Requires(post): libiptcdata-devel |
---|
62 | #Requires(post): exempi-devel |
---|
63 | #Requires(post): dirac-devel |
---|
64 | #Requires(post): libofa-devel |
---|
65 | Requires(post): self-build-libdvdnav |
---|
66 | Requires(post): jasper-devel |
---|
67 | Requires(post): openssl-devel |
---|
68 | Requires(post): twolame-devel |
---|
69 | Requires(post): libvdpau-devel |
---|
70 | Requires(post): librtmp-devel |
---|
71 | |
---|
72 | |
---|
73 | BuildArch: noarch |
---|
74 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
75 | |
---|
76 | Packager: munepi |
---|
77 | |
---|
78 | %description |
---|
79 | GStreamer is a streaming media framework, based on graphs of elements which |
---|
80 | operate on media data. |
---|
81 | |
---|
82 | This package contains plug-ins that have licensing issues, aren't tested |
---|
83 | well enough, or the code is not of good enough quality. |
---|
84 | |
---|
85 | If you install this package, it automaticaly downloads source |
---|
86 | code, compile it, and create rpm packages of |
---|
87 | %{pkgname}-%{version}. |
---|
88 | And the created rpm packages are automatically installed |
---|
89 | if installation is executed by apt-get command or synaptic |
---|
90 | package manager. |
---|
91 | |
---|
92 | |
---|
93 | [Note] |
---|
94 | This package requires many other packages to compile |
---|
95 | targetsoftware. So it consume more disk space than usual. |
---|
96 | Also installation takes logner time because of compilation. |
---|
97 | (This will take a few minutes to quarter or half of an hour, |
---|
98 | depends on building environment) |
---|
99 | |
---|
100 | [About self-build package] |
---|
101 | For some kind of software, distributing of binary package |
---|
102 | may viorate the patent or law. Therefore we chose self-build |
---|
103 | packge, create binary package on your machine, for such kind |
---|
104 | of softwares instead of distributing binary package. |
---|
105 | |
---|
106 | Please obey the national law when you use the created binary |
---|
107 | packages. And if you want to use the softwares using patented |
---|
108 | thechnology, it may be required to get a permission, make an |
---|
109 | agreement or purchas a license. Please consider it with your |
---|
110 | purpose or way of use and take appropriate action. |
---|
111 | |
---|
112 | # ' |
---|
113 | |
---|
114 | %description -l ja |
---|
115 | gstreamer-plugins-bad は GStreamer ストリーミングメディア |
---|
116 | フレームワーク用 bad プラグイン集です。 |
---|
117 | |
---|
118 | このパッケージをインストールすると、自動的にソースコードを |
---|
119 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
120 | の rpm パッケージを作成します。 |
---|
121 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
122 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
123 | 行います。 |
---|
124 | |
---|
125 | |
---|
126 | [注意] |
---|
127 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
128 | ディスクの領域を多く消費します。 |
---|
129 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
130 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
131 | |
---|
132 | [self-build パッケージについて] |
---|
133 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
134 | 違反する可能性があるものがあります。その為、このような問題が |
---|
135 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
136 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
137 | ジという方法を採っています。 |
---|
138 | |
---|
139 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
140 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
141 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
142 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
143 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
144 | |
---|
145 | %prep |
---|
146 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
147 | |
---|
148 | |
---|
149 | %install |
---|
150 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
151 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
152 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
153 | |
---|
154 | |
---|
155 | %clean |
---|
156 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
157 | |
---|
158 | %posttrans |
---|
159 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 333000 |
---|
160 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
161 | %{pkgname}-devel-%{version}-%{release} |
---|
162 | |
---|
163 | |
---|
164 | %files |
---|
165 | %defattr(-,root,root) |
---|
166 | %{_datadir}/%{name} |
---|
167 | |
---|
168 | %changelog |
---|
169 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.21-1 |
---|
170 | - new upstream release |
---|
171 | - added Requires(post): |
---|
172 | - libmms-devel |
---|
173 | - librtmp-devel |
---|
174 | |
---|
175 | * Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.20-1 |
---|
176 | - new upstream release |
---|
177 | |
---|
178 | * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.19-1 |
---|
179 | - new upstream release |
---|
180 | |
---|
181 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.18-1 |
---|
182 | - new upstream release |
---|
183 | - renamed %%{Source0} to gstreamer-plugins-bad-vl.spec |
---|
184 | - added Requires(post): libvdpau-devel |
---|
185 | - check version between original spec and self-build spec in %%prep |
---|
186 | |
---|
187 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.17-1 |
---|
188 | - new upstream release |
---|
189 | |
---|
190 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.12-1 |
---|
191 | - initial build for Vine Linux. |
---|