]> git.pld-linux.org Git - packages/mediainfo.git/blame - mediainfo.spec
up to 23.07
[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
93aa0212 7Version: 23.07
94fc7ff1 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
93aa0212 13# Source0-md5: 772d4bb8c082012caaccd3074a8103a9
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
459be300 81Requires: kde-common-dirs >= 0.5
7bc0a388 82Requires: libmediainfo >= %{version}
5addcd53 83Requires: libzen >= 0.4.37
194b3e3b 84Requires: wxGTK3-unicode >= 3.0.0
7bc0a388
AM
85
86%description gui
87MediaInfo (Graphical User Interface).
88
89What 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
01bcd4aa
JB
97Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
98iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
99QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
100MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
7bc0a388 101
01bcd4aa 102Supported formats/containers:
7bc0a388
AM
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
01bcd4aa
JB
108%description gui -l pl.UTF-8
109Program MediaInfo z graficznym interfejsem użytkownika (GUI).
110
111Dostę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
120Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
121iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
122QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
123MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
124
125Obsł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
7bc0a388 131%prep
dd92e516 132%setup -q -n MediaInfo-%{version}
01bcd4aa 133%undos *.html *.txt Release/*.txt
7bc0a388
AM
134chmod 644 *.html *.txt Release/*.txt
135
136%build
7bc0a388
AM
137# build CLI
138cd Project/GNU/CLI
01bcd4aa
JB
139%{__libtoolize}
140%{__aclocal}
141%{__autoconf}
142%{__automake}
143%configure
144%{__make}
c0c4f486 145%if %{with gui}
7bc0a388 146# now build GUI
01bcd4aa
JB
147cd ../../../Project/GNU/GUI
148%{__libtoolize}
149%{__aclocal}
150%{__autoconf}
151%{__automake}
152%configure \
194b3e3b 153 --with-wx-config=%{_bindir}/wx-gtk3-unicode-config
01bcd4aa 154%{__make}
c0c4f486 155%endif
7bc0a388
AM
156
157%install
158rm -rf $RPM_BUILD_ROOT
01bcd4aa
JB
159
160%{__make} -C Project/GNU/CLI install \
7bc0a388
AM
161 DESTDIR=$RPM_BUILD_ROOT
162
c0c4f486 163%if %{with gui}
01bcd4aa 164%{__make} -C Project/GNU/GUI install \
7bc0a388 165 DESTDIR=$RPM_BUILD_ROOT
194b3e3b
JR
166
167# Remove kde3 and kde4 files
168%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{apps,kde4}
c0c4f486 169%endif
7bc0a388 170
7bc0a388
AM
171%clean
172rm -rf $RPM_BUILD_ROOT
173
174%files
175%defattr(644,root,root,755)
1eb178e8 176%doc License.html History_CLI.txt README.md Release/ReadMe_CLI_Linux.txt
7bc0a388
AM
177%attr(755,root,root) %{_bindir}/mediainfo
178
c0c4f486 179%if %{with gui}
7bc0a388
AM
180%files gui
181%defattr(644,root,root,755)
01bcd4aa 182%doc License.html History_GUI.txt Release/ReadMe_GUI_Linux.txt
7bc0a388 183%attr(755,root,root) %{_bindir}/mediainfo-gui
01bcd4aa 184%{_desktopdir}/mediainfo-gui.desktop
1eb178e8
JB
185%{_pixmapsdir}/mediainfo.xpm
186%{_iconsdir}/hicolor/256x256/apps/mediainfo.png
187%{_iconsdir}/hicolor/scalable/apps/mediainfo.svg
a98fe554 188%{_datadir}/kservices5/ServiceMenus/mediainfo-gui.desktop
c0c4f486
JP
189%{_datadir}/metainfo/mediainfo-gui.metainfo.xml
190%endif
This page took 0.232976 seconds and 4 git commands to generate.