1 | %define pkgname gstreamer-plugins-ffmpeg |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define version 0.10.13 |
---|
4 | %define release 2%{?_dist_release} |
---|
5 | |
---|
6 | %define sourceurl0 http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-%{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 | Source1: gst-ffmpeg-0.10.13_gcc47.patch |
---|
15 | License: GPLv2+ and LGPLv2+ |
---|
16 | Group: Restricted Software |
---|
17 | |
---|
18 | Requires(post): self-build-setup >= 0.9.9 |
---|
19 | |
---|
20 | # (build)requies of target package. |
---|
21 | Requires: gstreamer >= 0.10.0 |
---|
22 | Requires: gstreamer-plugins-base >= 0.10.0 |
---|
23 | Requires(post): gstreamer-devel >= 0.10.0 |
---|
24 | Requires(post): gstreamer-plugins-base-devel >= 0.10.0 |
---|
25 | Requires(post): liboil-devel |
---|
26 | Requires(post): bzip2-devel |
---|
27 | Requires(post): self-build-ffmpeg |
---|
28 | |
---|
29 | BuildArch: noarch |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
31 | |
---|
32 | Packager: munepi |
---|
33 | |
---|
34 | %description |
---|
35 | GStreamer is a streaming media framework, based on graphs of filters which |
---|
36 | operate on media data. Applications using this library can do anything |
---|
37 | from real-time sound processing to playing videos, and just about anything |
---|
38 | else media-related. Its plugin-based architecture means that new data |
---|
39 | types or processing capabilities can be added simply by installing new |
---|
40 | plugins. |
---|
41 | |
---|
42 | This package provides FFmpeg-based GStreamer plug-ins. |
---|
43 | |
---|
44 | If you install this package, it automaticaly downloads source |
---|
45 | code, compile it, and create rpm packages of |
---|
46 | %{pkgname}-%{version}. |
---|
47 | And the created rpm packages are automatically installed |
---|
48 | if installation is executed by apt-get command or synaptic |
---|
49 | package manager. |
---|
50 | |
---|
51 | |
---|
52 | [Note] |
---|
53 | This package requires many other packages to compile |
---|
54 | targetsoftware. So it consume more disk space than usual. |
---|
55 | Also installation takes logner time because of compilation. |
---|
56 | (This will take a few minutes to quarter or half of an hour, |
---|
57 | depends on building environment) |
---|
58 | |
---|
59 | [About self-build package] |
---|
60 | For some kind of software, distributing of binary package |
---|
61 | may viorate the patent or law. Therefore we chose self-build |
---|
62 | packge, create binary package on your machine, for such kind |
---|
63 | of softwares instead of distributing binary package. |
---|
64 | |
---|
65 | Please obey the national law when you use the created binary |
---|
66 | packages. And if you want to use the softwares using patented |
---|
67 | thechnology, it may be required to get a permission, make an |
---|
68 | agreement or purchas a license. Please consider it with your |
---|
69 | purpose or way of use and take appropriate action. |
---|
70 | |
---|
71 | %description -l ja |
---|
72 | GStreamer はメディアデータ操作用の filter graph をベースにし |
---|
73 | たストリーミングメディアフレームワークです。 このライブラリを |
---|
74 | 使用すればアプリケーションは、サウンドのリアルタイム処理から |
---|
75 | ビデオ再生まで、メディアに関係する全ての機能が利用できます。 |
---|
76 | また Gstremer はプラグイン方式を採用していることから、新しい |
---|
77 | 種類のデータや機能への対応が、プラグインを追加することで簡単 |
---|
78 | に実現できます。 |
---|
79 | |
---|
80 | このパッケージは ffmpeg ベースの GStreamer プラグインを提供し |
---|
81 | ます。 |
---|
82 | |
---|
83 | このパッケージをインストールすると、自動的にソースコードをダ |
---|
84 | ウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
85 | の rpm パッケージを作成します。 |
---|
86 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
87 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
88 | 行います。 |
---|
89 | |
---|
90 | |
---|
91 | [注意] |
---|
92 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
93 | ディスクの領域を多く消費します。 |
---|
94 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
95 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
96 | |
---|
97 | [self-build パッケージについて] |
---|
98 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
99 | 違反する可能性があるものがあります。その為、このような問題が |
---|
100 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
101 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
102 | ジという方法を採っています。 |
---|
103 | |
---|
104 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
105 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
106 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
107 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
108 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
109 | |
---|
110 | |
---|
111 | %prep |
---|
112 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
113 | |
---|
114 | %install |
---|
115 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
116 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
117 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
118 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
119 | |
---|
120 | |
---|
121 | %clean |
---|
122 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
123 | |
---|
124 | %posttrans |
---|
125 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 126000 |
---|
126 | |
---|
127 | %files |
---|
128 | %defattr(-,root,root) |
---|
129 | %{_datadir}/%{name}/* |
---|
130 | |
---|
131 | %changelog |
---|
132 | * Tue Oct 22 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.13-2 |
---|
133 | - added Source1 to build with gcc-4.7 or later. |
---|
134 | |
---|
135 | * Sat Jun 23 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.13-1 |
---|
136 | - new upstream release |
---|
137 | |
---|
138 | * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.12-1 |
---|
139 | - new upstream release |
---|
140 | |
---|
141 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.11-3 |
---|
142 | - dropped --with-system-ffmpeg in configure options |
---|
143 | (gstreamer-plugins-ffmpeg-vl.spec) |
---|
144 | |
---|
145 | * Sun Feb 06 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.11-2 |
---|
146 | - added Requires(post): self-build-ffmpeg |
---|
147 | - already used system ffmpeg |
---|
148 | |
---|
149 | * Sat Jul 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.11-1 |
---|
150 | - new upstream release |
---|
151 | |
---|
152 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.10-1 |
---|
153 | - new upstream release |
---|
154 | - renamed %%{Source0} to gstreamer-plugins-ffmpeg-vl.spec |
---|
155 | |
---|
156 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.10.9-1 |
---|
157 | - new upstream release |
---|
158 | |
---|
159 | * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.8-1 |
---|
160 | - new upstream release |
---|
161 | |
---|
162 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.7-2 |
---|
163 | - added BuildArch: noarch |
---|
164 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
165 | - moved %%post actions to %%posttrans |
---|
166 | |
---|
167 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.7-1 |
---|
168 | - new upstream release |
---|
169 | - corrected %%description |
---|
170 | |
---|
171 | * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.10.6-1 |
---|
172 | - initial build |
---|
173 | |
---|
174 | ### end of file |
---|