1 | # Copyright (c) 2007-2008 oc2pus |
---|
2 | # This file and all modifications and additions to the pristine |
---|
3 | # package are under the same license as the package itself. |
---|
4 | # |
---|
5 | # Please submit bugfixes or comments to toni@links2linux.de |
---|
6 | # |
---|
7 | # *** This spec is modified for Vine Linux *** |
---|
8 | |
---|
9 | # norootforbuild |
---|
10 | ## |
---|
11 | |
---|
12 | %define _prefix /usr |
---|
13 | |
---|
14 | Name: mediainfo |
---|
15 | Version: 0.7.35 |
---|
16 | Release: 1%{?_dist_release} |
---|
17 | Summary: Supplies technical and tag information about a video or audio file |
---|
18 | Group: Applications/Multimedia |
---|
19 | License: GPL |
---|
20 | URL: http://mediainfo.sourceforge.net/ |
---|
21 | Source0: mediainfo_%{version}.tar.bz2 |
---|
22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | # BuildRequires: dos2unix |
---|
24 | BuildRequires: nkf |
---|
25 | |
---|
26 | ## NEED GCC3 |
---|
27 | BuildRequires: gcc-c++ |
---|
28 | BuildRequires: libmediainfo-devel |
---|
29 | BuildRequires: libzen-devel |
---|
30 | BuildRequires: pkgconfig |
---|
31 | BuildRequires: wx-gtk2-devel |
---|
32 | BuildRequires: zlib-devel |
---|
33 | %if 0%{?suse_version} |
---|
34 | BuildRequires: update-desktop-files |
---|
35 | %endif |
---|
36 | |
---|
37 | Requires: libzen |
---|
38 | Requires: libmediainfo |
---|
39 | |
---|
40 | Packager: babasaki |
---|
41 | |
---|
42 | %description |
---|
43 | MediaInfo supplies technical and tag information about a video or |
---|
44 | audio file. |
---|
45 | |
---|
46 | What information can I get from MediaInfo? |
---|
47 | * General - title, author, director, album, track number, date, duration... |
---|
48 | * Video - codec, aspect, fps, bitrate... |
---|
49 | * Audio - codec, sample rate, channels, language, bitrate... |
---|
50 | * Text - language of subtitle |
---|
51 | * Chapters - number of chapters, list of chapters |
---|
52 | |
---|
53 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, |
---|
54 | MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, |
---|
55 | RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, |
---|
56 | VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 |
---|
57 | |
---|
58 | What format (container) does MediaInfo support? |
---|
59 | * Video - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
---|
60 | MPEG-2, MPEG-4, DVD (VOB) (Codecs - DivX, XviD, MSMPEG4, ASP, |
---|
61 | H.264, AVC...) |
---|
62 | * Audio - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF |
---|
63 | * Subtitles - SRT, SSA, ASS, SAMI |
---|
64 | |
---|
65 | %description -l ja |
---|
66 | MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。 |
---|
67 | |
---|
68 | MediaInfo で確認できる情報: |
---|
69 | * 全般 - タイトル、作者、ディレクター、アルバム、トラック番号、 |
---|
70 | 日付、時間... |
---|
71 | * ビデオ - codec、アスペクト比、フレームレート、ビットレート... |
---|
72 | * オーディオ - codec、サンプリングレート、チャンネル数、言語、 |
---|
73 | ビットレート... |
---|
74 | * テキスト - 字幕の言語 |
---|
75 | * チャプター - チャプター数、チャプターの一覧 |
---|
76 | |
---|
77 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, |
---|
78 | MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, |
---|
79 | RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, |
---|
80 | VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 |
---|
81 | |
---|
82 | MediaInfo がサポートするフォーマット: |
---|
83 | * ビデオ - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
---|
84 | MPEG-2, MPEG-4, DVD (VOB) (Codec - DivX, XviD, MSMPEG4, ASP, |
---|
85 | H.264, AVC...) |
---|
86 | * オーディオ - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF |
---|
87 | * 字幕 - SRT, SSA, ASS, SAMI |
---|
88 | |
---|
89 | %package gui |
---|
90 | Summary: GUI for mediainfo |
---|
91 | Summary(ja): Mediainfo 用の GUI |
---|
92 | Group: Applications/Multimedia |
---|
93 | |
---|
94 | %description gui |
---|
95 | This package contains a Frontend for mediainfo. |
---|
96 | |
---|
97 | MediaInfo supplies technical and tag information about a video or |
---|
98 | audio file. |
---|
99 | |
---|
100 | What information can I get from MediaInfo? |
---|
101 | * General - title, author, director, album, track number, date, duration... |
---|
102 | * Video - codec, aspect, fps, bitrate... |
---|
103 | * Audio - codec, sample rate, channels, language, bitrate... |
---|
104 | * Text - language of subtitle |
---|
105 | * Chapters - number of chapters, list of chapters |
---|
106 | |
---|
107 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, |
---|
108 | MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, |
---|
109 | RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, |
---|
110 | VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 |
---|
111 | |
---|
112 | What format (container) does MediaInfo support? |
---|
113 | * Video - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
---|
114 | MPEG-2, MPEG-4, DVD (VOB) (Codecs - DivX, XviD, MSMPEG4, ASP, |
---|
115 | H.264, AVC...) |
---|
116 | * Audio - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF |
---|
117 | * Subtitles - SRT, SSA, ASS, SAMI |
---|
118 | |
---|
119 | %description gui -l ja |
---|
120 | MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。 |
---|
121 | |
---|
122 | MediaInfo で確認できる情報: |
---|
123 | * 全般 - タイトル、作者、ディレクター、アルバム、トラック番号、 |
---|
124 | 日付、時間... |
---|
125 | * ビデオ - codec、アスペクト比、フレームレート、ビットレート... |
---|
126 | * オーディオ - codec、サンプリングレート、チャンネル数、言語、 |
---|
127 | ビットレート... |
---|
128 | * テキスト - 字幕の言語 |
---|
129 | * チャプター - チャプター数、チャプターの一覧 |
---|
130 | |
---|
131 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, |
---|
132 | MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, |
---|
133 | RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, |
---|
134 | VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 |
---|
135 | |
---|
136 | MediaInfo がサポートするフォーマット: |
---|
137 | * ビデオ - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
---|
138 | MPEG-2, MPEG-4, DVD (VOB) (Codec - DivX, XviD, MSMPEG4, ASP, |
---|
139 | H.264, AVC...) |
---|
140 | * オーディオ - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF |
---|
141 | * 字幕 - SRT, SSA, ASS, SAMI |
---|
142 | |
---|
143 | |
---|
144 | %prep |
---|
145 | %setup -q -n MediaInfo |
---|
146 | ## dos2unix *.html *.txt Release/*.txt |
---|
147 | nkf --unix --overwrite *.html *.txt Release/*.txt |
---|
148 | %__chmod 644 *.html *.txt Release/*.txt |
---|
149 | |
---|
150 | %build |
---|
151 | export CFLAGS="$RPM_OPT_FLAGS" |
---|
152 | export CXXFLAGS="$RPM_OPT_FLAGS" |
---|
153 | |
---|
154 | # build CLI |
---|
155 | pushd Project/GNU/CLI |
---|
156 | %__chmod +x autogen |
---|
157 | ./autogen |
---|
158 | %configure |
---|
159 | |
---|
160 | %__make %{?jobs:-j%{jobs}} |
---|
161 | popd |
---|
162 | |
---|
163 | # now build GUI |
---|
164 | pushd Project/GNU/GUI |
---|
165 | %__chmod +x autogen |
---|
166 | ./autogen |
---|
167 | ### autoreconf -i |
---|
168 | %configure |
---|
169 | |
---|
170 | %__make %{?jobs:-j%{jobs}} |
---|
171 | popd |
---|
172 | |
---|
173 | %install |
---|
174 | pushd Project/GNU/CLI |
---|
175 | %__make install-strip DESTDIR=%{buildroot} |
---|
176 | popd |
---|
177 | |
---|
178 | pushd Project/GNU/GUI |
---|
179 | %__make install-strip DESTDIR=%{buildroot} |
---|
180 | popd |
---|
181 | |
---|
182 | # icon |
---|
183 | %__install -dm 755 %{buildroot}%{_datadir}/icons/hicolor/128x128/apps |
---|
184 | %__install -m 644 Source/Ressource/Image/MediaInfo.png \ |
---|
185 | %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png |
---|
186 | %__install -dm 755 %{buildroot}%{_datadir}/pixmaps |
---|
187 | %__install -m 644 Source/Ressource/Image/MediaInfo.png \ |
---|
188 | %{buildroot}%{_datadir}/pixmaps/%{name}.png |
---|
189 | %__install -m 644 Source/Ressource/Image/MediaInfo.png \ |
---|
190 | %{buildroot}%{_datadir}/pixmaps/%{name}-gui.png |
---|
191 | |
---|
192 | # menu-entry |
---|
193 | %__install -dm 755 %{buildroot}/%{_datadir}/applications |
---|
194 | %__install -m 644 Project/GNU/GUI/mediainfo-gui.desktop \ |
---|
195 | %{buildroot}/%{_datadir}/applications |
---|
196 | |
---|
197 | %if 0%{?suse_version} |
---|
198 | %suse_update_desktop_file -n mediainfo-gui AudioVideo AudioVideoEditing |
---|
199 | %endif |
---|
200 | |
---|
201 | %__install -dm 755 %{buildroot}/%{_datadir}/apps/konqueror/servicemenus |
---|
202 | %__install -m 644 Project/GNU/GUI/mediainfo-gui.kde3.desktop \ |
---|
203 | %{buildroot}/%{_datadir}/apps/konqueror/servicemenus/mediainfo-gui.desktop |
---|
204 | %__install -dm 755 %{buildroot}/%{_datadir}/kde4/services/ServiceMenus/ |
---|
205 | %__install -m 644 Project/GNU/GUI/mediainfo-gui.kde4.desktop \ |
---|
206 | %{buildroot}/%{_datadir}/kde4/services/ServiceMenus/mediainfo-gui.desktop |
---|
207 | |
---|
208 | %clean |
---|
209 | [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" |
---|
210 | |
---|
211 | %files |
---|
212 | %defattr(-,root,root,-) |
---|
213 | %doc Release/ReadMe_CLI_Linux.txt |
---|
214 | %doc License.html History_CLI.txt |
---|
215 | %{_bindir}/mediainfo |
---|
216 | |
---|
217 | %files gui |
---|
218 | %defattr(-,root,root,-) |
---|
219 | %doc Release/ReadMe_GUI_Linux.txt |
---|
220 | %doc License.html History_GUI.txt |
---|
221 | %{_bindir}/mediainfo-gui |
---|
222 | %{_datadir}/applications/*.desktop |
---|
223 | %{_datadir}/pixmaps/*.png |
---|
224 | %{_datadir}/icons/hicolor/128x128/apps/*.png |
---|
225 | %dir %{_datadir}/apps |
---|
226 | %dir %{_datadir}/apps/konqueror |
---|
227 | %dir %{_datadir}/apps/konqueror/servicemenus |
---|
228 | %{_datadir}/apps/konqueror/servicemenus/*.desktop |
---|
229 | %dir %{_datadir}/kde4 |
---|
230 | %dir %{_datadir}/kde4/services |
---|
231 | %dir %{_datadir}/kde4/services/ServiceMenus |
---|
232 | %{_datadir}/kde4/services/ServiceMenus/*.desktop |
---|
233 | |
---|
234 | %changelog |
---|
235 | * Fri Sep 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.35-1 |
---|
236 | - new upstream release |
---|
237 | |
---|
238 | * Tue Jun 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.34-1 |
---|
239 | - new upstream release |
---|
240 | |
---|
241 | * Wed Jun 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.33-1 |
---|
242 | - new upstream release |
---|
243 | |
---|
244 | * Thu Oct 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.23-1 |
---|
245 | - new upstream release |
---|
246 | |
---|
247 | * Mon Oct 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.22-1 |
---|
248 | - new upstream release |
---|
249 | |
---|
250 | * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7.19-1 |
---|
251 | - new upstream release |
---|
252 | - change spec file name to mediainfo-vl.spec |
---|
253 | - add japanese summary and description |
---|
254 | - change group to Applications/Multimedia |
---|
255 | - add Packager tag |
---|
256 | |
---|
257 | * Tue Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.7.9-0 |
---|
258 | - See History.txt for more info and real dates |
---|
259 | - Previous packages made by Toni Graffy <toni@links2linux.de> |
---|