2 %bcond_without gui # build without GUI
4 Summary: Supplies technical and tag information about a video or audio file (CLI)
5 Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych (CLI)
9 License: BSD or Apache v2.0 or LGPL v2.1+ or GPL v2+ or MPL v2.0+
10 Group: Applications/Multimedia
11 #Source0Download: https://github.com/MediaArea/MediaInfo/releases
12 Source0: https://github.com/MediaArea/MediaInfo/archive/v%{version}/MediaInfo-%{version}.tar.gz
13 # Source0-md5: c2cb51536b7831c5c1986db7caad40e1
14 URL: https://mediaarea.net/MediaInfo
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake
17 BuildRequires: libmediainfo-devel >= %{version}
18 BuildRequires: libstdc++-devel
19 BuildRequires: libtool >= 2:1.5
20 BuildRequires: libzen-devel >= 0.4.37
21 BuildRequires: pkgconfig
22 BuildRequires: rpmbuild(macros) >= 1.566
23 BuildRequires: sed >= 4.0
24 BuildRequires: tar >= 1:1.22
25 %{?with_gui:BuildRequires: wxGTK3-unicode-devel >= 3.0.0}
27 BuildRequires: zlib-devel
28 Requires: libmediainfo >= %{version}
29 Requires: libzen >= 0.4.37
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 MediaInfo CLI (Command Line Interface).
35 What information can I get from MediaInfo?
36 - General: title, author, director, album, track number, date,
38 - Video: codec, aspect, fps, bitrate...
39 - Audio: codec, sample rate, channels, language, bitrate...
40 - Text: language of subtitle
41 - Chapters: number of chapters, list of chapters
43 Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
44 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
45 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
46 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
48 Supported formats/containers:
49 - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
50 MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
51 - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
52 - Subtitles: SRT, SSA, ASS, SAMI
54 %description -l pl.UTF-8
55 Program MediaInfo działający z linii poleceń (CLI).
57 Dostępne są informacje:
58 - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
60 - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
61 - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
63 - tekst: język napisów
64 - książki: liczba rozdziałów, ich lista
66 Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
67 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
68 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
69 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
71 Obsługiwane formaty/kontenery:
72 - wideo: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
73 MPEG-4, DVD (VOB) (kodeki: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
74 - dźwięk: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
75 - napisy: SRT, SSA, ASS, SAMI
78 Summary: Supplies technical and tag information about a video or audio file (GUI)
79 Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych (GUI)
80 Group: X11/Applications/Multimedia
81 Requires: kde-common-dirs >= 0.5
82 Requires: libmediainfo >= %{version}
83 Requires: libzen >= 0.4.37
84 Requires: wxGTK3-unicode >= 3.0.0
87 MediaInfo (Graphical User Interface).
89 What information can I get from MediaInfo?
90 - General: title, author, director, album, track number, date,
92 - Video: codec, aspect, fps, bitrate...
93 - Audio: codec, sample rate, channels, language, bitrate...
94 - Text: language of subtitle
95 - Chapters: number of chapters, list of chapters
97 Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
98 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
99 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
100 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
102 Supported formats/containers:
103 - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
104 MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
105 - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
106 - Subtitles: SRT, SSA, ASS, SAMI
108 %description gui -l pl.UTF-8
109 Program MediaInfo z graficznym interfejsem użytkownika (GUI).
111 Dostępne są informacje:
112 - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
114 - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
115 - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
117 - tekst: język napisów
118 - książki: liczba rozdziałów, ich lista
120 Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
121 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
122 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
123 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
125 Obsługiwane formaty/kontenery:
126 - wideo: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
127 MPEG-4, DVD (VOB) (kodeki: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
128 - dźwięk: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
129 - napisy: SRT, SSA, ASS, SAMI
132 %setup -q -n MediaInfo-%{version}
133 %undos *.html *.txt Release/*.txt
134 chmod 644 *.html *.txt Release/*.txt
147 cd ../../../Project/GNU/GUI
153 --with-wx-config=%{_bindir}/wx-gtk3-unicode-config
158 rm -rf $RPM_BUILD_ROOT
160 %{__make} -C Project/GNU/CLI install \
161 DESTDIR=$RPM_BUILD_ROOT
164 %{__make} -C Project/GNU/GUI install \
165 DESTDIR=$RPM_BUILD_ROOT
167 # Remove kde3 and kde4 files
168 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{apps,kde4}
172 rm -rf $RPM_BUILD_ROOT
175 %defattr(644,root,root,755)
176 %doc License.html History_CLI.txt README.md Release/ReadMe_CLI_Linux.txt
177 %attr(755,root,root) %{_bindir}/mediainfo
181 %defattr(644,root,root,755)
182 %doc License.html History_GUI.txt Release/ReadMe_GUI_Linux.txt
183 %attr(755,root,root) %{_bindir}/mediainfo-gui
184 %{_desktopdir}/mediainfo-gui.desktop
185 %{_pixmapsdir}/mediainfo.xpm
186 %{_iconsdir}/hicolor/256x256/apps/mediainfo.png
187 %{_iconsdir}/hicolor/scalable/apps/mediainfo.svg
188 %{_datadir}/kservices5/ServiceMenus/mediainfo-gui.desktop
189 %{_datadir}/metainfo/mediainfo-gui.metainfo.xml