]>
Commit | Line | Data |
---|---|---|
644019c5 JB |
1 | # TODO: system [lib]tinyxml2 when released (http://www.grinninglizard.com/tinyxml2/index.html) |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without curl # cURL support | |
5 | %bcond_without mms # MMS support | |
6 | # | |
cc50e20c | 7 | %define libzen_ver 0.4.28 |
644019c5 | 8 | |
35088f46 | 9 | Summary: Supplies technical and tag information about a video or audio file |
644019c5 | 10 | Summary(pl.UTF-8): Informacje techniczne i znaczniki dla plików wideo i dźwiękowych |
35088f46 | 11 | Name: libmediainfo |
f472f8cc | 12 | Version: 0.7.61 |
cc50e20c | 13 | Release: 1 |
644019c5 | 14 | License: LGPL v2+ |
35088f46 | 15 | Group: Libraries |
644019c5 | 16 | Source0: http://downloads.sourceforge.net/mediainfo/%{name}_%{version}.tar.bz2 |
f472f8cc | 17 | # Source0-md5: 371519c1c24e4de84448d6624fc41aa8 |
59857f42 | 18 | URL: http://mediainfo.sourceforge.net/ |
644019c5 JB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake >= 1:1.11 | |
21 | %{?with_curl:BuildRequires: curl-devel} | |
35088f46 | 22 | BuildRequires: doxygen |
644019c5 | 23 | %{?with_mms:BuildRequires: libmms-devel} |
35088f46 | 24 | BuildRequires: libstdc++-devel |
644019c5 | 25 | BuildRequires: libtool >= 2:1.5 |
cec8924b | 26 | BuildRequires: libzen-devel >= %{libzen_ver} |
35088f46 | 27 | BuildRequires: pkgconfig |
937e23c4 JB |
28 | BuildRequires: rpmbuild(macros) >= 1.566 |
29 | BuildRequires: sed >= 4.0 | |
35088f46 | 30 | BuildRequires: zlib-devel |
cec8924b | 31 | Requires: libzen >= %{libzen_ver} |
35088f46 AM |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | MediaInfo supplies technical and tag information about a video or | |
36 | audio file. | |
37 | ||
38 | What information can I get from MediaInfo? | |
39 | - General: title, author, director, album, track number, date, | |
40 | duration... | |
41 | - Video: codec, aspect, fps, bitrate... | |
42 | - Audio: codec, sample rate, channels, language, bitrate... | |
43 | - Text: language of subtitle | |
44 | - Chapters: number of chapters, list of chapters | |
45 | ||
644019c5 JB |
46 | Supported files: DivX, XviD, H263, H.263, H264, x264, ASP, AVC, |
47 | iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, | |
48 | QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, | |
49 | MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 | |
35088f46 | 50 | |
644019c5 | 51 | Supported formats/containers: |
35088f46 AM |
52 | - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, |
53 | MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) | |
54 | - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF | |
55 | - Subtitles: SRT, SSA, ASS, SAMI | |
56 | ||
57 | This package contains the shared library for MediaInfo. | |
58 | ||
644019c5 JB |
59 | %description -l pl.UTF-8 |
60 | MediaInfo udostępnia informacje techniczne oraz znaczniki dla plików | |
61 | wideo i dźwiękowych. | |
62 | ||
63 | Dostępne są informacje: | |
64 | - ogólne: tytuł, autor, reżyser, album, numer ścieżki, data, czas | |
65 | trwania... | |
66 | - wideo: kodek, proporcje, liczba klatek na sekundę, pasmo... | |
67 | - dźwięk: kodek, częstotliwość próbkowania, liczba kanałów, język, | |
68 | pasmo... | |
69 | - tekst: język napisów | |
70 | - książki: liczba rozdziałów, ich lista | |
71 | ||
72 | Obsługiwane pliki: DivX, XviD, H263, H.263, H264, x264, ASP, AVC, | |
73 | iTunes, MPEG-1, MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, | |
74 | QuickTime, RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, | |
75 | MSMPEG4v3, VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 | |
76 | ||
77 | Obsługiwane formaty/kontenery: | |
78 | - wideo: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, | |
79 | MPEG-4, DVD (VOB) (kodeki: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) | |
80 | - dźwięk: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF | |
81 | - napisy: SRT, SSA, ASS, SAMI | |
82 | ||
83 | Ten pakiet zawiera bibliotekę współdzieloną MediaInfo. | |
84 | ||
35088f46 | 85 | %package devel |
644019c5 JB |
86 | Summary: Header files for MediaInfo library |
87 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MediaInfo | |
35088f46 AM |
88 | Group: Development/Libraries |
89 | Requires: %{name} = %{version}-%{release} | |
644019c5 JB |
90 | %{?with_curl:Requires: curl-devel} |
91 | %{?with_mms:Requires: libmms-devel} | |
cfe7791d | 92 | Requires: libzen-devel >= %{libzen_ver} |
644019c5 | 93 | Requires: zlib-devel |
35088f46 AM |
94 | |
95 | %description devel | |
644019c5 JB |
96 | Header files for MediaInfo library. |
97 | ||
98 | %description devel -l pl.UTF-8 | |
99 | Pliki nagłówkowe biblioteki MediaInfo. | |
35088f46 AM |
100 | |
101 | %package static | |
644019c5 JB |
102 | Summary: Static MediaInfo library |
103 | Summary(pl.UTF-8): Statyczna biblioteka MediaInfo | |
35088f46 AM |
104 | Group: Development/Libraries |
105 | Requires: %{name}-devel = %{version}-%{release} | |
106 | ||
107 | %description static | |
644019c5 JB |
108 | Static MediaInfo library. |
109 | ||
110 | %description static -l pl.UTF-8 | |
111 | Statyczna biblioteka MediaInfo. | |
35088f46 AM |
112 | |
113 | %prep | |
114 | %setup -q -n MediaInfoLib | |
644019c5 JB |
115 | cp Release/ReadMe_DLL_Linux.txt ReadMe.txt |
116 | mv History_DLL.txt History.txt | |
191438ad | 117 | %undos *.txt *.html Source/Doc/*.html |
35088f46 AM |
118 | chmod 644 *.txt *.html Source/Doc/*.html |
119 | ||
120 | %build | |
35088f46 | 121 | cd Project/GNU/Library |
644019c5 JB |
122 | %{__libtoolize} |
123 | %{__aclocal} | |
124 | %{__autoconf} | |
125 | %{__automake} | |
126 | %configure \ | |
35088f46 | 127 | --enable-shared \ |
644019c5 JB |
128 | %{?with_curl:--with-libcurl} \ |
129 | %{?with_mms:--with-libmms} | |
35088f46 | 130 | |
644019c5 JB |
131 | %{__make} clean |
132 | %{__make} | |
133 | cd ../../../Source/Doc | |
134 | doxygen Doxyfile | |
35088f46 AM |
135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
644019c5 | 139 | %{__make} -C Project/GNU/Library install \ |
35088f46 AM |
140 | DESTDIR=$RPM_BUILD_ROOT |
141 | ||
142 | # MediaInfoDLL headers and MediaInfo-config | |
143 | for i in MediaInfo MediaInfoDLL; do | |
644019c5 | 144 | install -d $RPM_BUILD_ROOT%{_includedir}/$i |
35088f46 AM |
145 | install -m 644 Source/$i/*.h $RPM_BUILD_ROOT%{_includedir}/$i |
146 | done | |
147 | ||
644019c5 JB |
148 | %{__sed} -i -e 's|Version: .*|Version: %{version}|g' Project/GNU/Library/libmediainfo.pc |
149 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} | |
150 | install Project/GNU/Library/libmediainfo.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
35088f46 AM |
151 | |
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
644019c5 JB |
155 | %post -p /sbin/ldconfig |
156 | %postun -p /sbin/ldconfig | |
35088f46 AM |
157 | |
158 | %files | |
159 | %defattr(644,root,root,755) | |
160 | %doc History.txt License.html ReadMe.txt | |
644019c5 JB |
161 | %attr(755,root,root) %{_libdir}/libmediainfo.so.*.*.* |
162 | %attr(755,root,root) %ghost %{_libdir}/libmediainfo.so.0 | |
35088f46 AM |
163 | |
164 | %files devel | |
165 | %defattr(644,root,root,755) | |
644019c5 JB |
166 | # Documentation.html expects Doc/index.html |
167 | %doc Changes.txt Source/Doc/Documentation.html Doc Source/Example/HowToUse* | |
168 | %attr(755,root,root) %{_libdir}/libmediainfo.so | |
169 | %{_libdir}/libmediainfo.la | |
35088f46 AM |
170 | %{_includedir}/MediaInfo |
171 | %{_includedir}/MediaInfoDLL | |
644019c5 | 172 | %{_pkgconfigdir}/libmediainfo.pc |
35088f46 AM |
173 | |
174 | %files static | |
175 | %defattr(644,root,root,755) | |
176 | %{_libdir}/libmediainfo.a |