libmediainfo-vl.spec 7.7 KB

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