2 # - pkgconfig(aes_gladman)
3 # - pkgconfig(sha1_gladman)
4 # - pkgconfig(sha2_gladman)
5 # - pkgconfig(hmac_gladman)
6 # - md5? (which implementation? pkgconfig(md5) is checked)
9 %bcond_without curl # cURL support
10 %bcond_without mms # MMS support
11 %bcond_without apidoc # API documentation (doxygen generated)
12 %bcond_without static_libs # static library
14 %define libzen_ver 0.4.37
15 Summary: Supplies technical and tag information about a video or audio file
16 Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych
20 License: BSD or Apache v2.0+ or LGPL v2.1+ or GPL v2+ or MPL v2.0+
22 Source0: https://mediaarea.net/download/source/libmediainfo/%{version}/%{name}_%{version}.tar.xz
23 # Source0-md5: 7ce25e05674ceabcf2fa9706febdbdda
24 URL: https://github.com/MediaArea/MediaInfoLib
25 BuildRequires: autoconf >= 2.50
26 BuildRequires: automake >= 1:1.11
27 %{?with_curl:BuildRequires: curl-devel}
28 BuildRequires: doxygen
29 %{?with_mms:BuildRequires: libmms-devel}
30 BuildRequires: libstdc++-devel
31 BuildRequires: libtool >= 2:1.5
32 BuildRequires: libzen-devel >= %{libzen_ver}
33 BuildRequires: pkgconfig
34 BuildRequires: rpmbuild(macros) >= 1.566
35 BuildRequires: tar >= 1:1.22
36 BuildRequires: tinyxml2-devel
38 BuildRequires: zlib-devel
39 Requires: libzen >= %{libzen_ver}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 MediaInfo supplies technical and tag information about a video or
46 What information can I get from MediaInfo?
47 - General: title, author, director, album, track number, date,
49 - Video: codec, aspect, fps, bitrate...
50 - Audio: codec, sample rate, channels, language, bitrate...
51 - Text: language of subtitle
52 - Chapters: number of chapters, list of chapters
54 Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
55 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
56 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
57 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
59 Supported formats/containers:
60 - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
61 MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
62 - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
63 - Subtitles: SRT, SSA, ASS, SAMI
65 This package contains the shared library for MediaInfo.
67 %description -l pl.UTF-8
68 MediaInfo udostępnia informacje techniczne oraz znaczniki dla plików
71 Dostępne są informacje:
72 - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
74 - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
75 - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
77 - tekst: język napisów
78 - książki: liczba rozdziałów, ich lista
80 Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
81 iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
82 QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
83 MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
85 Obsługiwane formaty/kontenery:
86 - wideo: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
87 MPEG-4, DVD (VOB) (kodeki: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
88 - dźwięk: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
89 - napisy: SRT, SSA, ASS, SAMI
91 Ten pakiet zawiera bibliotekę współdzieloną MediaInfo.
94 Summary: Header files for MediaInfo library
95 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MediaInfo
96 Group: Development/Libraries
97 Requires: %{name} = %{version}-%{release}
98 %{?with_curl:Requires: curl-devel}
99 %{?with_mms:Requires: libmms-devel}
100 Requires: libstdc++-devel
101 Requires: libzen-devel >= %{libzen_ver}
102 Requires: tinyxml2-devel
106 Header files for MediaInfo library.
108 %description devel -l pl.UTF-8
109 Pliki nagłówkowe biblioteki MediaInfo.
112 Summary: Static MediaInfo library
113 Summary(pl.UTF-8): Statyczna biblioteka MediaInfo
114 Group: Development/Libraries
115 Requires: %{name}-devel = %{version}-%{release}
118 Static MediaInfo library.
120 %description static -l pl.UTF-8
121 Statyczna biblioteka MediaInfo.
124 Summary: API documentation for MediaInfo library
125 Summary(pl.UTF-8): Dokumentacja API biblioteki MediaInfo
127 %if "%{_rpmversion}" >= "5"
132 API documentation for MediaInfo library.
134 %description apidocs -l pl.UTF-8
135 Dokumentacja API biblioteki MediaInfo.
138 %setup -q -n MediaInfoLib
139 cp -p Release/ReadMe_DLL_Linux.txt ReadMe.txt
140 %{__mv} History_DLL.txt History.txt
141 %undos *.txt *.html Source/Doc/*.html
142 chmod 644 *.txt *.html Source/Doc/*.html
145 cd Project/GNU/Library
151 %{?with_static_libs:--enable-static} \
152 %{?with_curl:--with-libcurl} \
153 %{?with_mms:--with-libmms} \
160 cd ../../../Source/Doc
165 rm -rf $RPM_BUILD_ROOT
167 %{__make} -C Project/GNU/Library install \
168 DESTDIR=$RPM_BUILD_ROOT
171 rm -rf $RPM_BUILD_ROOT
173 %post -p /sbin/ldconfig
174 %postun -p /sbin/ldconfig
177 %defattr(644,root,root,755)
178 %doc Changes.txt History.txt License.html README.md ReadMe.txt
179 %attr(755,root,root) %{_libdir}/libmediainfo.so.*.*.*
180 %attr(755,root,root) %ghost %{_libdir}/libmediainfo.so.0
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libmediainfo.so
185 %{_libdir}/libmediainfo.la
186 %{_includedir}/MediaInfo
187 %{_includedir}/MediaInfoDLL
188 %{_pkgconfigdir}/libmediainfo.pc
190 %if %{with static_libs}
192 %defattr(644,root,root,755)
193 %{_libdir}/libmediainfo.a
198 %defattr(644,root,root,755)
199 # Documentation.html expects Doc/index.html
200 %doc Source/Doc/Documentation.html Doc Source/Example/HowToUse*