k3b-extra-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Name: k3b-extra
  2. Summary: K3b additional plugins
  3. Summary(ja): K3b 追加プラグイン集
  4. Version: 2.0.1
  5. Release: 2%{?_dist_release}
  6. Group: Applications/Archiving
  7. License: GPLv2+
  8. URL: http://www.k3b.org/
  9. Source0: http://downloads.sourceforge.net/sourceforge/k3b/k3b-%{version}.tar.bz2
  10. ExcludeArch: s390 s390x
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: gettext
  14. BuildRequires: kdelibs4-devel
  15. BuildRequires: kdemultimedia4-devel
  16. BuildRequires: libdvdread-devel
  17. BuildRequires: libmusicbrainz-devel
  18. BuildRequires: libsamplerate-devel
  19. BuildRequires: taglib-devel
  20. BuildRequires: self-build-lame
  21. BuildRequires: self-build-libmad
  22. BuildRequires: self-build-ffmpeg
  23. Requires: k3b >= %{version}
  24. Requires(post,postun): desktop-file-utils
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. %description
  28. This package provides the following additional plugins for K3b.
  29. - FFMpeg decoder for decoding WMA file(s)
  30. - MAD decoder for decoding MP3 file(s)
  31. - Lame MP3 encoder for encoding MP3 file(s)
  32. %description -l ja
  33. K3b 向けに以下の追加プラグインを提供します.
  34. - WMA ファイルをデコードするための FFMpeg デコーダ
  35. - MP3 ファイルをデコードするための MAD デコーダ
  36. - MP3 ファイルをエンコードするための Lame MP3 エンコーダ
  37. %prep
  38. %setup -q -n k3b-%{version}
  39. %build
  40. mkdir -p %{_target_platform}
  41. pushd %{_target_platform}
  42. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  43. %{cmake} \
  44. -DCMAKE_BUILD_TYPE=release \
  45. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  46. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  47. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  48. -DK3B_BUILD_OGGVORBIS_DECODER_PLUGIN:BOOL=OFF \
  49. -DK3B_BUILD_OGGVORBIS_ENCODER_PLUGIN:BOOL=OFF \
  50. -DK3B_BUILD_MUSE_DECODER_PLUGIN::BOOL=OFF \
  51. -DK3B_BUILD_FLAC_DECODER_PLUGIN:BOOL=OFF \
  52. -DK3B_BUILD_SNDFILE_DECODER_PLUGIN:BOOL=OFF \
  53. -DK3B_BUILD_SOX_ENCODER_PLUGIN:BOOL=OFF \
  54. -DK3B_BUILD_EXTERNAL_ENCODER_PLUGIN:BOOL=OFF \
  55. -DK3B_BUILD_WAVE_DECODER_PLUGIN:BOOL=OFF \
  56. -DK3B_BUILD_K3BSETUP:BOOL=OFF \
  57. ..
  58. popd
  59. make %{?_smp_mflags} -C %{_target_platform}/plugins
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install/fast -C %{_target_platform}/plugins DESTDIR=$RPM_BUILD_ROOT
  63. # remove unpackage files
  64. rm -f $RPM_BUILD_ROOT%{_libdir}/kde4/k3baudiometainforenamerplugin.so
  65. rm -f $RPM_BUILD_ROOT%{_libdir}/kde4/k3baudioprojectcddbplugin.so
  66. rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/services/k3baudiometainforenamerplugin.desktop
  67. rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/services/k3baudioprojectcddbplugin.desktop
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %postun
  71. if [ $1 -eq 0 ] ; then
  72. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  73. fi
  74. %posttrans
  75. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  76. %files
  77. %defattr(-,root,root,755)
  78. %{_libdir}/kde4/*.so
  79. %{_datadir}/kde4/services/*
  80. %changelog
  81. * Sun Sep 12 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-2
  82. - fixed %%build section to remove qt-devel dependency
  83. * Wed Sep 8 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-1
  84. - new upstream release
  85. * Thu Jul 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.0-1
  86. - initial build for self-build framework