1 | # Copyright (c) 2007-2008 oc2pus |
---|
2 | # This file and all modifications and additions to the pristine |
---|
3 | # package are under the same license as the package itself. |
---|
4 | # |
---|
5 | # Please submit bugfixes or comments to toni@links2linux.de |
---|
6 | # |
---|
7 | # *** This spec is modified for Vine Linux *** |
---|
8 | |
---|
9 | # norootforbuild |
---|
10 | |
---|
11 | %define _prefix /usr |
---|
12 | # %define _SO_nr 0 |
---|
13 | # %define libzen_version 0.3.6 |
---|
14 | # %define libzen_SO_nr 0 |
---|
15 | |
---|
16 | Name: libmediainfo |
---|
17 | Version: 0.7.52 |
---|
18 | Release: 1%{?_dist_release} |
---|
19 | Summary: Supplies technical and tag information about a video or audio file |
---|
20 | Summary(ja): ビデオとオーディオファイルの詳細な情報を提供するライブラリ |
---|
21 | Group: System Environment/Libraries |
---|
22 | License: GPL |
---|
23 | URL: http://mediainfo.sourceforge.net/ |
---|
24 | Source0: libmediainfo_%{version}.tar.bz2 |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
26 | ## BuildRequires: dos2unix |
---|
27 | BuildRequires: nkf |
---|
28 | |
---|
29 | ## NEED GCC3 |
---|
30 | BuildRequires: gcc-c++ |
---|
31 | BuildRequires: libzen-devel |
---|
32 | BuildRequires: pkgconfig |
---|
33 | BuildRequires: zlib-devel |
---|
34 | BuildRequires: doxygen |
---|
35 | Requires: libzen |
---|
36 | |
---|
37 | Packager: babasaki |
---|
38 | |
---|
39 | %description |
---|
40 | MediaInfo supplies technical and tag information about a video or |
---|
41 | audio file. |
---|
42 | |
---|
43 | What information can I get from MediaInfo? |
---|
44 | * General: title, author, director, album, track number, date, duration... |
---|
45 | * Video: codec, aspect, fps, bitrate... |
---|
46 | * Audio: codec, sample rate, channels, language, bitrate... |
---|
47 | * Text: language of subtitle |
---|
48 | * Chapters: number of chapters, list of chapters |
---|
49 | |
---|
50 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, |
---|
51 | MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, |
---|
52 | RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, |
---|
53 | VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 |
---|
54 | |
---|
55 | What format (container) does MediaInfo support? |
---|
56 | * Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
---|
57 | MPEG-2, MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, |
---|
58 | H.264, AVC...) |
---|
59 | * Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF |
---|
60 | * Subtitles: SRT, SSA, ASS, SAMI |
---|
61 | |
---|
62 | This package contains the shared library for MediaInfo(-gui). |
---|
63 | |
---|
64 | %description -l ja |
---|
65 | MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。 |
---|
66 | |
---|
67 | MediaInfo で確認できる情報: |
---|
68 | * 全般: タイトル、作者、ディレクター、アルバム、トラック番号、 |
---|
69 | 日付、時間... |
---|
70 | * ビデオ: codec、アスペクト比、フレームレート、ビットレート... |
---|
71 | * オーディオ: codec、サンプリングレート、チャンネル数、言語、 |
---|
72 | ビットレート... |
---|
73 | * テキスト: 字幕の言語 |
---|
74 | * チャプター: チャプター数、チャプターの一覧 |
---|
75 | |
---|
76 | DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, |
---|
77 | MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, |
---|
78 | RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, |
---|
79 | VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2 |
---|
80 | |
---|
81 | MediaInfo がサポートするフォーマット: |
---|
82 | * ビデオ: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, |
---|
83 | MPEG-2, MPEG-4, DVD (VOB) (Codec: DivX, XviD, MSMPEG4, ASP, |
---|
84 | H.264, AVC...) |
---|
85 | * オーディオ: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF |
---|
86 | * 字幕: SRT, SSA, ASS, SAMI |
---|
87 | |
---|
88 | このパッケージは Mediainfo(-gui) 用の共有ライブラリを含んでい |
---|
89 | ます。 |
---|
90 | |
---|
91 | |
---|
92 | %package -n libmediainfo-devel |
---|
93 | Summary: Include files and mandatory librariesfor development |
---|
94 | Summary(ja): libmediainfo の開発用のヘッダとライブラリファイル |
---|
95 | Group: Development/Libraries |
---|
96 | Requires: libmediainfo = %{version} |
---|
97 | #Requires: libzen = %{libzen_version} |
---|
98 | Requires: libzen |
---|
99 | |
---|
100 | %description -n libmediainfo-devel |
---|
101 | Include files and mandatory librariesfor development. |
---|
102 | |
---|
103 | %description -n libmediainfo-devel -l ja |
---|
104 | libmediainfo の開発用のヘッダとライブラリファイルです。 |
---|
105 | |
---|
106 | %prep |
---|
107 | %setup -q -n MediaInfoLib |
---|
108 | cp Release/ReadMe_DLL_Linux.txt ReadMe.txt |
---|
109 | mv History_DLL.txt History.txt |
---|
110 | ## dos2unix *.txt *.html Source/Doc/*.html |
---|
111 | nkf --unix --overwrite *.txt *.html Source/Doc/*.html |
---|
112 | |
---|
113 | %__chmod 644 *.txt *.html Source/Doc/*.html |
---|
114 | |
---|
115 | %build |
---|
116 | export CFLAGS="$RPM_OPT_FLAGS" |
---|
117 | export CPPFLAGS="$RPM_OPT_FLAGS" |
---|
118 | export CXXFLAGS="$RPM_OPT_FLAGS" |
---|
119 | |
---|
120 | pushd Source/Doc/ |
---|
121 | doxygen Doxyfile |
---|
122 | popd |
---|
123 | cp Source/Doc/*.html ./ |
---|
124 | |
---|
125 | pushd Project/GNU/Library |
---|
126 | %__chmod +x autogen |
---|
127 | ./autogen |
---|
128 | %configure --enable-shared --disable-static |
---|
129 | |
---|
130 | %__make clean |
---|
131 | %__make %{?jobs:-j%{jobs}} |
---|
132 | popd |
---|
133 | |
---|
134 | %install |
---|
135 | pushd Project/GNU/Library/ |
---|
136 | %__make install-strip DESTDIR=%{buildroot} |
---|
137 | popd |
---|
138 | |
---|
139 | # MediaInfoDLL headers and MediaInfo-config |
---|
140 | for i in MediaInfo MediaInfoDLL; do |
---|
141 | %__install -dm 755 %{buildroot}%{_includedir}/$i |
---|
142 | %__install -m 644 Source/$i/*.h \ |
---|
143 | %{buildroot}%{_includedir}/$i |
---|
144 | done |
---|
145 | |
---|
146 | %__sed -i -e 's|Version: |Version: %{version}|g' \ |
---|
147 | Project/GNU/Library/libmediainfo.pc |
---|
148 | %__install -dm 755 %{buildroot}%{_libdir}/pkgconfig |
---|
149 | %__install -m 644 Project/GNU/Library/libmediainfo.pc \ |
---|
150 | %{buildroot}%{_libdir}/pkgconfig |
---|
151 | |
---|
152 | # remove unpackaged files |
---|
153 | rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.la |
---|
154 | |
---|
155 | %clean |
---|
156 | [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" |
---|
157 | |
---|
158 | %post -n libmediainfo -p /sbin/ldconfig |
---|
159 | |
---|
160 | %postun -n libmediainfo -p /sbin/ldconfig |
---|
161 | |
---|
162 | %files |
---|
163 | %defattr(-,root,root,-) |
---|
164 | %doc History.txt License.html ReadMe.txt |
---|
165 | %{_libdir}/libmediainfo.so.* |
---|
166 | |
---|
167 | %files -n libmediainfo-devel |
---|
168 | %defattr(-,root,root,-) |
---|
169 | %doc Changes.txt Documentation.html Doc/* |
---|
170 | %dir %{_includedir}/MediaInfo |
---|
171 | %{_includedir}/MediaInfo/* |
---|
172 | %dir %{_includedir}/MediaInfoDLL |
---|
173 | %{_includedir}/MediaInfoDLL/* |
---|
174 | #%{_libdir}/libmediainfo.a |
---|
175 | #%{_libdir}/libmediainfo.la |
---|
176 | %{_libdir}/libmediainfo.so |
---|
177 | %{_libdir}/pkgconfig/*.pc |
---|
178 | |
---|
179 | %changelog |
---|
180 | * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.52-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Tue Sep 27 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.50-1 |
---|
184 | - new upstream release |
---|
185 | |
---|
186 | * Fri Jul 15 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.47-1 |
---|
187 | - new upstream release |
---|
188 | |
---|
189 | * Wed Jan 26 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.41-1 |
---|
190 | - new upstream release |
---|
191 | |
---|
192 | * Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.38-1 |
---|
193 | - new upstream release |
---|
194 | |
---|
195 | * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.37-1 |
---|
196 | - new upstream release |
---|
197 | |
---|
198 | * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.7.35-2 |
---|
199 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
200 | |
---|
201 | * Fri Sep 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.35-1 |
---|
202 | - new upstream release |
---|
203 | |
---|
204 | * Sat Aug 28 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.34-2 |
---|
205 | - fixed Group to System Environment/Libraries |
---|
206 | |
---|
207 | * Tue Jul 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.34-1 |
---|
208 | - new upstream release |
---|
209 | |
---|
210 | * Tue Jun 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.33-1 |
---|
211 | - new upstream release |
---|
212 | |
---|
213 | * Thu Oct 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.23-1 |
---|
214 | - new upstream release |
---|
215 | |
---|
216 | * Mon Oct 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.22-1 |
---|
217 | - new upstream release |
---|
218 | |
---|
219 | * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7.19-1 |
---|
220 | - new upstream release |
---|
221 | - change spec file name to libmediainfo-vl.spec |
---|
222 | - add japanese summary and description |
---|
223 | - change group for -devel sub package to Development/Libraries |
---|
224 | - not to specify %{libzen_version} strictly |
---|
225 | - add configure option --disable-static |
---|
226 | - remove unpackaged file (.la) |
---|
227 | - add Packager tag |
---|
228 | |
---|
229 | * Tue Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.7.9-0 |
---|
230 | - See History.txt for more info and real dates |
---|
231 | - Previous packages made by Toni Graffy <toni@links2linux.de> |
---|