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