]> git.pld-linux.org Git - packages/mediainfo.git/blob - mediainfo.spec
up to 24.01
[packages/mediainfo.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:        24.01
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:  6513173a58ee0b95f77e4e6055b76852
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}
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(post,postun):  desktop-file-utils
82 Requires(post,postun):  gtk-update-icon-cache
83 Requires:       hicolor-icon-theme
84 Requires:       kde-common-dirs >= 0.5
85 Requires:       libmediainfo >= %{version}
86 Requires:       libzen >= 0.4.37
87 Requires:       wxGTK3-unicode >= 3.0.0
88
89 %description gui
90 MediaInfo (Graphical User Interface).
91
92 What information can I get from MediaInfo?
93 - General: title, author, director, album, track number, date,
94   duration...
95 - Video: codec, aspect, fps, bitrate...
96 - Audio: codec, sample rate, channels, language, bitrate...
97 - Text: language of subtitle
98 - Chapters: number of chapters, list of chapters
99
100 Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
101 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
102 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
103 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
104
105 Supported formats/containers:
106 - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
107   MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
108 - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
109 - Subtitles: SRT, SSA, ASS, SAMI
110
111 %description gui -l pl.UTF-8
112 Program MediaInfo z graficznym interfejsem użytkownika (GUI).
113
114 Dostępne są informacje:
115 - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
116   trwania...
117 - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
118 - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
119   pasmo...
120 - tekst: język napisów
121 - książki: liczba rozdziałów, ich lista
122
123 Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
124 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
125 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
126 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
127
128 Obsługiwane formaty/kontenery:
129 - wideo: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
130   MPEG-4, DVD (VOB) (kodeki: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
131 - dźwięk: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
132 - napisy: SRT, SSA, ASS, SAMI
133
134 %prep
135 %setup -q -n MediaInfo-%{version}
136 %undos *.html *.txt Release/*.txt
137 chmod 644 *.html *.txt Release/*.txt
138
139 %build
140 # build CLI
141 cd Project/GNU/CLI
142 %{__libtoolize}
143 %{__aclocal}
144 %{__autoconf}
145 %{__automake}
146 %configure
147 %{__make}
148 %if %{with gui}
149 # now build GUI
150 cd ../../../Project/GNU/GUI
151 %{__libtoolize}
152 %{__aclocal}
153 %{__autoconf}
154 %{__automake}
155 %configure \
156         --with-wx-config=%{_bindir}/wx-gtk3-unicode-config
157 %{__make}
158 %endif
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162
163 %{__make} -C Project/GNU/CLI install \
164         DESTDIR=$RPM_BUILD_ROOT
165
166 %if %{with gui}
167 %{__make} -C Project/GNU/GUI install \
168         DESTDIR=$RPM_BUILD_ROOT
169
170 # Remove kde3 and kde4 files
171 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{apps,kde4}
172 %endif
173
174 %clean
175 rm -rf $RPM_BUILD_ROOT
176
177 %post gui
178 %update_desktop_database_post
179 %update_icon_cache hicolor
180
181 %postun gui
182 %update_desktop_database_postun
183 %update_icon_cache hicolor
184
185 %files
186 %defattr(644,root,root,755)
187 %doc License.html History_CLI.txt README.md Release/ReadMe_CLI_Linux.txt
188 %attr(755,root,root) %{_bindir}/mediainfo
189
190 %if %{with gui}
191 %files gui
192 %defattr(644,root,root,755)
193 %doc License.html History_GUI.txt Release/ReadMe_GUI_Linux.txt
194 %attr(755,root,root) %{_bindir}/mediainfo-gui
195 %{_desktopdir}/mediainfo-gui.desktop
196 %{_pixmapsdir}/mediainfo.xpm
197 %{_iconsdir}/hicolor/256x256/apps/mediainfo.png
198 %{_iconsdir}/hicolor/scalable/apps/mediainfo.svg
199 %{_datadir}/kservices5/ServiceMenus/mediainfo-gui.desktop
200 %{_datadir}/metainfo/mediainfo-gui.metainfo.xml
201 %endif
This page took 0.133605 seconds and 4 git commands to generate.