Browse Source

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


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1427 ec354946-7b23-47d6-9f5a-488ba84defc7

inagaki 13 years ago
parent
commit
5164b09841

+ 131 - 168
k/k3b/k3b-vl.spec

@@ -1,67 +1,41 @@
-%define i18n_version 1.0.5
-
 Name: k3b
-Version: 1.0.5
-Release: 5%{?_dist_release}
-Summary: CD/DVD burning application for KDE
-Summary(ja): KDE 用の CD/DVD 作成アプリケーション
-Source0: http://downloads.sf.net/k3b/%{name}-%{version}.tar.bz2
-Source1: http://downloads.sf.net/k3b/%{name}-i18n-%{i18n_version}.tar.bz2
-Source2: k3brc
-License: GPLv2
+Summary: CD/DVD/Blu-ray burning application for KDE
+Summary(ja): KDE 用の CD/DVD/Blu-ray 作成アプリケーション
+Version: 2.0.0
+Release: 1%{?_dist_release}
+
 Group: Applications/Archiving
+License: GPLv2+
 URL: http://www.k3b.org/
 
-Requires: qt, libvorbis, libogg, self-build-lame
-Requires: libzvt, libpng, libjpeg, libdvdread
-Requires: libidn, id3lib, kdelibs, cdrtools-cdrecord
-Requires: cdrtools-mkisofs, dvd+rw-tools, audiofile, arts
-Requires: gamin, cdrdao, cdparanoia, dbus-qt3
-Requires: flac, dvdrecord, libstdc++2_10
-Requires: libstdc++2_10-compat, sox, libsndfile
-Requires: alsa-lib, libsamplerate, libmusicbrainz-devel
-
-BuildPreReq: qt-devel, libvorbis-devel, self-build-lame
-BuildPreReq: libogg-devel, libzvt-devel
-BuildPreReq: libpng-devel, libjpeg-devel, libdvdread-devel, libidn-devel
-BuildPreReq: id3lib-devel, kdelibs-devel, audiofile-devel
-BuildPreReq: arts-devel, gamin-devel, zlib-devel
-BuildPreReq: flac-devel, taglib-devel, libmng-devel, dbus-qt3-devel
-BuildPreReq: libmusicbrainz-devel, sox-devel, libsndfile-devel
-BuildRequires: desktop-file-utils, libsamplerate-devel, alsa-lib-devel
-BuildRequires: libmusicbrainz-devel, hal-devel
-
-# X libs
-%if %{?_dist_release} == "vl5"
-Requires: xorg-x11-libs
-BuildPreReq: xorg-x11-devel
-%endif
-%if %{?_dist_release} == "vl4"
-Requires: XOrg
-BuildPreReq: XOrg-devel
-%endif
-
-# self-build
-Requires: self-build-libmad
-BuildRequires: self-build-libmad
-##Requires: libmad
-##BuildRequires: libmad-devel
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Source0: http://downloads.sourceforge.net/sourceforge/k3b/k3b-%{version}%{?pre}.tar.bz2
+# k3b app icon missing, https://bugzilla.redhat.com/show_bug.cgi?id=611272
+Source1: ox32-k3b.png
+Source2: k3brc
 
 ExcludeArch: s390 s390x
 
-Patch2: k3b-1.0.3-umount.patch
-# manual bufsize (upstream?)
-Patch4: k3b-1.0.4-manualbufsize.patch
-# upstream patches
-# http://bugs.kde.org/151816 , k3b can't reload media for verification
-Patch100: k3b-1.0.4-kde#151816.patch
-# http://bugs.kde.org/156684 , alternative to patch100
-Patch101: k3b-1.0.5-kde#156684.patch
-# put k3b-(iso,cue).desktop to xdg_apps_DATA , see http://bugzilla.redhat.com/419681
-# upstreamed 2008-08-27
-Patch105: k3b-1.0.5-hidden.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: desktop-file-utils
+BuildRequires: flac-devel
+BuildRequires: gettext
+BuildRequires: kdelibs4-devel
+BuildRequires: kdemultimedia4-devel
+BuildRequires: libdvdread-devel
+BuildRequires: libmpcdec-devel
+BuildRequires: libmusicbrainz-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libvorbis-devel
+BuildRequires: taglib-devel
+# needed by k3bsetup
+BuildRequires: polkit-qt-devel
+
+Requires: cdrecord mkisofs
+Requires: cdrdao
+Requires: dvd+rw-tools
+
+Obsoletes: k3b-i18n
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -71,157 +45,146 @@ K3b is a CD and DVD burning application for Linux systems optimized for KDE.
 It provides a comfortable user interface to perform most 
 CD/DVD burning tasks like creating an Audio CD from a set of audio files or copying a CD.
 
+[Notice]
+Please install self-build-k3b-extra package if you want to handle MP3 and WMA files.
+
 %description -l ja
-k3b は、KDE の為に最適化された Linux システム用の CD/DVD 作成アプリケーションです。
-多様なCD/DVDの作成に快適なユーザーインターフェースを提供します。
-また、音楽データや CD の複製等、音楽 CD を簡単に作成できます
+K3b は、KDE の為に最適化された Linux システム用の CD/DVD 作成アプリケーションです
+多様なCD/DVDの作成に快適なユーザーインターフェースを提供します
+また、音楽データや CD の複製等、音楽 CD を簡単に作成できます
 
-%package i18n
-Summary: K3b internationalization RPM
-Summary(ja): k3b 国際化 RPM
-Group: Applications/Archiving
-Requires: %{name} = %{version}-%{release}
-%description i18n
-K3b can be internationalized.
-%description -l ja i18n
-k3b を国際化します。
+K3b にて MP3/WMA ファイルを扱いたい場合は、self-build-k3b-extra パッケージを
+追加でインストールしてください.
 
-BuildRequires: kdelibs-devel >= 3.1
+%package libs
+Summary: Runtime libraries for %{name}
+Group:   System Environment/Libraries
+Requires: kdelibs4 >= 4.4.0
 
-%prep
-%setup -q -a 1
-
-##ALL Fedora patch
-%patch2 -p1 -b .umount
-# set in k3brc too 
-%patch4 -p1 -b .manualbufsize
-%patch100 -p1 -b .kde#151816
-%patch101 -p1 -b .kde#156684
-%patch105 -p1 -b .hidden
+%description libs
+%{summary}.
 
 %package devel
 Summary: Files for the development of applications which will use %{name} 
 Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+Requires: kdelibs4-devel >= 4.4.0
+
 %description devel
 %{summary}.
 
+
+%prep
+%setup -q 
+
 %build
 unset QTDIR || : ; . /etc/profile.d/qt.sh
 
-%configure \
-	--with-k3bsetup=yes \
-	--includedir=%{_includedir}/k3b \
-	--with-cdrecord-suid-root \
-	--disable-rpath \
-	--disable-debug \
-	--disable-warnings \
-	--without-ffmpeg \
-	--with-lame \
-	--with-libmad \
-	--with-alsa \
-	--with-oggvorbis \
-	--with-flac \
-	--with-external-libsamplerate \
-	--with-sndfile \
-	--with-musicbrainz \
-	--with-libdvdread \
-	--enable-new-ldflags
-#	--without-musepack 
-#       --disable-dependency-tracking --enable-final \
-
-
-%{__make} %{?_smp_mflags}
-
-# Build for i18n
-pushd %{name}-i18n-%{i18n_version}
-%configure
-%{__make} %{?_smp_mflags}
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+unset QTDIR || : ; . /etc/profile.d/qt4.sh
+%{cmake} \
+    -DCMAKE_BUILD_TYPE=release \
+    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
+    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
+    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
+    -DK3B_BUILD_FFMPEG_DECODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_MAD_DECODER_PLUGIN::BOOL=OFF \
+    -DK3B_BUILD_LAME_ENCODER_PLUGIN:BOOL=OFF \
+    ..
 popd
+#   -DK3B_BUILD_K3BSETUP:BOOL=OFF \
 
-%install
-rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+make %{?_smp_mflags} -C %{_target_platform}
 
-# install for i18n
-pushd %{name}-i18n-%{i18n_version}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-popd
 
-# *.h new dir 
-%{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}/k3b
+%install
+rm -rf $RPM_BUILD_ROOT
+make install/fast -C %{_target_platform} DESTDIR=$RPM_BUILD_ROOT
 
-# install for k3brc
-%{__install} -D -m 644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/config/k3brc
+%find_lang k3b --with-kde
+%find_lang k3bsetup
+%find_lang libk3b
+%find_lang libk3bdevice 
+cat k3bsetup.lang >> k3b.lang
+cat libk3bdevice.lang >> libk3b.lang
 
-desktop-file-install --vendor="vine" \
-  --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde \
-  $RPM_BUILD_ROOT%{_datadir}/applications/kde/*.desktop
+# k3b app icon missing, https://bugzilla.redhat.com/show_bug.cgi?id=611272
+if [ ! -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/k3b.png ]; then
+  echo "NOTICE: %{_datadir}/icons/hicolor/32x32/apps/k3b.png missing, borrowing oxygen version"
+  install -pD -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/k3b.png
+fi
 
-# remove the .la files
-%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/libk3b*.la 
-#%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/kde3/*.la
 
-# remove i18n for Plattdeutsch (Low Saxon)
-%{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/locale/nds
+%check
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/k3b.desktop
 
-%find_lang k3b
-%find_lang k3bsetup
-%find_lang libk3b
-%find_lang libk3bdevice
-cat k3b.lang k3bsetup.lang libk3b.lang libk3bdevice.lang >> all.lang
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
 touch --no-create %{_datadir}/icons/hicolor ||:
-gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||:
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor ||:
+if [ $1 -eq 0 ] ; then
+    gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+    update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
+    update-mime-database %{_datadir}/mime &> /dev/null
+fi
+
+%posttrans
 gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||:
+update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
+update-mime-database %{_datadir}/mime &> /dev/null
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
 
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
 
-%files -f all.lang
+%files -f k3b.lang
 %defattr(-,root,root,755)
-%doc AUTHORS README COPYING TODO ChangeLog
-%doc %{_docdir}/HTML/*/*
+%doc README COPYING COPYING.DOC ChangeLog
+%{_sysconfdir}/dbus-1/system.d/*.conf
 %{_bindir}/k3b
 %{_bindir}/k3bsetup
-%{_datadir}/applications/kde/*.desktop
-%{_datadir}/mimelnk/application/*.desktop
-%{_libdir}/kde3/*.la
-%{_libdir}/libk3b*.so.*
-%{_libdir}/kde3/*.so
-%{_datadir}/apps/konqsidebartng/virtual_folders/services/*.desktop
-%{_datadir}/services/*.desktop
-%{_datadir}/services/videodvd.protocol
-%{_datadir}/apps/k3b/*
-%{_datadir}/apps/konqueror/servicemenus/*
-%{_datadir}/config/k3brc
-%{_datadir}/sounds/*
+%{_libdir}/kde4/*.so
+%{_libexecdir}/kde4/k3bsetuphelper
+%{_datadir}/applications/kde4/k3b.desktop
+%{_datadir}/dbus-1/system-services/*.service
 %{_datadir}/icons/hicolor/*/*/*
-%{_datadir}/applnk/Settings/System/k3bsetup2.desktop
-
-# k3b-i18n Files
-%files i18n
-%lang(da) %doc %{_docdir}/HTML/da/*
-%lang(de) %doc %{_docdir}/HTML/de/*
-%lang(es) %doc %{_docdir}/HTML/es/*
-%lang(et) %doc %{_docdir}/HTML/et/*
-%lang(fr) %doc %{_docdir}/HTML/fr/*
-%lang(pt) %doc %{_docdir}/HTML/pt/*
-%lang(ru) %doc %{_docdir}/HTML/ru/*
-%lang(sv) %doc %{_docdir}/HTML/sv/*
-#%{_localedir}/*
+%{_datadir}/kde4/apps/k3b/
+%{_datadir}/kde4/apps/konqsidebartng/virtual_folders/services/*.desktop
+%{_datadir}/kde4/apps/solid/actions/k3b*.desktop
+%{_datadir}/kde4/services/*.desktop
+%{_datadir}/kde4/services/*.protocol
+%{_datadir}/kde4/services/ServiceMenus/k3b*.desktop
+%{_datadir}/kde4/servicetypes/k3b*.desktop
+%{_datadir}/mime/packages/x-k3b.xml
+%{_datadir}/polkit-1/actions/*.policy
+%{_datadir}/sounds/k3b_*
+
+%files libs -f libk3b.lang
+%defattr(-,root,root,-)
+%{_libdir}/libk3bdevice.so.6*
+%{_libdir}/libk3blib.so.6*
 
 %files devel
 %defattr(-,root,root,-)
-%{_includedir}/k3b/*.h
-%{_libdir}/libk3b*.so
+%{_includedir}/kde4/k3b*.h
+%{_libdir}/libk3bdevice.so
+%{_libdir}/libk3blib.so
 
 %changelog
+* Thu Jul 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.0-1
+- new upstream release
+- updated build dependencies
+
+* Mon Nov 02 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.5-6
+- drop required packages to resolve unmet dependency <BTS:VineLinux:797>
+  - Requires: libstdc++2_10, libstdc++2_10-compat, dvdrecord, libzvt
+  - BuildRequires: libzvt-devel
+
 * Mon Feb 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-5
 - changed to Requires: self-build-libmad from libmad
 - changed to BuildRequires: self-build-libmad from libmad-devel

+ 105 - 0
nonfree/self-build-k3b-extra/k3b-extra-vl.spec

@@ -0,0 +1,105 @@
+Name: k3b-extra
+Summary: K3b additional plugins
+Summary(ja): K3b 追加プラグイン集
+Version: 2.0.0
+Release: 1%{?_dist_release}
+
+Group: Applications/Archiving
+License: GPLv2+
+URL: http://www.k3b.org/
+
+Source0: http://downloads.sourceforge.net/sourceforge/k3b/k3b-%{version}.tar.bz2
+
+ExcludeArch: s390 s390x
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+BuildRequires: kdelibs4-devel
+BuildRequires: kdemultimedia4-devel
+BuildRequires: libdvdread-devel
+BuildRequires: libmusicbrainz-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: taglib-devel
+BuildRequires: self-build-lame
+BuildRequires: self-build-libmad
+BuildRequires: self-build-ffmpeg
+
+Requires: k3b >= %{version}
+Requires(post,postun): desktop-file-utils
+
+Vendor: Project Vine
+Distribution: Vine Linux
+
+%description
+This package provides the following additional plugins for K3b.
+
+- FFMpeg decoder for decoding WMA file(s)
+- MAD decoder for decoding MP3 file(s)
+- Lame MP3 encoder for encoding MP3 file(s)
+
+%description -l ja
+K3b 向けに以下の追加プラグインを提供します.
+
+- WMA ファイルをデコードするための FFMpeg デコーダ
+- MP3 ファイルをデコードするための MAD デコーダ
+- MP3 ファイルをエンコードするための Lame MP3 エンコーダ
+
+%prep
+%setup -q -n k3b-%{version}
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt.sh
+
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+unset QTDIR || : ; . /etc/profile.d/qt4.sh
+%{cmake} \
+    -DCMAKE_BUILD_TYPE=release \
+    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
+    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
+    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
+    -DK3B_BUILD_OGGVORBIS_DECODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_OGGVORBIS_ENCODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_MUSE_DECODER_PLUGIN::BOOL=OFF \
+    -DK3B_BUILD_FLAC_DECODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_SNDFILE_DECODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_SOX_ENCODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_EXTERNAL_ENCODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_WAVE_DECODER_PLUGIN:BOOL=OFF \
+    -DK3B_BUILD_K3BSETUP:BOOL=OFF \
+    ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}/plugins
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install/fast -C %{_target_platform}/plugins DESTDIR=$RPM_BUILD_ROOT
+
+# remove unpackage files
+rm -f $RPM_BUILD_ROOT%{_libdir}/kde4/k3baudiometainforenamerplugin.so
+rm -f $RPM_BUILD_ROOT%{_libdir}/kde4/k3baudioprojectcddbplugin.so
+rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/services/k3baudiometainforenamerplugin.desktop
+rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/services/k3baudioprojectcddbplugin.desktop
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%postun
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
+fi
+
+%posttrans
+update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
+
+
+%files 
+%defattr(-,root,root,755)
+%{_libdir}/kde4/*.so
+%{_datadir}/kde4/services/*
+
+%changelog
+* Thu Jul 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.0-1
+- initial build for self-build framework

+ 123 - 0
nonfree/self-build-k3b-extra/self-build-k3b-extra-vl.spec

@@ -0,0 +1,123 @@
+%define pkgname k3b-extra
+%define name	self-build-%{pkgname}
+%define version 2.0.0
+%define release	1%{?_dist_release}
+
+%define sourceurl0	http://downloads.sourceforge.net/project/k3b/k3b/2.0.0/k3b-%{version}.tar.bz2
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{version}
+Release: 	%{release}
+Source0:	%{pkgname}-vl.spec
+
+License:	GPLv2
+Group:		Restricted Software
+
+Requires(post):	self-build-setup >= 0.8
+Requires(post):	self-build-ffmpeg
+Requires(post):	self-build-lame
+Requires(post):	self-build-libmad
+
+Requires(post):	desktop-file-utils
+Requires(post):	gettext
+Requires(post):	kdelibs4-devel
+Requires(post):	kdemultimedia4-devel
+Requires(post):	libdvdread-devel
+Requires(post):	libmusicbrainz-devel
+Requires(post):	libsamplerate-devel
+Requires(post):	taglib-devel
+
+Requires:	k3b >= %{version}
+
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+
+Packager:	inagaki
+
+%description
+This package contains additional plugins for K3b.
+
+- FFMpeg decoder for decoding WMA file(s)
+- MAD decoder for decoding MP3 file(s)
+- Lame MP3 encoder for encoding MP3 file(s)
+
+If you install this package, it automaticaly downloads source
+code ,compile it, and create rpm packages of k3b-extra.
+And the created rpm packages are automatically installed
+if installation is executed by apt-get command or synaptic
+package manager.
+
+[Note]
+This package requires many other packages to compile
+targetsoftware. So it consume more disk space than usual.
+Also installation takes logner time because of compilation.
+(This will take a few minutes to quarter or half of an hour,
+depends on building environment)
+
+[About self-build package]
+For some kind of software, distributing of binary package
+may viorate the patent or law. Therefore we chose self-build
+packge, create binary package on your machine, for such kind
+of softwares instead of distributing binary package.
+
+Please obey the national law when you use the created binary
+packages. And if you want to use the softwares using patented 
+thechnology, it may be required to get a permission, make an 
+agreement or purchas a license. Please consider it with your
+purpose or way of use and take appropriate action.
+
+%description -l ja
+K3b 向けに以下の追加プラグインを提供します.
+
+- WMA ファイルをデコードするための FFMpeg デコーダ
+- MP3 ファイルをデコードするための MAD デコーダ
+- MP3 ファイルをエンコードするための Lame MP3 エンコーダ
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、k3b-extra の rpm パッケージを作成します。
+また apt-get コマンドや synaptic パッケージマネージャから実行
+した場合は、作成された rpm パッケージのインストールも自動的に
+行います。
+
+[注意]
+コンパイルに必要な多くの関連パッケージを要求するので通常より
+ディスクの領域を多く消費します。
+またインストール時にコンパイルを行うため、通常より時間がかか
+る場合があります。(環境にもよりますが数分から数十分程度)
+
+[self-build パッケージについて]
+ソフトウェアによってはバイナリパッケージの配布が特許や法律に
+違反する可能性があるものがあります。その為、このような問題が
+懸念されるソフトウェアについてはバイナリパッケージを直接配布
+せずに、ユーザの環境でバイナリを作成する self-build パッケー
+ジという方法を採っています。
+
+作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
+アのライセンス、および利用する国の各種法令に従ってください。
+また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
+センスの購入などが必要となる場合がありますので、利用する目的
+や形態に応じて各自で判断し適切な対応を取ってください。
+
+%prep
+[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}"
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Thu Jul 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.0-1
+- initial bulid for Vine Linux