k9copy-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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.8
  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. # fixed *.desktop files
  70. for x in *.desktop; do %__sed -i "s,^MimeTypes=,MimeType=," $x; done
  71. %if %{with_my_japo}
  72. ## vine
  73. %__install -m644 %{SOURCE100} po/ja.po
  74. %endif
  75. %build
  76. %__mkdir -p %{_target_platform}
  77. pushd %{_target_platform}
  78. #unset QTDIR || : ; . /etc/profile.d/qt4.sh
  79. %__cmake \
  80. -DCMAKE_BUILD_TYPE=release \
  81. -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  82. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  83. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  84. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  85. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  86. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  87. -DQT_QMAKE_EXECUTABLE=%_qt4_qmake \
  88. -DAVCODEC_INCLUDE_DIR=$(pkg-config libavcodec --variable=includedir) \
  89. -DAVFORMAT_INCLUDE_DIR=$(pkg-config libavformat --variable=includedir) \
  90. -DFFMPEGSCALE_INCLUDE_DIR=$(pkg-config libswscale --variable=includedir) \
  91. ..
  92. popd
  93. %__make %{?_smp_mflags} -C %{_target_platform}
  94. %install
  95. %__rm -rf %{buildroot}
  96. %__make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  97. %find_lang %{name}
  98. %check
  99. desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy.desktop
  100. desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop
  101. %clean
  102. %__rm -rf %{buildroot}
  103. %post
  104. touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  105. %posttrans
  106. gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  107. %postun
  108. if [ $1 -eq 0 ] ; then
  109. touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  110. gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
  111. fi
  112. %files -f %{name}.lang
  113. %defattr(-,root,root,-)
  114. %doc COPYING
  115. %{_kde4_bindir}/k9copy
  116. %{_kde4_bindir}/k9play
  117. %{_kde4_bindir}/k9xineplayer
  118. %{_kde4_appsdir}/k9copy/
  119. %{_kde4_appsdir}/solid/actions/*.desktop
  120. %{_kde4_datadir}/applications/kde4/k9copy.desktop
  121. %{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop
  122. %{_kde4_docdir}/HTML/en/k9copy/
  123. %{_kde4_iconsdir}/hicolor/*/*/*
  124. %changelog
  125. * Tue Apr 3 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.8-1
  126. - new upstream release
  127. - dropped upstreamed/unused patches
  128. * Sun May 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.7-1
  129. - new upstream release
  130. * Sat Aug 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.6-1
  131. - new upstream release
  132. * Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.5-1
  133. - new upstream release
  134. - added Requires: kdebase-runtime
  135. - added k9copy-2.3.5-ja.po
  136. * Mon Apr 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.4-1
  137. - built based on RPM Fusion development
  138. * Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.4-1
  139. - k9copy-2.3.4
  140. * Sat Aug 29 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.3-1
  141. - k9copy-2.3.3
  142. * Wed May 27 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.2-1
  143. - k9copy-2.3.2
  144. * Mon Apr 06 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.1-1
  145. - k9copy-2.3.1
  146. - optimize scriptlets
  147. * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.3.0-2
  148. - rebuild for new F11 features
  149. * Thu Mar 12 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.0-1
  150. - k9copy-2.3.0
  151. * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-1
  152. - k9copy-2.2.0
  153. * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-2
  154. - ExcludeArch: ppc ppc64 (still fails)
  155. * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-1
  156. - k9copy-2.1.0
  157. * Fri Sep 19 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-4
  158. - drop Requires: libdvdcss
  159. * Thu Sep 18 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-3
  160. - use pkg-config to query ffmpeg includedir(s)
  161. * Tue Sep 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-2
  162. - ffmpeg patch
  163. * Mon Jun 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-1
  164. - k9copy-2.0.2
  165. * Sat Jun 14 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.1-1
  166. - k9copy-2.0.1
  167. * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-5
  168. - gcc43 patch (forward port malloc patch from fedoraforum)
  169. * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-4
  170. - License: GPLv2+ , %%doc COPYING
  171. - minor libdvdread dl'ing patch
  172. * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-3
  173. - ExcludeArch: ppc ppc64
  174. * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-2
  175. - use %%find_lang
  176. - use %%_kde4_* macros
  177. * Mon Jun 02 2008 Leigh Scott <leigh123linux@googlemail.com> 2.0.0-1
  178. - bump to 2.0.0 release
  179. * Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.2-1
  180. - Upgrade to 1.2.2
  181. - Added patch to fix buffer overflows (Thanks to Gustavo Maciel Dias Vieira)
  182. * Mon Nov 12 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.0-1
  183. - Upgrade to 1.2.0
  184. * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-2
  185. - d-f-i: s/Mimetypes/MimeTypes/ typo
  186. * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-1
  187. - k9copy-1.1.3
  188. * Sun Jul 08 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-2.rerel3
  189. - Various minor fixes to the spec file
  190. - Changed release to work around upstreams 'odd' suffix
  191. - Use desktop-file-install for the desktop file
  192. * Tue Jun 05 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-1
  193. - Initial release