]>
Commit | Line | Data |
---|---|---|
5ed51bfe | 1 | %define libzen_ver 0.4.17 |
35088f46 AM |
2 | Summary: Supplies technical and tag information about a video or audio file |
3 | Name: libmediainfo | |
5ed51bfe | 4 | Version: 0.7.39 |
d40f267c | 5 | Release: 2 |
35088f46 AM |
6 | License: GPL |
7 | Group: Libraries | |
8 | URL: http://mediainfo.sourceforge.net/ | |
9 | Source0: http://downloads.sourceforge.net/project/mediainfo/source/libmediainfo/%{version}/%{name}_%{version}.tar.bz2 | |
5ed51bfe | 10 | # Source0-md5: 111bb16f4515c5e58235272650ab4b35 |
d40f267c | 11 | Patch0: %{name}-tinyxml.patch |
c37113b4 | 12 | BuildRequires: autoconf |
13 | BuildRequires: automake | |
35088f46 AM |
14 | BuildRequires: dos2unix |
15 | BuildRequires: doxygen | |
16 | BuildRequires: libstdc++-devel | |
c37113b4 | 17 | BuildRequires: libtool |
cec8924b | 18 | BuildRequires: libzen-devel >= %{libzen_ver} |
35088f46 | 19 | BuildRequires: pkgconfig |
d40f267c | 20 | BuildRequires: tinyxml-devel |
35088f46 | 21 | BuildRequires: zlib-devel |
cec8924b | 22 | Requires: libzen >= %{libzen_ver} |
35088f46 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | MediaInfo supplies technical and tag information about a video or | |
27 | audio file. | |
28 | ||
29 | What information can I get from MediaInfo? | |
30 | - General: title, author, director, album, track number, date, | |
31 | duration... | |
32 | - Video: codec, aspect, fps, bitrate... | |
33 | - Audio: codec, sample rate, channels, language, bitrate... | |
34 | - Text: language of subtitle | |
35 | - Chapters: number of chapters, list of chapters | |
36 | ||
37 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, MPEG1, | |
38 | MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, RealVideo, | |
39 | RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, VOB, DVD, WMA, | |
40 | VMW, ASF, 3GP, 3GPP, 3GP2 | |
41 | ||
42 | What format (container) does MediaInfo support? | |
43 | - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, | |
44 | MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) | |
45 | - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF | |
46 | - Subtitles: SRT, SSA, ASS, SAMI | |
47 | ||
48 | This package contains the shared library for MediaInfo. | |
49 | ||
50 | %package devel | |
51 | Summary: Include files and mandatory libraries for development | |
52 | Group: Development/Libraries | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | Requires: libzen-devel >= 0.4.9 | |
55 | ||
56 | %description devel | |
57 | Include files and mandatory libraries for development. | |
58 | ||
59 | %package static | |
60 | Summary: Static libmediainfo library | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static libmediainfo library. | |
66 | ||
67 | %prep | |
68 | %setup -q -n MediaInfoLib | |
d40f267c | 69 | %patch0 -p1 |
35088f46 AM |
70 | cp Release/ReadMe_DLL_Linux.txt ReadMe.txt |
71 | mv History_DLL.txt History.txt | |
72 | dos2unix *.txt *.html Source/Doc/*.html | |
73 | chmod 644 *.txt *.html Source/Doc/*.html | |
74 | ||
75 | %build | |
76 | export CFLAGS="%{rpmcflags}" | |
77 | export CPPFLAGS="%{rpmcppflags}" | |
78 | export CXXFLAGS="%{rpmcxxflags}" | |
79 | ||
80 | cd Source/Doc | |
81 | doxygen Doxyfile | |
82 | cd ../.. | |
83 | ||
84 | cp Source/Doc/*.html ./ | |
85 | ||
86 | cd Project/GNU/Library | |
87 | chmod +x autogen | |
88 | ./autogen | |
89 | %configure \ | |
90 | --enable-shared \ | |
cec8924b AM |
91 | --with-libcurl=no \ |
92 | --with-libmms=no | |
35088f46 AM |
93 | |
94 | %{__make} clean | |
95 | %{__make} | |
96 | cd ../../.. | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} -C Project/GNU/Library \ | |
102 | install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | # MediaInfoDLL headers and MediaInfo-config | |
106 | for i in MediaInfo MediaInfoDLL; do | |
107 | install -dm 755 $RPM_BUILD_ROOT%{_includedir}/$i | |
108 | install -m 644 Source/$i/*.h $RPM_BUILD_ROOT%{_includedir}/$i | |
109 | done | |
110 | ||
111 | %{__sed} -i -e 's|Version: |Version: %{version}|g' Project/GNU/Library/libmediainfo.pc | |
112 | install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pkgconfig | |
113 | install Project/GNU/Library/libmediainfo.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
123 | %doc History.txt License.html ReadMe.txt | |
124 | %attr(755,root,root) %{_libdir}/libmediainfo.so.* | |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %doc Changes.txt Documentation.html Doc/* Source/Example/HowToUse* | |
129 | %{_includedir}/MediaInfo | |
130 | %{_includedir}/MediaInfoDLL | |
131 | %{_libdir}/libmediainfo.la | |
132 | %attr(755,root,root) %{_libdir}/libmediainfo.so | |
133 | %{_pkgconfigdir}/*.pc | |
134 | ||
135 | %files static | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libmediainfo.a |