]>
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 | # | |
1f6e2b80 | 7 | %define libzen_ver 0.4.29 |
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 |
1f6e2b80 | 12 | Version: 0.7.67 |
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 |
1f6e2b80 AM |
17 | # Source0-md5: c6372a176f45a9971740b46c652f65eb |
18 | Patch0: %{name}-build.patch | |
59857f42 | 19 | URL: http://mediainfo.sourceforge.net/ |
644019c5 JB |
20 | BuildRequires: autoconf >= 2.50 |
21 | BuildRequires: automake >= 1:1.11 | |
22 | %{?with_curl:BuildRequires: curl-devel} | |
35088f46 | 23 | BuildRequires: doxygen |
644019c5 | 24 | %{?with_mms:BuildRequires: libmms-devel} |
35088f46 | 25 | BuildRequires: libstdc++-devel |
644019c5 | 26 | BuildRequires: libtool >= 2:1.5 |
cec8924b | 27 | BuildRequires: libzen-devel >= %{libzen_ver} |
35088f46 | 28 | BuildRequires: pkgconfig |
937e23c4 JB |
29 | BuildRequires: rpmbuild(macros) >= 1.566 |
30 | BuildRequires: sed >= 4.0 | |
35088f46 | 31 | BuildRequires: zlib-devel |
cec8924b | 32 | Requires: libzen >= %{libzen_ver} |
35088f46 AM |
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 | ||
644019c5 JB |
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 | |
35088f46 | 51 | |
644019c5 | 52 | Supported formats/containers: |
35088f46 AM |
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 | ||
644019c5 JB |
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 | ||
35088f46 | 86 | %package devel |
644019c5 JB |
87 | Summary: Header files for MediaInfo library |
88 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MediaInfo | |
35088f46 AM |
89 | Group: Development/Libraries |
90 | Requires: %{name} = %{version}-%{release} | |
644019c5 JB |
91 | %{?with_curl:Requires: curl-devel} |
92 | %{?with_mms:Requires: libmms-devel} | |
cfe7791d | 93 | Requires: libzen-devel >= %{libzen_ver} |
644019c5 | 94 | Requires: zlib-devel |
35088f46 AM |
95 | |
96 | %description devel | |
644019c5 JB |
97 | Header files for MediaInfo library. |
98 | ||
99 | %description devel -l pl.UTF-8 | |
100 | Pliki nagłówkowe biblioteki MediaInfo. | |
35088f46 AM |
101 | |
102 | %package static | |
644019c5 JB |
103 | Summary: Static MediaInfo library |
104 | Summary(pl.UTF-8): Statyczna biblioteka MediaInfo | |
35088f46 AM |
105 | Group: Development/Libraries |
106 | Requires: %{name}-devel = %{version}-%{release} | |
107 | ||
108 | %description static | |
644019c5 JB |
109 | Static MediaInfo library. |
110 | ||
111 | %description static -l pl.UTF-8 | |
112 | Statyczna biblioteka MediaInfo. | |
35088f46 AM |
113 | |
114 | %prep | |
115 | %setup -q -n MediaInfoLib | |
1f6e2b80 | 116 | %patch0 -p1 |
644019c5 JB |
117 | cp Release/ReadMe_DLL_Linux.txt ReadMe.txt |
118 | mv History_DLL.txt History.txt | |
191438ad | 119 | %undos *.txt *.html Source/Doc/*.html |
35088f46 AM |
120 | chmod 644 *.txt *.html Source/Doc/*.html |
121 | ||
122 | %build | |
35088f46 | 123 | cd Project/GNU/Library |
644019c5 JB |
124 | %{__libtoolize} |
125 | %{__aclocal} | |
126 | %{__autoconf} | |
127 | %{__automake} | |
128 | %configure \ | |
35088f46 | 129 | --enable-shared \ |
644019c5 JB |
130 | %{?with_curl:--with-libcurl} \ |
131 | %{?with_mms:--with-libmms} | |
35088f46 | 132 | |
644019c5 JB |
133 | %{__make} clean |
134 | %{__make} | |
135 | cd ../../../Source/Doc | |
136 | doxygen Doxyfile | |
35088f46 AM |
137 | |
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
644019c5 | 141 | %{__make} -C Project/GNU/Library install \ |
35088f46 AM |
142 | DESTDIR=$RPM_BUILD_ROOT |
143 | ||
144 | # MediaInfoDLL headers and MediaInfo-config | |
145 | for i in MediaInfo MediaInfoDLL; do | |
644019c5 | 146 | install -d $RPM_BUILD_ROOT%{_includedir}/$i |
35088f46 AM |
147 | install -m 644 Source/$i/*.h $RPM_BUILD_ROOT%{_includedir}/$i |
148 | done | |
149 | ||
644019c5 JB |
150 | %{__sed} -i -e 's|Version: .*|Version: %{version}|g' Project/GNU/Library/libmediainfo.pc |
151 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} | |
152 | install Project/GNU/Library/libmediainfo.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
35088f46 AM |
153 | |
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
644019c5 JB |
157 | %post -p /sbin/ldconfig |
158 | %postun -p /sbin/ldconfig | |
35088f46 AM |
159 | |
160 | %files | |
161 | %defattr(644,root,root,755) | |
162 | %doc History.txt License.html ReadMe.txt | |
644019c5 JB |
163 | %attr(755,root,root) %{_libdir}/libmediainfo.so.*.*.* |
164 | %attr(755,root,root) %ghost %{_libdir}/libmediainfo.so.0 | |
35088f46 AM |
165 | |
166 | %files devel | |
167 | %defattr(644,root,root,755) | |
644019c5 JB |
168 | # Documentation.html expects Doc/index.html |
169 | %doc Changes.txt Source/Doc/Documentation.html Doc Source/Example/HowToUse* | |
170 | %attr(755,root,root) %{_libdir}/libmediainfo.so | |
171 | %{_libdir}/libmediainfo.la | |
35088f46 AM |
172 | %{_includedir}/MediaInfo |
173 | %{_includedir}/MediaInfoDLL | |
644019c5 | 174 | %{_pkgconfigdir}/libmediainfo.pc |
35088f46 AM |
175 | |
176 | %files static | |
177 | %defattr(644,root,root,755) | |
178 | %{_libdir}/libmediainfo.a |