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