source: projects/specs/trunk/nonfree/self-build-k3b-extra/k3b-extra-vl.spec @ 1427

Revision 1427, 3.0 KB checked in by inagaki, 14 years ago (diff)

updated: k3b
NEW: self-build-k3b-extra

Line 
1Name: k3b-extra
2Summary: K3b additional plugins
3Summary(ja): K3b 追加プラグイン集
4Version: 2.0.0
5Release: 1%{?_dist_release}
6
7Group: Applications/Archiving
8License: GPLv2+
9URL: http://www.k3b.org/
10
11Source0: http://downloads.sourceforge.net/sourceforge/k3b/k3b-%{version}.tar.bz2
12
13ExcludeArch: s390 s390x
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildRequires: desktop-file-utils
16BuildRequires: gettext
17BuildRequires: kdelibs4-devel
18BuildRequires: kdemultimedia4-devel
19BuildRequires: libdvdread-devel
20BuildRequires: libmusicbrainz-devel
21BuildRequires: libsamplerate-devel
22BuildRequires: taglib-devel
23BuildRequires: self-build-lame
24BuildRequires: self-build-libmad
25BuildRequires: self-build-ffmpeg
26
27Requires: k3b >= %{version}
28Requires(post,postun): desktop-file-utils
29
30Vendor: Project Vine
31Distribution: Vine Linux
32
33%description
34This 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
41K3b 向けに以下の追加プラグインを提供します.
42
43- WMA ファイルをデコードするための FFMpeg デコーダ
44- MP3 ファイルをデコードするための MAD デコーダ
45- MP3 ファイルをエンコードするための Lame MP3 エンコーダ
46
47%prep
48%setup -q -n k3b-%{version}
49
50%build
51unset QTDIR || : ; . /etc/profile.d/qt.sh
52
53mkdir -p %{_target_platform}
54pushd %{_target_platform}
55unset 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    ..
71popd
72
73make %{?_smp_mflags} -C %{_target_platform}/plugins
74
75
76%install
77rm -rf $RPM_BUILD_ROOT
78make install/fast -C %{_target_platform}/plugins DESTDIR=$RPM_BUILD_ROOT
79
80# remove unpackage files
81rm -f $RPM_BUILD_ROOT%{_libdir}/kde4/k3baudiometainforenamerplugin.so
82rm -f $RPM_BUILD_ROOT%{_libdir}/kde4/k3baudioprojectcddbplugin.so
83rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/services/k3baudiometainforenamerplugin.desktop
84rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/services/k3baudioprojectcddbplugin.desktop
85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%postun
90if [ $1 -eq 0 ] ; then
91    update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
92fi
93
94%posttrans
95update-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
Note: See TracBrowser for help on using the repository browser.