mediainfo-vl.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. ##
  10. %define _prefix /usr
  11. Name: mediainfo
  12. Version: 0.7.38
  13. Release: 1%{?_dist_release}
  14. Summary: Supplies technical and tag information about a video or audio file
  15. Group: Applications/Multimedia
  16. License: GPL
  17. URL: http://mediainfo.sourceforge.net/
  18. Source0: mediainfo_%{version}.tar.bz2
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. # BuildRequires: dos2unix
  21. BuildRequires: nkf
  22. ## NEED GCC3
  23. BuildRequires: gcc-c++
  24. BuildRequires: libmediainfo-devel
  25. BuildRequires: libzen-devel
  26. BuildRequires: pkgconfig
  27. BuildRequires: wx-gtk2-devel
  28. BuildRequires: zlib-devel
  29. %if 0%{?suse_version}
  30. BuildRequires: update-desktop-files
  31. %endif
  32. Requires: libzen
  33. Requires: libmediainfo
  34. Packager: babasaki
  35. %description
  36. MediaInfo supplies technical and tag information about a video or
  37. audio file.
  38. What information can I get from MediaInfo?
  39. * General - title, author, director, album, track number, date, duration...
  40. * Video - codec, aspect, fps, bitrate...
  41. * Audio - codec, sample rate, channels, language, bitrate...
  42. * Text - language of subtitle
  43. * Chapters - number of chapters, list of chapters
  44. DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
  45. MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
  46. RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
  47. VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
  48. What format (container) does MediaInfo support?
  49. * Video - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
  50. MPEG-2, MPEG-4, DVD (VOB) (Codecs - DivX, XviD, MSMPEG4, ASP,
  51. H.264, AVC...)
  52. * Audio - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
  53. * Subtitles - SRT, SSA, ASS, SAMI
  54. %description -l ja
  55. MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。
  56. MediaInfo で確認できる情報:
  57. * 全般 - タイトル、作者、ディレクター、アルバム、トラック番号、
  58. 日付、時間...
  59. * ビデオ - codec、アスペクト比、フレームレート、ビットレート...
  60. * オーディオ - codec、サンプリングレート、チャンネル数、言語、
  61. ビットレート...
  62. * テキスト - 字幕の言語
  63. * チャプター - チャプター数、チャプターの一覧
  64. DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
  65. MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
  66. RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
  67. VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
  68. MediaInfo がサポートするフォーマット:
  69. * ビデオ - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
  70. MPEG-2, MPEG-4, DVD (VOB) (Codec - DivX, XviD, MSMPEG4, ASP,
  71. H.264, AVC...)
  72. * オーディオ - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
  73. * 字幕 - SRT, SSA, ASS, SAMI
  74. %package gui
  75. Summary: GUI for mediainfo
  76. Summary(ja): Mediainfo 用の GUI
  77. Group: Applications/Multimedia
  78. %description gui
  79. This package contains a Frontend for mediainfo.
  80. MediaInfo supplies technical and tag information about a video or
  81. audio file.
  82. What information can I get from MediaInfo?
  83. * General - title, author, director, album, track number, date, duration...
  84. * Video - codec, aspect, fps, bitrate...
  85. * Audio - codec, sample rate, channels, language, bitrate...
  86. * Text - language of subtitle
  87. * Chapters - number of chapters, list of chapters
  88. DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
  89. MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
  90. RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
  91. VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
  92. What format (container) does MediaInfo support?
  93. * Video - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
  94. MPEG-2, MPEG-4, DVD (VOB) (Codecs - DivX, XviD, MSMPEG4, ASP,
  95. H.264, AVC...)
  96. * Audio - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
  97. * Subtitles - SRT, SSA, ASS, SAMI
  98. %description gui -l ja
  99. MediaInfo はビデオとオーディオファイルの詳細な情報を提供します。
  100. MediaInfo で確認できる情報:
  101. * 全般 - タイトル、作者、ディレクター、アルバム、トラック番号、
  102. 日付、時間...
  103. * ビデオ - codec、アスペクト比、フレームレート、ビットレート...
  104. * オーディオ - codec、サンプリングレート、チャンネル数、言語、
  105. ビットレート...
  106. * テキスト - 字幕の言語
  107. * チャプター - チャプター数、チャプターの一覧
  108. DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
  109. MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
  110. RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
  111. VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2
  112. MediaInfo がサポートするフォーマット:
  113. * ビデオ - MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
  114. MPEG-2, MPEG-4, DVD (VOB) (Codec - DivX, XviD, MSMPEG4, ASP,
  115. H.264, AVC...)
  116. * オーディオ - OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
  117. * 字幕 - SRT, SSA, ASS, SAMI
  118. %prep
  119. %setup -q -n MediaInfo
  120. ## dos2unix *.html *.txt Release/*.txt
  121. nkf --unix --overwrite *.html *.txt Release/*.txt
  122. %__chmod 644 *.html *.txt Release/*.txt
  123. %build
  124. export CFLAGS="$RPM_OPT_FLAGS"
  125. export CXXFLAGS="$RPM_OPT_FLAGS"
  126. # build CLI
  127. pushd Project/GNU/CLI
  128. %__chmod +x autogen
  129. ./autogen
  130. %configure
  131. %__make %{?jobs:-j%{jobs}}
  132. popd
  133. # now build GUI
  134. pushd Project/GNU/GUI
  135. %__chmod +x autogen
  136. ./autogen
  137. ### autoreconf -i
  138. %configure
  139. %__make %{?jobs:-j%{jobs}}
  140. popd
  141. %install
  142. pushd Project/GNU/CLI
  143. %__make install-strip DESTDIR=%{buildroot}
  144. popd
  145. pushd Project/GNU/GUI
  146. %__make install-strip DESTDIR=%{buildroot}
  147. popd
  148. # icon
  149. %__install -dm 755 %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
  150. %__install -m 644 Source/Ressource/Image/MediaInfo.png \
  151. %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
  152. %__install -dm 755 %{buildroot}%{_datadir}/pixmaps
  153. %__install -m 644 Source/Ressource/Image/MediaInfo.png \
  154. %{buildroot}%{_datadir}/pixmaps/%{name}.png
  155. %__install -m 644 Source/Ressource/Image/MediaInfo.png \
  156. %{buildroot}%{_datadir}/pixmaps/%{name}-gui.png
  157. # menu-entry
  158. %__install -dm 755 %{buildroot}/%{_datadir}/applications
  159. %__install -m 644 Project/GNU/GUI/mediainfo-gui.desktop \
  160. %{buildroot}/%{_datadir}/applications
  161. %if 0%{?suse_version}
  162. %suse_update_desktop_file -n mediainfo-gui AudioVideo AudioVideoEditing
  163. %endif
  164. %__install -dm 755 %{buildroot}/%{_datadir}/apps/konqueror/servicemenus
  165. %__install -m 644 Project/GNU/GUI/mediainfo-gui.kde3.desktop \
  166. %{buildroot}/%{_datadir}/apps/konqueror/servicemenus/mediainfo-gui.desktop
  167. %__install -dm 755 %{buildroot}/%{_datadir}/kde4/services/ServiceMenus/
  168. %__install -m 644 Project/GNU/GUI/mediainfo-gui.kde4.desktop \
  169. %{buildroot}/%{_datadir}/kde4/services/ServiceMenus/mediainfo-gui.desktop
  170. %clean
  171. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  172. %files
  173. %defattr(-,root,root,-)
  174. %doc Release/ReadMe_CLI_Linux.txt
  175. %doc License.html History_CLI.txt
  176. %{_bindir}/mediainfo
  177. %files gui
  178. %defattr(-,root,root,-)
  179. %doc Release/ReadMe_GUI_Linux.txt
  180. %doc License.html History_GUI.txt
  181. %{_bindir}/mediainfo-gui
  182. %{_datadir}/applications/*.desktop
  183. %{_datadir}/pixmaps/*.png
  184. %{_datadir}/icons/hicolor/128x128/apps/*.png
  185. %dir %{_datadir}/apps
  186. %dir %{_datadir}/apps/konqueror
  187. %dir %{_datadir}/apps/konqueror/servicemenus
  188. %{_datadir}/apps/konqueror/servicemenus/*.desktop
  189. %dir %{_datadir}/kde4
  190. %dir %{_datadir}/kde4/services
  191. %dir %{_datadir}/kde4/services/ServiceMenus
  192. %{_datadir}/kde4/services/ServiceMenus/*.desktop
  193. %changelog
  194. * Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.38-1
  195. - new upstream release
  196. * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.37-1
  197. - new upstream release
  198. * Fri Sep 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.35-1
  199. - new upstream release
  200. * Tue Jun 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.34-1
  201. - new upstream release
  202. * Wed Jun 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.33-1
  203. - new upstream release
  204. * Thu Oct 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.23-1
  205. - new upstream release
  206. * Mon Oct 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.7.22-1
  207. - new upstream release
  208. * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7.19-1
  209. - new upstream release
  210. - change spec file name to mediainfo-vl.spec
  211. - add japanese summary and description
  212. - change group to Applications/Multimedia
  213. - add Packager tag
  214. * Tue Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.7.9-0
  215. - See History.txt for more info and real dates
  216. - Previous packages made by Toni Graffy <toni@links2linux.de>