k3b-extra-vl.spec 3.4 KB

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