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