]>
Commit | Line | Data |
---|---|---|
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 | 16 | Summary: Supplies technical and tag information about a video or audio file |
644019c5 | 17 | Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych |
35088f46 | 18 | Name: libmediainfo |
edff0ae0 | 19 | Version: 22.12 |
5f4e0878 | 20 | Release: 1 |
e28db7e3 | 21 | License: BSD or Apache v2.0+ or LGPL v2.1+ or GPL v2+ or MPL v2.0+ |
35088f46 | 22 | Group: Libraries |
a48c2c4c | 23 | Source0: https://github.com/MediaArea/MediaInfoLib/archive/v%{version}/MediaInfoLib-%{version}.tar.gz |
edff0ae0 | 24 | # Source0-md5: 6b1632d958b184eb1985021c0da90302 |
98966854 | 25 | URL: https://github.com/MediaArea/MediaInfoLib |
644019c5 JB |
26 | BuildRequires: autoconf >= 2.50 |
27 | BuildRequires: automake >= 1:1.11 | |
28 | %{?with_curl:BuildRequires: curl-devel} | |
35088f46 | 29 | BuildRequires: doxygen |
394171ea | 30 | %{?with_graphviz:BuildRequires: graphviz-devel} |
644019c5 | 31 | %{?with_mms:BuildRequires: libmms-devel} |
35088f46 | 32 | BuildRequires: libstdc++-devel |
644019c5 | 33 | BuildRequires: libtool >= 2:1.5 |
cec8924b | 34 | BuildRequires: libzen-devel >= %{libzen_ver} |
35088f46 | 35 | BuildRequires: pkgconfig |
597b1c79 | 36 | BuildRequires: rpm-build >= 4.6 |
807d40e3 | 37 | BuildRequires: rpmbuild(macros) >= 1.752 |
98966854 JB |
38 | BuildRequires: tar >= 1:1.22 |
39 | BuildRequires: tinyxml2-devel | |
40 | BuildRequires: xz | |
35088f46 | 41 | BuildRequires: zlib-devel |
cec8924b | 42 | Requires: libzen >= %{libzen_ver} |
35088f46 AM |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | MediaInfo supplies technical and tag information about a video or | |
47 | audio file. | |
48 | ||
49 | What 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 |
57 | Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC, |
58 | iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, | |
59 | QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, | |
60 | MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 | |
35088f46 | 61 | |
644019c5 | 62 | Supported 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 | ||
68 | This package contains the shared library for MediaInfo. | |
69 | ||
644019c5 JB |
70 | %description -l pl.UTF-8 |
71 | MediaInfo udostępnia informacje techniczne oraz znaczniki dla plików | |
72 | wideo i dźwiękowych. | |
73 | ||
74 | Dostę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 | ||
83 | Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC, | |
84 | iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, | |
85 | QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, | |
86 | MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 | |
87 | ||
88 | Obsł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 | ||
94 | Ten pakiet zawiera bibliotekę współdzieloną MediaInfo. | |
95 | ||
35088f46 | 96 | %package devel |
644019c5 JB |
97 | Summary: Header files for MediaInfo library |
98 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MediaInfo | |
35088f46 AM |
99 | Group: Development/Libraries |
100 | Requires: %{name} = %{version}-%{release} | |
644019c5 JB |
101 | %{?with_curl:Requires: curl-devel} |
102 | %{?with_mms:Requires: libmms-devel} | |
98966854 | 103 | Requires: libstdc++-devel |
cfe7791d | 104 | Requires: libzen-devel >= %{libzen_ver} |
98966854 | 105 | Requires: tinyxml2-devel |
644019c5 | 106 | Requires: zlib-devel |
35088f46 AM |
107 | |
108 | %description devel | |
644019c5 JB |
109 | Header files for MediaInfo library. |
110 | ||
111 | %description devel -l pl.UTF-8 | |
112 | Pliki nagłówkowe biblioteki MediaInfo. | |
35088f46 AM |
113 | |
114 | %package static | |
644019c5 JB |
115 | Summary: Static MediaInfo library |
116 | Summary(pl.UTF-8): Statyczna biblioteka MediaInfo | |
35088f46 AM |
117 | Group: Development/Libraries |
118 | Requires: %{name}-devel = %{version}-%{release} | |
119 | ||
120 | %description static | |
644019c5 JB |
121 | Static MediaInfo library. |
122 | ||
123 | %description static -l pl.UTF-8 | |
124 | Statyczna biblioteka MediaInfo. | |
35088f46 | 125 | |
98966854 JB |
126 | %package apidocs |
127 | Summary: API documentation for MediaInfo library | |
128 | Summary(pl.UTF-8): Dokumentacja API biblioteki MediaInfo | |
129 | Group: Documentation | |
5862c8fe | 130 | BuildArch: noarch |
98966854 JB |
131 | |
132 | %description apidocs | |
133 | API documentation for MediaInfo library. | |
134 | ||
135 | %description apidocs -l pl.UTF-8 | |
136 | Dokumentacja API biblioteki MediaInfo. | |
137 | ||
35088f46 | 138 | %prep |
b7f14028 | 139 | %setup -q -n MediaInfoLib-%{version} |
23591644 | 140 | cp -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 |
143 | chmod 644 *.txt *.html Source/Doc/*.html |
144 | ||
145 | %build | |
35088f46 | 146 | cd 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 |
162 | cd ../../../Source/Doc |
163 | doxygen Doxyfile | |
98966854 | 164 | %endif |
35088f46 AM |
165 | |
166 | %install | |
167 | rm -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 |
176 | rm -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 |