source: projects/specs/branches/6/m/mediainfo/mediainfo-vl.spec @ 4335

Revision 4335, 8.8 KB checked in by kudoh, 13 years ago (diff)
Line 
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
14Name:                   mediainfo
15Version:                0.7.47
16Release:                1%{?_dist_release}
17Summary:                Supplies technical and tag information about a video or audio file
18Group:                  Applications/Multimedia
19License:                GPL
20URL:                    http://mediainfo.sourceforge.net/
21Source0:                mediainfo_%{version}.tar.bz2
22BuildRoot:              %{_tmppath}/%{name}-%{version}-root
23# BuildRequires:        dos2unix
24BuildRequires:  nkf
25
26## NEED GCC3
27BuildRequires:  gcc-c++
28BuildRequires:  libmediainfo-devel
29BuildRequires:  libzen-devel
30BuildRequires:  pkgconfig
31BuildRequires:  wx-gtk2-devel
32BuildRequires:  zlib-devel
33%if 0%{?suse_version}
34BuildRequires:  update-desktop-files
35%endif
36
37Requires:       libzen
38Requires:       libmediainfo
39
40Packager:               babasaki
41
42%description
43MediaInfo supplies technical and tag information about a video or
44audio file.
45
46What 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
53DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
54MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
55RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
56VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
57
58What 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
66MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。
67
68MediaInfo で確認できる情報:
69 * 全般 - タイトル、作者、ディレクター、アルバム、トラック番号、
70      日付、時間...
71 * ビデオ - codec、アスペクト比、フレームレート、ビットレート...
72 * オーディオ - codec、サンプリングレート、チャンネル数、言語、
73      ビットレート...
74 * テキスト - 字幕の言語
75 * チャプター - チャプター数、チャプターの一覧
76
77DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
78MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
79RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
80VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
81
82MediaInfo がサポートするフォーマット:
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
90Summary:        GUI for mediainfo
91Summary(ja):    Mediainfo 用の GUI
92Group:          Applications/Multimedia
93
94%description gui
95This package contains a Frontend for mediainfo.
96
97MediaInfo supplies technical and tag information about a video or
98audio file.
99
100What 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
107DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
108MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
109RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
110VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
111
112What 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
120MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。
121
122MediaInfo で確認できる情報:
123 * 全般 - タイトル、作者、ディレクター、アルバム、トラック番号、
124      日付、時間...
125 * ビデオ - codec、アスペクト比、フレームレート、ビットレート...
126 * オーディオ - codec、サンプリングレート、チャンネル数、言語、
127      ビットレート...
128 * テキスト - 字幕の言語
129 * チャプター - チャプター数、チャプターの一覧
130
131DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
132MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
133RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
134VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
135
136MediaInfo がサポートするフォーマット:
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
147nkf --unix --overwrite *.html *.txt Release/*.txt
148%__chmod 644 *.html *.txt Release/*.txt
149
150%build
151export CFLAGS="$RPM_OPT_FLAGS"
152export CXXFLAGS="$RPM_OPT_FLAGS"
153
154# build CLI
155pushd Project/GNU/CLI
156%__chmod +x autogen
157./autogen
158%configure
159
160%__make %{?jobs:-j%{jobs}}
161popd
162
163# now build GUI
164pushd Project/GNU/GUI
165%__chmod +x autogen
166./autogen
167### autoreconf -i
168%configure
169
170        %__make %{?jobs:-j%{jobs}}
171popd
172
173%install
174pushd Project/GNU/CLI
175        %__make install-strip DESTDIR=%{buildroot}
176popd
177
178pushd Project/GNU/GUI
179        %__make install-strip DESTDIR=%{buildroot}
180popd
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 Jul 15 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.47-1
236- new upstream release
237
238* Wed Jan 26 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.41-1
239- new upstream release
240
241* Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.38-1
242- new upstream release
243
244* Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.37-1
245- new upstream release
246
247* Fri Sep 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.35-1
248- new upstream release
249
250* Tue Jun 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.34-1
251- new upstream release
252
253* Wed Jun 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.33-1
254- new upstream release
255
256* Thu Oct 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.23-1
257- new upstream release
258
259* Mon Oct 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.22-1
260- new upstream release
261
262* Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7.19-1
263- new upstream release
264- change spec file name to mediainfo-vl.spec
265- add japanese summary and description
266- change group to Applications/Multimedia
267- add Packager tag
268
269* Tue Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.7.9-0
270- See History.txt for more info and real dates
271- Previous packages made by Toni Graffy <toni@links2linux.de>
Note: See TracBrowser for help on using the repository browser.