[521] | 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 |
---|
[2389] | 17 | Version: 0.7.38 |
---|
[2334] | 18 | Release: 1%{?_dist_release} |
---|
[521] | 19 | Summary: Supplies technical and tag information about a video or audio file |
---|
| 20 | Summary(ja): ビデオとオーディオファイルの詳細な情報を提供するライブラリ |
---|
[1713] | 21 | Group: System Environment/Libraries |
---|
[521] | 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 |
---|
[2389] | 180 | * Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.38-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[2334] | 183 | * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.37-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
[1934] | 186 | * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.7.35-2 |
---|
| 187 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 188 | |
---|
[1797] | 189 | * Fri Sep 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.35-1 |
---|
| 190 | - new upstream release |
---|
| 191 | |
---|
[1713] | 192 | * Sat Aug 28 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.34-2 |
---|
| 193 | - fixed Group to System Environment/Libraries |
---|
| 194 | |
---|
[1463] | 195 | * Tue Jul 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.34-1 |
---|
| 196 | - new upstream release |
---|
| 197 | |
---|
[1229] | 198 | * Tue Jun 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.33-1 |
---|
| 199 | - new upstream release |
---|
| 200 | |
---|
[521] | 201 | * Thu Oct 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.23-1 |
---|
| 202 | - new upstream release |
---|
| 203 | |
---|
| 204 | * Mon Oct 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.22-1 |
---|
| 205 | - new upstream release |
---|
| 206 | |
---|
| 207 | * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7.19-1 |
---|
| 208 | - new upstream release |
---|
| 209 | - change spec file name to libmediainfo-vl.spec |
---|
| 210 | - add japanese summary and description |
---|
| 211 | - change group for -devel sub package to Development/Libraries |
---|
| 212 | - not to specify %{libzen_version} strictly |
---|
| 213 | - add configure option --disable-static |
---|
| 214 | - remove unpackaged file (.la) |
---|
| 215 | - add Packager tag |
---|
| 216 | |
---|
| 217 | * Tue Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.7.9-0 |
---|
| 218 | - See History.txt for more info and real dates |
---|
| 219 | - Previous packages made by Toni Graffy <toni@links2linux.de> |
---|