]>
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 | |
73d0aeab | 11 | %bcond_without apidocs # API documentation (doxygen generated) |
98966854 | 12 | %bcond_without static_libs # static library |
644019c5 | 13 | |
8306e061 | 14 | %define libzen_ver 0.4.37 |
35088f46 | 15 | Summary: Supplies technical and tag information about a video or audio file |
644019c5 | 16 | Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych |
35088f46 | 17 | Name: libmediainfo |
c80eedb6 | 18 | Version: 20.09 |
b7f14028 | 19 | Release: 1 |
e28db7e3 | 20 | License: BSD or Apache v2.0+ or LGPL v2.1+ or GPL v2+ or MPL v2.0+ |
35088f46 | 21 | Group: Libraries |
a48c2c4c | 22 | Source0: https://github.com/MediaArea/MediaInfoLib/archive/v%{version}/MediaInfoLib-%{version}.tar.gz |
c80eedb6 | 23 | # Source0-md5: eeddad91ac2cf201f9b46e9e1b861c0f |
98966854 | 24 | URL: https://github.com/MediaArea/MediaInfoLib |
644019c5 JB |
25 | BuildRequires: autoconf >= 2.50 |
26 | BuildRequires: automake >= 1:1.11 | |
27 | %{?with_curl:BuildRequires: curl-devel} | |
35088f46 | 28 | BuildRequires: doxygen |
644019c5 | 29 | %{?with_mms:BuildRequires: libmms-devel} |
35088f46 | 30 | BuildRequires: libstdc++-devel |
644019c5 | 31 | BuildRequires: libtool >= 2:1.5 |
cec8924b | 32 | BuildRequires: libzen-devel >= %{libzen_ver} |
35088f46 | 33 | BuildRequires: pkgconfig |
807d40e3 | 34 | BuildRequires: rpmbuild(macros) >= 1.752 |
98966854 JB |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: tinyxml2-devel | |
37 | BuildRequires: xz | |
35088f46 | 38 | BuildRequires: zlib-devel |
cec8924b | 39 | Requires: libzen >= %{libzen_ver} |
35088f46 AM |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | MediaInfo supplies technical and tag information about a video or | |
44 | audio file. | |
45 | ||
46 | What information can I get from MediaInfo? | |
47 | - General: title, author, director, album, track number, date, | |
48 | duration... | |
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 | |
53 | ||
644019c5 JB |
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 | |
35088f46 | 58 | |
644019c5 | 59 | Supported formats/containers: |
35088f46 AM |
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 | |
64 | ||
65 | This package contains the shared library for MediaInfo. | |
66 | ||
644019c5 JB |
67 | %description -l pl.UTF-8 |
68 | MediaInfo udostępnia informacje techniczne oraz znaczniki dla plików | |
69 | wideo i dźwiękowych. | |
70 | ||
71 | Dostępne są informacje: | |
72 | - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas | |
73 | trwania... | |
74 | - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo... | |
75 | - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język, | |
76 | pasmo... | |
77 | - tekst: język napisów | |
78 | - książki: liczba rozdziałów, ich lista | |
79 | ||
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 | |
84 | ||
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 | |
90 | ||
91 | Ten pakiet zawiera bibliotekę współdzieloną MediaInfo. | |
92 | ||
35088f46 | 93 | %package devel |
644019c5 JB |
94 | Summary: Header files for MediaInfo library |
95 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MediaInfo | |
35088f46 AM |
96 | Group: Development/Libraries |
97 | Requires: %{name} = %{version}-%{release} | |
644019c5 JB |
98 | %{?with_curl:Requires: curl-devel} |
99 | %{?with_mms:Requires: libmms-devel} | |
98966854 | 100 | Requires: libstdc++-devel |
cfe7791d | 101 | Requires: libzen-devel >= %{libzen_ver} |
98966854 | 102 | Requires: tinyxml2-devel |
644019c5 | 103 | Requires: zlib-devel |
35088f46 AM |
104 | |
105 | %description devel | |
644019c5 JB |
106 | Header files for MediaInfo library. |
107 | ||
108 | %description devel -l pl.UTF-8 | |
109 | Pliki nagłówkowe biblioteki MediaInfo. | |
35088f46 AM |
110 | |
111 | %package static | |
644019c5 JB |
112 | Summary: Static MediaInfo library |
113 | Summary(pl.UTF-8): Statyczna biblioteka MediaInfo | |
35088f46 AM |
114 | Group: Development/Libraries |
115 | Requires: %{name}-devel = %{version}-%{release} | |
116 | ||
117 | %description static | |
644019c5 JB |
118 | Static MediaInfo library. |
119 | ||
120 | %description static -l pl.UTF-8 | |
121 | Statyczna biblioteka MediaInfo. | |
35088f46 | 122 | |
98966854 JB |
123 | %package apidocs |
124 | Summary: API documentation for MediaInfo library | |
125 | Summary(pl.UTF-8): Dokumentacja API biblioteki MediaInfo | |
126 | Group: Documentation | |
807d40e3 | 127 | %{?noarchpackage} |
98966854 JB |
128 | |
129 | %description apidocs | |
130 | API documentation for MediaInfo library. | |
131 | ||
132 | %description apidocs -l pl.UTF-8 | |
133 | Dokumentacja API biblioteki MediaInfo. | |
134 | ||
35088f46 | 135 | %prep |
b7f14028 | 136 | %setup -q -n MediaInfoLib-%{version} |
23591644 | 137 | cp -p Release/ReadMe_DLL_Linux.txt ReadMe.txt |
98966854 | 138 | %{__mv} History_DLL.txt History.txt |
191438ad | 139 | %undos *.txt *.html Source/Doc/*.html |
35088f46 AM |
140 | chmod 644 *.txt *.html Source/Doc/*.html |
141 | ||
142 | %build | |
35088f46 | 143 | cd Project/GNU/Library |
644019c5 JB |
144 | %{__libtoolize} |
145 | %{__aclocal} | |
146 | %{__autoconf} | |
147 | %{__automake} | |
148 | %configure \ | |
98966854 | 149 | %{?with_static_libs:--enable-static} \ |
644019c5 | 150 | %{?with_curl:--with-libcurl} \ |
98966854 JB |
151 | %{?with_mms:--with-libmms} \ |
152 | --with-libtinyxml2 | |
35088f46 | 153 | |
644019c5 JB |
154 | %{__make} clean |
155 | %{__make} | |
98966854 JB |
156 | |
157 | %if %{with apidocs} | |
644019c5 JB |
158 | cd ../../../Source/Doc |
159 | doxygen Doxyfile | |
98966854 | 160 | %endif |
35088f46 AM |
161 | |
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
644019c5 | 165 | %{__make} -C Project/GNU/Library install \ |
35088f46 AM |
166 | DESTDIR=$RPM_BUILD_ROOT |
167 | ||
a48c2c4c JB |
168 | # obsoleted by pkg-config |
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmediainfo.la | |
170 | ||
35088f46 AM |
171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
644019c5 JB |
174 | %post -p /sbin/ldconfig |
175 | %postun -p /sbin/ldconfig | |
35088f46 AM |
176 | |
177 | %files | |
178 | %defattr(644,root,root,755) | |
e28db7e3 | 179 | %doc Changes.txt History.txt License.html README.md ReadMe.txt |
644019c5 JB |
180 | %attr(755,root,root) %{_libdir}/libmediainfo.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libmediainfo.so.0 | |
35088f46 AM |
182 | |
183 | %files devel | |
184 | %defattr(644,root,root,755) | |
644019c5 | 185 | %attr(755,root,root) %{_libdir}/libmediainfo.so |
35088f46 AM |
186 | %{_includedir}/MediaInfo |
187 | %{_includedir}/MediaInfoDLL | |
644019c5 | 188 | %{_pkgconfigdir}/libmediainfo.pc |
35088f46 | 189 | |
98966854 | 190 | %if %{with static_libs} |
35088f46 AM |
191 | %files static |
192 | %defattr(644,root,root,755) | |
193 | %{_libdir}/libmediainfo.a | |
98966854 JB |
194 | %endif |
195 | ||
196 | %if %{with apidocs} | |
197 | %files apidocs | |
198 | %defattr(644,root,root,755) | |
199 | # Documentation.html expects Doc/index.html | |
200 | %doc Source/Doc/Documentation.html Doc Source/Example/HowToUse* | |
201 | %endif |