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