]> git.pld-linux.org Git - packages/mediainfo.git/blame - mediainfo.spec
up to 24.01
[packages/mediainfo.git] / mediainfo.spec
CommitLineData
c0c4f486
JP
1# Conditional build:
2%bcond_without gui # build without GUI
3
7bc0a388 4Summary: Supplies technical and tag information about a video or audio file (CLI)
01bcd4aa 5Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych (CLI)
7bc0a388 6Name: mediainfo
f9d1bd0e
JP
7Version: 24.01
8Release: 1
5addcd53 9License: BSD or Apache v2.0 or LGPL v2.1+ or GPL v2+ or MPL v2.0+
7bc0a388 10Group: Applications/Multimedia
4c11e7a8
JB
11#Source0Download: https://github.com/MediaArea/MediaInfo/releases
12Source0: https://github.com/MediaArea/MediaInfo/archive/v%{version}/MediaInfo-%{version}.tar.gz
f9d1bd0e 13# Source0-md5: 6513173a58ee0b95f77e4e6055b76852
1eb178e8 14URL: https://mediaarea.net/MediaInfo
01bcd4aa 15BuildRequires: autoconf >= 2.50
ef7ebdf4 16BuildRequires: automake
a36e9503 17BuildRequires: libmediainfo-devel >= %{version}
7bc0a388 18BuildRequires: libstdc++-devel
01bcd4aa 19BuildRequires: libtool >= 2:1.5
5addcd53 20BuildRequires: libzen-devel >= 0.4.37
7bc0a388 21BuildRequires: pkgconfig
01bcd4aa
JB
22BuildRequires: rpmbuild(macros) >= 1.566
23BuildRequires: sed >= 4.0
1eb178e8 24BuildRequires: tar >= 1:1.22
194b3e3b 25%{?with_gui:BuildRequires: wxGTK3-unicode-devel >= 3.0.0}
1eb178e8 26BuildRequires: xz
7bc0a388 27BuildRequires: zlib-devel
a36e9503 28Requires: libmediainfo >= %{version}
5addcd53 29Requires: libzen >= 0.4.37
7bc0a388
AM
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33MediaInfo CLI (Command Line Interface).
34
35What 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
01bcd4aa
JB
43Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
44iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
45QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
46MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
7bc0a388 47
01bcd4aa 48Supported formats/containers:
7bc0a388
AM
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
01bcd4aa
JB
54%description -l pl.UTF-8
55Program MediaInfo działający z linii poleceń (CLI).
56
57Dostę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
66Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
67iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
68QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
69MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
70
71Obsł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
7bc0a388
AM
77%package gui
78Summary: Supplies technical and tag information about a video or audio file (GUI)
01bcd4aa 79Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych (GUI)
7bc0a388 80Group: X11/Applications/Multimedia
afb05e99
JP
81Requires(post,postun): desktop-file-utils
82Requires(post,postun): gtk-update-icon-cache
83Requires: hicolor-icon-theme
459be300 84Requires: kde-common-dirs >= 0.5
7bc0a388 85Requires: libmediainfo >= %{version}
5addcd53 86Requires: libzen >= 0.4.37
194b3e3b 87Requires: wxGTK3-unicode >= 3.0.0
7bc0a388
AM
88
89%description gui
90MediaInfo (Graphical User Interface).
91
92What 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
01bcd4aa
JB
100Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
101iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
102QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
103MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
7bc0a388 104
01bcd4aa 105Supported formats/containers:
7bc0a388
AM
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
01bcd4aa
JB
111%description gui -l pl.UTF-8
112Program MediaInfo z graficznym interfejsem użytkownika (GUI).
113
114Dostę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
123Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
124iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
125QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
126MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
127
128Obsł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
7bc0a388 134%prep
dd92e516 135%setup -q -n MediaInfo-%{version}
01bcd4aa 136%undos *.html *.txt Release/*.txt
7bc0a388
AM
137chmod 644 *.html *.txt Release/*.txt
138
139%build
7bc0a388
AM
140# build CLI
141cd Project/GNU/CLI
01bcd4aa
JB
142%{__libtoolize}
143%{__aclocal}
144%{__autoconf}
145%{__automake}
146%configure
147%{__make}
c0c4f486 148%if %{with gui}
7bc0a388 149# now build GUI
01bcd4aa
JB
150cd ../../../Project/GNU/GUI
151%{__libtoolize}
152%{__aclocal}
153%{__autoconf}
154%{__automake}
155%configure \
194b3e3b 156 --with-wx-config=%{_bindir}/wx-gtk3-unicode-config
01bcd4aa 157%{__make}
c0c4f486 158%endif
7bc0a388
AM
159
160%install
161rm -rf $RPM_BUILD_ROOT
01bcd4aa
JB
162
163%{__make} -C Project/GNU/CLI install \
7bc0a388
AM
164 DESTDIR=$RPM_BUILD_ROOT
165
c0c4f486 166%if %{with gui}
01bcd4aa 167%{__make} -C Project/GNU/GUI install \
7bc0a388 168 DESTDIR=$RPM_BUILD_ROOT
194b3e3b
JR
169
170# Remove kde3 and kde4 files
171%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{apps,kde4}
c0c4f486 172%endif
7bc0a388 173
7bc0a388
AM
174%clean
175rm -rf $RPM_BUILD_ROOT
176
afb05e99
JP
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
7bc0a388
AM
185%files
186%defattr(644,root,root,755)
1eb178e8 187%doc License.html History_CLI.txt README.md Release/ReadMe_CLI_Linux.txt
7bc0a388
AM
188%attr(755,root,root) %{_bindir}/mediainfo
189
c0c4f486 190%if %{with gui}
7bc0a388
AM
191%files gui
192%defattr(644,root,root,755)
01bcd4aa 193%doc License.html History_GUI.txt Release/ReadMe_GUI_Linux.txt
7bc0a388 194%attr(755,root,root) %{_bindir}/mediainfo-gui
01bcd4aa 195%{_desktopdir}/mediainfo-gui.desktop
1eb178e8
JB
196%{_pixmapsdir}/mediainfo.xpm
197%{_iconsdir}/hicolor/256x256/apps/mediainfo.png
198%{_iconsdir}/hicolor/scalable/apps/mediainfo.svg
a98fe554 199%{_datadir}/kservices5/ServiceMenus/mediainfo-gui.desktop
c0c4f486
JP
200%{_datadir}/metainfo/mediainfo-gui.metainfo.xml
201%endif
This page took 0.155996 seconds and 4 git commands to generate.