]> git.pld-linux.org Git - SPECS.git/blob - mediainfo.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / mediainfo.spec
1 # Conditional build:
2 %bcond_without  gui     # build without GUI
3
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)
6 Name:           mediainfo
7 Version:        21.03
8 Release:        1
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:  3a8c62d861a0c70870760c619b49fe63
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:      wxGTK2-unicode-devel >= 2.6.0}
26 BuildRequires:  xz
27 BuildRequires:  zlib-devel
28 Requires:       libmediainfo >= %{version}
29 Requires:       libzen >= 0.4.37
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 MediaInfo CLI (Command Line Interface).
34
35 What information can I get from MediaInfo?
36 - General: title, author, director, album, track number, date,
37   duration...
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
42
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
47
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
53
54 %description -l pl.UTF-8
55 Program MediaInfo działający z linii poleceń (CLI).
56
57 Dostępne są informacje:
58 - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
59   trwania...
60 - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
61 - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
62   pasmo...
63 - tekst: język napisów
64 - książki: liczba rozdziałów, ich lista
65
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
70
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
76
77 %package gui
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:       wxGTK2-unicode >= 2.6.0
85
86 %description gui
87 MediaInfo (Graphical User Interface).
88
89 What information can I get from MediaInfo?
90 - General: title, author, director, album, track number, date,
91   duration...
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
96
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
101
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
107
108 %description gui -l pl.UTF-8
109 Program MediaInfo z graficznym interfejsem użytkownika (GUI).
110
111 Dostępne są informacje:
112 - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
113   trwania...
114 - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
115 - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
116   pasmo...
117 - tekst: język napisów
118 - książki: liczba rozdziałów, ich lista
119
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
124
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
130
131 %prep
132 %setup -q -n MediaInfo-%{version}
133 %undos *.html *.txt Release/*.txt
134 chmod 644 *.html *.txt Release/*.txt
135
136 %build
137 # build CLI
138 cd Project/GNU/CLI
139 %{__libtoolize}
140 %{__aclocal}
141 %{__autoconf}
142 %{__automake}
143 %configure
144 %{__make}
145 %if %{with gui}
146 # now build GUI
147 cd ../../../Project/GNU/GUI
148 %{__libtoolize}
149 %{__aclocal}
150 %{__autoconf}
151 %{__automake}
152 %configure \
153         --with-wx-config=%{_bindir}/wx-gtk2-unicode-config
154 %{__make}
155 %endif
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159
160 %{__make} -C Project/GNU/CLI install \
161         DESTDIR=$RPM_BUILD_ROOT
162
163 %if %{with gui}
164 %{__make} -C Project/GNU/GUI install \
165         DESTDIR=$RPM_BUILD_ROOT
166 %endif
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %files
172 %defattr(644,root,root,755)
173 %doc License.html History_CLI.txt README.md Release/ReadMe_CLI_Linux.txt
174 %attr(755,root,root) %{_bindir}/mediainfo
175
176 %if %{with gui}
177 %files gui
178 %defattr(644,root,root,755)
179 %doc License.html History_GUI.txt Release/ReadMe_GUI_Linux.txt
180 %attr(755,root,root) %{_bindir}/mediainfo-gui
181 %{_desktopdir}/mediainfo-gui.desktop
182 %{_pixmapsdir}/mediainfo.xpm
183 %{_iconsdir}/hicolor/256x256/apps/mediainfo.png
184 %{_iconsdir}/hicolor/scalable/apps/mediainfo.svg
185 %dir %{_datadir}/apps/konqueror/servicemenus
186 %{_datadir}/apps/konqueror/servicemenus/mediainfo-gui.desktop
187 %{_datadir}/kde4/services/ServiceMenus/mediainfo-gui.desktop
188 %{_datadir}/kservices5/ServiceMenus/mediainfo-gui.desktop
189 %{_datadir}/metainfo/mediainfo-gui.metainfo.xml
190 %endif
This page took 0.230677 seconds and 3 git commands to generate.