k9copy-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. %define with_my_japo 0
  2. %define _kde4_bindir %{_bindir}
  3. %define _kde4_iconsdir %{_datadir}/icons
  4. %define _kde4_datadir %{_datadir}
  5. %define _kde4_docdir %{_datadir}/doc
  6. %define _kde4_appsdir %{_datadir}/kde4/apps
  7. %define _qt4_qmake %{_libdir}/qt4/bin/qmake
  8. Name: k9copy
  9. Version: 2.3.7
  10. Release: 1%{?_dist_release}
  11. Summary: Video DVD backup and creation program
  12. Summary(ja): ビデオDVDバックアップと作成プログラム
  13. Group: Applications/Multimedia
  14. License: GPLv2+
  15. URL: http://k9copy.sourceforge.net/
  16. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.gz
  17. ## vine
  18. %if %{with_my_japo}
  19. Source100: k9copy-2.3.5-ja.po
  20. %endif
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. # # upstreamable patches
  23. # Patch51: k9copy-2.3.5-dso.patch
  24. Patch52: k9copy-2.3.5-mimetype.patch
  25. BuildRequires: qt4-devel
  26. BuildRequires: cmake
  27. BuildRequires: desktop-file-utils
  28. ##BuildRequires: ffmpeg-devel
  29. BuildRequires: gettext
  30. BuildRequires: hal-devel
  31. BuildRequires: kdelibs4-devel >= 4.4.3
  32. BuildRequires: libdvdread-devel
  33. ##BuildRequires: libmpeg2-devel
  34. BuildRequires: pkgconfig
  35. BuildRequires: xine-lib-devel
  36. Requires: dvd+rw-tools
  37. Requires: dvdauthor
  38. Requires: kdebase-runtime >= 4.4.3
  39. ### Optional, not *strictly* required:
  40. ##Requires(hint): mencoder
  41. ##Requires(hint): mplayer
  42. # Vine
  43. # BuildRequires: self-build-ffmpeg
  44. # BuildRequires: self-build-libmpeg2
  45. # Requires: self-build-mplayer
  46. Obsoletes: self-build-k9copy < 2.0.0
  47. Obsoletes: k9copy < 2.0.0
  48. %description
  49. Video DVD backup and creation program, features include:
  50. * Video stream compression for fit onto a single layer 4.7GB DVD
  51. * DVD Burning
  52. * Creation of ISO images
  53. * Audio tracks and subtitle selection
  54. * Video title preview
  55. * Preservation of the original menus
  56. %description -l ja
  57. ビデオDVDバックアップと作成プログラム。
  58. 特徴は:
  59. * 片面一層4.7GB DVDへ収めるためのビデオストリーム圧縮
  60. * DVD書き込み
  61. * ISOイメージの作成
  62. * オーディオトラックとサブタイトル選択
  63. * ビデオタイトルプレビュー
  64. * オリジナルのメニューの保存
  65. %prep
  66. %setup -q -n %{name}-%{version}-Source
  67. # %patch51 -p1 -b .dso
  68. %patch52 -p1 -b .mimetype
  69. %if %{with_my_japo}
  70. ## vine
  71. %__install -m644 %{SOURCE100} po/ja.po
  72. %endif
  73. %build
  74. %__mkdir -p %{_target_platform}
  75. pushd %{_target_platform}
  76. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  77. %__cmake \
  78. -DCMAKE_BUILD_TYPE=release \
  79. -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  80. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  81. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  82. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  83. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  84. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  85. -DQT_QMAKE_EXECUTABLE=%_qt4_qmake \
  86. -DAVCODEC_INCLUDE_DIR=$(pkg-config libavcodec --variable=includedir) \
  87. -DAVFORMAT_INCLUDE_DIR=$(pkg-config libavformat --variable=includedir) \
  88. -DFFMPEGSCALE_INCLUDE_DIR=$(pkg-config libswscale --variable=includedir) \
  89. ..
  90. popd
  91. %__make %{?_smp_mflags} -C %{_target_platform}
  92. %install
  93. %__rm -rf %{buildroot}
  94. %__make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  95. %find_lang %{name}
  96. %check
  97. desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy.desktop
  98. desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop
  99. %clean
  100. %__rm -rf %{buildroot}
  101. %post
  102. touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  103. %posttrans
  104. gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  105. %postun
  106. if [ $1 -eq 0 ] ; then
  107. touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  108. gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  109. fi
  110. %files -f %{name}.lang
  111. %defattr(-,root,root,-)
  112. %doc COPYING
  113. %{_kde4_bindir}/k9copy
  114. %{_kde4_bindir}/k9play
  115. %{_kde4_bindir}/k9xineplayer
  116. %{_kde4_appsdir}/k9copy/
  117. %{_kde4_appsdir}/solid/actions/*.desktop
  118. %{_kde4_datadir}/applications/kde4/k9copy.desktop
  119. %{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop
  120. %{_kde4_docdir}/HTML/en/k9copy/
  121. %{_kde4_iconsdir}/hicolor/*/*/*
  122. %changelog
  123. * Sun May 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.7-1
  124. - new upstream release
  125. * Sat Aug 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.6-1
  126. - new upstream release
  127. * Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.5-1
  128. - new upstream release
  129. - added Requires: kdebase-runtime
  130. - added k9copy-2.3.5-ja.po
  131. * Mon Apr 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.4-1
  132. - built based on RPM Fusion development
  133. * Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.4-1
  134. - k9copy-2.3.4
  135. * Sat Aug 29 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.3-1
  136. - k9copy-2.3.3
  137. * Wed May 27 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.2-1
  138. - k9copy-2.3.2
  139. * Mon Apr 06 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.1-1
  140. - k9copy-2.3.1
  141. - optimize scriptlets
  142. * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.3.0-2
  143. - rebuild for new F11 features
  144. * Thu Mar 12 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.0-1
  145. - k9copy-2.3.0
  146. * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-1
  147. - k9copy-2.2.0
  148. * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-2
  149. - ExcludeArch: ppc ppc64 (still fails)
  150. * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-1
  151. - k9copy-2.1.0
  152. * Fri Sep 19 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-4
  153. - drop Requires: libdvdcss
  154. * Thu Sep 18 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-3
  155. - use pkg-config to query ffmpeg includedir(s)
  156. * Tue Sep 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-2
  157. - ffmpeg patch
  158. * Mon Jun 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-1
  159. - k9copy-2.0.2
  160. * Sat Jun 14 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.1-1
  161. - k9copy-2.0.1
  162. * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-5
  163. - gcc43 patch (forward port malloc patch from fedoraforum)
  164. * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-4
  165. - License: GPLv2+ , %%doc COPYING
  166. - minor libdvdread dl'ing patch
  167. * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-3
  168. - ExcludeArch: ppc ppc64
  169. * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-2
  170. - use %%find_lang
  171. - use %%_kde4_* macros
  172. * Mon Jun 02 2008 Leigh Scott <leigh123linux@googlemail.com> 2.0.0-1
  173. - bump to 2.0.0 release
  174. * Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.2-1
  175. - Upgrade to 1.2.2
  176. - Added patch to fix buffer overflows (Thanks to Gustavo Maciel Dias Vieira)
  177. * Mon Nov 12 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.0-1
  178. - Upgrade to 1.2.0
  179. * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-2
  180. - d-f-i: s/Mimetypes/MimeTypes/ typo
  181. * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-1
  182. - k9copy-1.1.3
  183. * Sun Jul 08 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-2.rerel3
  184. - Various minor fixes to the spec file
  185. - Changed release to work around upstreams 'odd' suffix
  186. - Use desktop-file-install for the desktop file
  187. * Tue Jun 05 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-1
  188. - Initial release