mediainfo-vl.spec 9.6 KB

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