]>
Commit | Line | Data |
---|---|---|
39bb9212 | 1 | %define libmediainfo_ver 0.7.35 |
7bc0a388 AM |
2 | Summary: Supplies technical and tag information about a video or audio file (CLI) |
3 | Name: mediainfo | |
39bb9212 AM |
4 | Version: 0.7.35 |
5 | Release: 1 | |
7bc0a388 AM |
6 | License: GPL |
7 | Group: Applications/Multimedia | |
8 | URL: http://mediainfo.sourceforge.net/ | |
9 | Source0: http://downloads.sourceforge.net/project/mediainfo/source/mediainfo/%{version}/%{name}_%{version}.tar.bz2 | |
39bb9212 | 10 | # Source0-md5: 60323db7b0f8fe3ab7fb6c9888371e05 |
ef7ebdf4 KK |
11 | BuildRequires: autoconf |
12 | BuildRequires: automake | |
7bc0a388 | 13 | BuildRequires: dos2unix |
06d8d453 | 14 | BuildRequires: libmediainfo-devel >= %{libmediainfo_ver} |
7bc0a388 | 15 | BuildRequires: libstdc++-devel |
ef7ebdf4 | 16 | BuildRequires: libtool |
7bc0a388 AM |
17 | BuildRequires: libzen-devel >= 0.4.9 |
18 | BuildRequires: pkgconfig | |
19 | BuildRequires: wxGTK2-unicode-devel | |
20 | BuildRequires: zlib-devel | |
06d8d453 | 21 | Requires: libmediainfo >= %{libmediainfo_ver} |
7bc0a388 AM |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | MediaInfo CLI (Command Line Interface). | |
26 | ||
27 | What information can I get from MediaInfo? | |
28 | - General: title, author, director, album, track number, date, | |
29 | duration... | |
30 | - Video: codec, aspect, fps, bitrate... | |
31 | - Audio: codec, sample rate, channels, language, bitrate... | |
32 | - Text: language of subtitle | |
33 | - Chapters: number of chapters, list of chapters | |
34 | ||
35 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, MPEG1, | |
36 | MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, RealVideo, | |
37 | RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, VOB, DVD, WMA, | |
38 | VMW, ASF, 3GP, 3GPP, 3GP2 | |
39 | ||
40 | What format (container) does MediaInfo support? | |
41 | - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, | |
42 | MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) | |
43 | - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF | |
44 | - Subtitles: SRT, SSA, ASS, SAMI | |
45 | ||
46 | %package gui | |
47 | Summary: Supplies technical and tag information about a video or audio file (GUI) | |
48 | Group: X11/Applications/Multimedia | |
459be300 | 49 | Requires: kde-common-dirs >= 0.5 |
7bc0a388 AM |
50 | Requires: libmediainfo >= %{version} |
51 | Requires: libzen >= 0.4.9 | |
52 | ||
53 | %description gui | |
54 | MediaInfo (Graphical User Interface). | |
55 | ||
56 | What information can I get from MediaInfo? | |
57 | - General: title, author, director, album, track number, date, | |
58 | duration... | |
59 | - Video: codec, aspect, fps, bitrate... | |
60 | - Audio: codec, sample rate, channels, language, bitrate... | |
61 | - Text: language of subtitle | |
62 | - Chapters: number of chapters, list of chapters | |
63 | ||
64 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, MPEG1, | |
65 | MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, RealVideo, | |
66 | RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, VOB, DVD, WMA, | |
67 | VMW, ASF, 3GP, 3GPP, 3GP2 | |
68 | ||
69 | What format (container) does MediaInfo support? | |
70 | - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, | |
71 | MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) | |
72 | - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF | |
73 | - Subtitles: SRT, SSA, ASS, SAMI | |
74 | ||
75 | %prep | |
76 | %setup -q -n MediaInfo | |
a1645a6a | 77 | dos2unix *.html *.txt Release/*.txt |
7bc0a388 AM |
78 | chmod 644 *.html *.txt Release/*.txt |
79 | ||
80 | %build | |
81 | export CFLAGS="%{rpmcflags}" | |
82 | export CPPFLAGS="%{rpmcppflags}" | |
83 | export CXXFLAGS="%{rpmcxxflags}" | |
84 | ||
85 | # build CLI | |
86 | cd Project/GNU/CLI | |
a1645a6a KK |
87 | %{__libtoolize} |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
90 | %{__automake} | |
7bc0a388 AM |
91 | %configure |
92 | %{__make} | |
a1645a6a | 93 | cd - |
7bc0a388 AM |
94 | |
95 | # now build GUI | |
96 | cd Project/GNU/GUI | |
a1645a6a KK |
97 | %{__libtoolize} |
98 | %{__aclocal} | |
99 | %{__autoconf} | |
100 | %{__automake} | |
7bc0a388 AM |
101 | %configure \ |
102 | --with-wx-config=%{_bindir}/wx-gtk2-unicode-config | |
103 | %{__make} | |
a1645a6a | 104 | cd - |
7bc0a388 AM |
105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | %{__make} -C Project/GNU/CLI \ | |
a1645a6a | 109 | install \ |
7bc0a388 AM |
110 | DESTDIR=$RPM_BUILD_ROOT |
111 | ||
112 | %{__make} -C Project/GNU/GUI \ | |
113 | install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | # icon | |
117 | install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps | |
118 | install Source/Ressource/Image/MediaInfo.png \ | |
119 | $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png | |
120 | install -dm 755 $RPM_BUILD_ROOT%{_pixmapsdir} | |
121 | install Source/Ressource/Image/MediaInfo.png \ | |
122 | $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
123 | ||
124 | # menu-entry | |
125 | install -dm 755 $RPM_BUILD_ROOT/%{_desktopdir} | |
126 | install Project/GNU/GUI/mediainfo-gui.desktop \ | |
127 | $RPM_BUILD_ROOT/%{_desktopdir} | |
128 | install -dm 755 $RPM_BUILD_ROOT/%{_datadir}/apps/konqueror/servicemenus | |
129 | install Project/GNU/GUI/mediainfo-gui.kde3.desktop \ | |
130 | $RPM_BUILD_ROOT/%{_datadir}/apps/konqueror/servicemenus/mediainfo-gui.desktop | |
131 | install -dm 755 $RPM_BUILD_ROOT/%{_datadir}/kde4/services/ServiceMenus/ | |
132 | install Project/GNU/GUI/mediainfo-gui.kde4.desktop \ | |
133 | $RPM_BUILD_ROOT/%{_datadir}/kde4/services/ServiceMenus/mediainfo-gui.desktop | |
134 | ||
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %files | |
139 | %defattr(644,root,root,755) | |
140 | %doc Release/ReadMe_CLI_Linux.txt | |
141 | %doc License.html History_CLI.txt | |
142 | %attr(755,root,root) %{_bindir}/mediainfo | |
143 | ||
144 | %files gui | |
145 | %defattr(644,root,root,755) | |
146 | %doc Release/ReadMe_GUI_Linux.txt | |
147 | %doc License.html History_GUI.txt | |
148 | %attr(755,root,root) %{_bindir}/mediainfo-gui | |
149 | %{_desktopdir}/*.desktop | |
150 | %{_pixmapsdir}/*.png | |
7bc0a388 | 151 | %{_iconsdir}/hicolor/128x128/apps/*.png |
7bc0a388 AM |
152 | %dir %{_datadir}/apps/konqueror/servicemenus |
153 | %{_datadir}/apps/konqueror/servicemenus/*.desktop | |
7bc0a388 | 154 | %{_datadir}/kde4/services/ServiceMenus/*.desktop |