]> git.pld-linux.org Git - packages/libmediainfo.git/blame - libmediainfo.spec
up to 22.12
[packages/libmediainfo.git] / libmediainfo.spec
CommitLineData
98966854 1# TODO: system libs:
e28db7e3
JB
2# - pkgconfig(aes_gladman)
3# - pkgconfig(sha1_gladman)
4# - pkgconfig(sha2_gladman)
5# - pkgconfig(hmac_gladman)
6# - md5? (which implementation? pkgconfig(md5) is checked)
644019c5
JB
7#
8# Conditional build:
98966854
JB
9%bcond_without curl # cURL support
10%bcond_without mms # MMS support
394171ea 11%bcond_without graphviz # graphviz support
73d0aeab 12%bcond_without apidocs # API documentation (doxygen generated)
98966854 13%bcond_without static_libs # static library
644019c5 14
edff0ae0 15%define libzen_ver 0.4.40
35088f46 16Summary: Supplies technical and tag information about a video or audio file
644019c5 17Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych
35088f46 18Name: libmediainfo
edff0ae0 19Version: 22.12
5f4e0878 20Release: 1
e28db7e3 21License: BSD or Apache v2.0+ or LGPL v2.1+ or GPL v2+ or MPL v2.0+
35088f46 22Group: Libraries
a48c2c4c 23Source0: https://github.com/MediaArea/MediaInfoLib/archive/v%{version}/MediaInfoLib-%{version}.tar.gz
edff0ae0 24# Source0-md5: 6b1632d958b184eb1985021c0da90302
98966854 25URL: https://github.com/MediaArea/MediaInfoLib
644019c5
JB
26BuildRequires: autoconf >= 2.50
27BuildRequires: automake >= 1:1.11
28%{?with_curl:BuildRequires: curl-devel}
35088f46 29BuildRequires: doxygen
394171ea 30%{?with_graphviz:BuildRequires: graphviz-devel}
644019c5 31%{?with_mms:BuildRequires: libmms-devel}
35088f46 32BuildRequires: libstdc++-devel
644019c5 33BuildRequires: libtool >= 2:1.5
cec8924b 34BuildRequires: libzen-devel >= %{libzen_ver}
35088f46 35BuildRequires: pkgconfig
597b1c79 36BuildRequires: rpm-build >= 4.6
807d40e3 37BuildRequires: rpmbuild(macros) >= 1.752
98966854
JB
38BuildRequires: tar >= 1:1.22
39BuildRequires: tinyxml2-devel
40BuildRequires: xz
35088f46 41BuildRequires: zlib-devel
cec8924b 42Requires: libzen >= %{libzen_ver}
35088f46
AM
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46MediaInfo supplies technical and tag information about a video or
47audio file.
48
49What information can I get from MediaInfo?
50- General: title, author, director, album, track number, date,
51 duration...
52- Video: codec, aspect, fps, bitrate...
53- Audio: codec, sample rate, channels, language, bitrate...
54- Text: language of subtitle
55- Chapters: number of chapters, list of chapters
56
644019c5
JB
57Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
58iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
59QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
60MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
35088f46 61
644019c5 62Supported formats/containers:
35088f46
AM
63- Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
64 MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
65- Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
66- Subtitles: SRT, SSA, ASS, SAMI
67
68This package contains the shared library for MediaInfo.
69
644019c5
JB
70%description -l pl.UTF-8
71MediaInfo udostępnia informacje techniczne oraz znaczniki dla plików
72wideo i dźwiękowych.
73
74Dostępne są informacje:
75- ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas
76 trwania...
77- wideo: kodek, proporcje, liczba klatek na sekundę, pasmo...
78- dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język,
79 pasmo...
80- tekst: język napisów
81- książki: liczba rozdziałów, ich lista
82
83Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC,
84iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V,
85QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2,
86MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
87
88Obsługiwane formaty/kontenery:
89- wideo: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
90 MPEG-4, DVD (VOB) (kodeki: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
91- dźwięk: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
92- napisy: SRT, SSA, ASS, SAMI
93
94Ten pakiet zawiera bibliotekę współdzieloną MediaInfo.
95
35088f46 96%package devel
644019c5
JB
97Summary: Header files for MediaInfo library
98Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MediaInfo
35088f46
AM
99Group: Development/Libraries
100Requires: %{name} = %{version}-%{release}
644019c5
JB
101%{?with_curl:Requires: curl-devel}
102%{?with_mms:Requires: libmms-devel}
98966854 103Requires: libstdc++-devel
cfe7791d 104Requires: libzen-devel >= %{libzen_ver}
98966854 105Requires: tinyxml2-devel
644019c5 106Requires: zlib-devel
35088f46
AM
107
108%description devel
644019c5
JB
109Header files for MediaInfo library.
110
111%description devel -l pl.UTF-8
112Pliki nagłówkowe biblioteki MediaInfo.
35088f46
AM
113
114%package static
644019c5
JB
115Summary: Static MediaInfo library
116Summary(pl.UTF-8): Statyczna biblioteka MediaInfo
35088f46
AM
117Group: Development/Libraries
118Requires: %{name}-devel = %{version}-%{release}
119
120%description static
644019c5
JB
121Static MediaInfo library.
122
123%description static -l pl.UTF-8
124Statyczna biblioteka MediaInfo.
35088f46 125
98966854
JB
126%package apidocs
127Summary: API documentation for MediaInfo library
128Summary(pl.UTF-8): Dokumentacja API biblioteki MediaInfo
129Group: Documentation
5862c8fe 130BuildArch: noarch
98966854
JB
131
132%description apidocs
133API documentation for MediaInfo library.
134
135%description apidocs -l pl.UTF-8
136Dokumentacja API biblioteki MediaInfo.
137
35088f46 138%prep
b7f14028 139%setup -q -n MediaInfoLib-%{version}
23591644 140cp -p Release/ReadMe_DLL_Linux.txt ReadMe.txt
98966854 141%{__mv} History_DLL.txt History.txt
191438ad 142%undos *.txt *.html Source/Doc/*.html
35088f46
AM
143chmod 644 *.txt *.html Source/Doc/*.html
144
145%build
35088f46 146cd Project/GNU/Library
644019c5
JB
147%{__libtoolize}
148%{__aclocal}
149%{__autoconf}
150%{__automake}
151%configure \
98966854 152 %{?with_static_libs:--enable-static} \
394171ea 153 %{?with_graphviz:--with-graphviz} \
644019c5 154 %{?with_curl:--with-libcurl} \
98966854
JB
155 %{?with_mms:--with-libmms} \
156 --with-libtinyxml2
35088f46 157
644019c5
JB
158%{__make} clean
159%{__make}
98966854
JB
160
161%if %{with apidocs}
644019c5
JB
162cd ../../../Source/Doc
163doxygen Doxyfile
98966854 164%endif
35088f46
AM
165
166%install
167rm -rf $RPM_BUILD_ROOT
168
644019c5 169%{__make} -C Project/GNU/Library install \
35088f46
AM
170 DESTDIR=$RPM_BUILD_ROOT
171
a48c2c4c
JB
172# obsoleted by pkg-config
173%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmediainfo.la
174
35088f46
AM
175%clean
176rm -rf $RPM_BUILD_ROOT
177
644019c5
JB
178%post -p /sbin/ldconfig
179%postun -p /sbin/ldconfig
35088f46
AM
180
181%files
182%defattr(644,root,root,755)
e28db7e3 183%doc Changes.txt History.txt License.html README.md ReadMe.txt
644019c5
JB
184%attr(755,root,root) %{_libdir}/libmediainfo.so.*.*.*
185%attr(755,root,root) %ghost %{_libdir}/libmediainfo.so.0
35088f46
AM
186
187%files devel
188%defattr(644,root,root,755)
644019c5 189%attr(755,root,root) %{_libdir}/libmediainfo.so
35088f46
AM
190%{_includedir}/MediaInfo
191%{_includedir}/MediaInfoDLL
644019c5 192%{_pkgconfigdir}/libmediainfo.pc
35088f46 193
98966854 194%if %{with static_libs}
35088f46
AM
195%files static
196%defattr(644,root,root,755)
197%{_libdir}/libmediainfo.a
98966854
JB
198%endif
199
200%if %{with apidocs}
201%files apidocs
202%defattr(644,root,root,755)
203# Documentation.html expects Doc/index.html
204%doc Source/Doc/Documentation.html Doc Source/Example/HowToUse*
205%endif
This page took 0.238439 seconds and 4 git commands to generate.