Browse Source

update: amarok, phonon
NEW: qtscriptgenerator


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

inagaki 13 years ago
parent
commit
390d76007d
3 changed files with 337 additions and 204 deletions
  1. 159 202
      a/amarok/amarok-vl.spec
  2. 18 2
      p/phonon/phonon-vl.spec
  3. 160 0
      q/qtscriptgenerator/qtscriptgenerator-vl.spec

+ 159 - 202
a/amarok/amarok-vl.spec

@@ -1,244 +1,203 @@
 Name: amarok
-Version: 1.4.10
-Release: 4%{?_dist_release}
-Summary: a music player with an intuitive interface.
-Summary(ja): 直感的なインターフェースを備えた音楽プレイヤです。
-License: GPLv2
+Summary: Amarok Media Player
+Summary(ja): Amarok メディアプレイヤー
+Version: 2.3.2
+Release: 1%{?_dist_release}
+
 Group: Applications/Multimedia
+License: GPLv2
 URL: http://amarok.kde.org
-Source0: ftp://ftp.kddlabs.co.jp/pub/X11/kde/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
-Patch1: amarok-1.4.8-gcc43.patch
-Patch2: amarok-1.4.7-xdg.patch
-Patch3: workaround-missing-libfam.la-libidn.la.patch
-Patch4: amarok-1.4.10-fix-libmtp-0.3.0-API.patch
-Patch100: amarok-1.4.10-CVE-2009-0135-0136.patch
-#PreReq: self-build-faac
-PreReq: MySQL-server, MySQL-client, MySQL-shared, libnjb, libnjb-examples, xine-lib, libgpod >= 0.4.2, SDL, kdemultimedia >= 3.5, xine-lib-alsa, xine-lib-ogg, libart_lgpl
-PreReq: ruby, taglib, libstdc++3, desktop-file-utils, self-build-libmad, self-build-faad2
-BuildPreReq: XOrg-devel, kdelibs-devel >= 3.5, kdebase-devel, qt >= 3.3.5, libusb-devel, mysql-devel, xine-lib-devel, libstdc++3-devel
-BuildPreReq: ruby-devel, SDL-devel, desktop-file-utils, taglib-devel, libvisual, libvisual-plugins, avahi-qt3-devel, libgpod-devel
-BuildPreReq: xmms-devel, HelixPlayer, libpng-devel,libjpeg-devel, postgresql-devel, esound-devel,libgpod >= 0.4.2, libart_lgpl-devel, libvisual-devel
-BuildPreReq: libnjb-devel,self-build-faad2, self-build-libmad
-#xdg-utils
-
-# --with-gstreamer 
-#BuildRequires: gstreamer-plugins-base-devel, gstreamer-plugins-good-devel, gstreamer-devel
+
+Source0: http://download.kde.org/stable/amarok/%{version}/src/amarok-%{version}.tar.bz2
+## upstream patches
+Patch10: amarok-2.3.2_bpm_tags-in-flac_fix.patch
+Patch20: amarok-2.3.2_0001-Re-add-some-tests-for-unprintable-but-also-invalid-c.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: curl-devel
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+BuildRequires: kdelibs4-devel 
+#BuildRequires: libifp-devel
+#BuildRequires: liblastfm-devel
+#BuildRequires: libmp4v2-devel
+BuildRequires: libgcrypt-devel
+BuildRequires: libgpod-devel >= 0.7.0
+BuildRequires: libmtp-devel >= 1.0.0
+BuildRequires: libnjb-devel
+BuildRequires: libusb-devel
+BuildRequires: libxml2-devel
+BuildRequires: libvisual-devel
+BuildRequires: loudmouth-devel
+BuildRequires: MySQL-devel
+BuildRequires: MySQL-embedded-devel
+BuildRequires: phonon-devel
+BuildRequires: qca2-devel
+BuildRequires: qtscriptbindings
+BuildRequires: soprano-devel
+BuildRequires: taglib-devel >= 1.6
+BuildRequires: taglib-extras-devel >= 1.0.1
+BuildRequires: zlib-devel
+
+Requires: qtscriptbindings
+Requires: %{name}-libs = %{version}-%{release}
+Requires: %{name}-utils = %{version}-%{release}
+
+# for trash protocol support, phonon kcm, etc...
+# FIXME: should probably be handled lower in the stack
+Requires: kdebase-runtime >= 4.5
+
+# when we grew a -libs subpkg, multilib love
+Obsoletes: amarok-konqueror < 1.5 
+Obsoletes: amarok-helix-engine < 1.5
+Obsoletes: amarok-void-engine < 1.5
+Obsoletes: amarok-xine-engine < 1.5
+Obsoletes: amarok-visualisation < 1.5
+
 Vendor: Project Vine
 Distribution: Vine Linux
 
 %description
-Amarok is the music player for Linux and Unix with an intuitive interface. 
-Amarok makes playing the music you love easier than ever before.
+Amarok is a multimedia player with:
+ - fresh playlist concept, very fast to use, with drag and drop
+ - plays all formats supported by the various engines
+ - audio effects, like reverb and compressor
+ - compatible with the .m3u and .pls formats for playlists
+ - nice GUI, integrates into the KDE look, but with a unique touch
+
 %description -l ja
 Amarokは、直感的インターフェースを備えた、Linux および Unix 用の音楽プレーヤーです。
 Amarokはより好きな音楽を簡単に再生します。 
-%package konqueror
-Summary: Amarok konqueror (service menus, sidebar) support
-Summary(ja): Amarok konqueror (サービスメニュー, サイドバー) をサポートします。
-Group:   Applications/Multimedia
-Requires: %{name} = %{version}-%{release}
-%description konqueror
-Amarok konqueror (service menus, sidebar) support
-%description konqueror -l ja
-Amarok konqueror (サービスメニュー, サイドバー) をサポートします。
-
-%package visualisation
-Summary: Visualisation plugins for Amarok
-Summary(ja): Amarok 用の Visualisation プラグインです。
-Group:      Applications/Multimedia
-Requires:   %{name} = %{version}-%{release}
-Requires:   libvisual, libvisual-plugins
-%description visualisation
-Visualisation plugins for Amarok
-%description visualisation -l ja
-Amarok 用の Visualisation プラグインです。
-
-%package xine-engine
-Summary: xine-engine for Amarok
-Summary(ja): Amarok 用の xine エンジンです。
-Group: Applications/Multimedia
-Requires: %{name} = %{version}-%{release}
-%description xine-engine
-xine-engine for Amarok
-%description xine-engine -l ja
-Amarok 用の xine エンジンです。
-
-%package helix-engine
-Summary: helix-engine for Amarok
-Summary(ja): Amarok 用の Helix エンジンです。
-Group: Applications/Multimedia
-Requires: %{name} = %{version}-%{release}
-Requires: HelixPlayer
-%description helix-engine
-helix-engine for Amarok
-%description xine-engine -l ja
-Amarok 用の Helix エンジンです。
-
-%package void-engine
-Summary: void-engine for Amarok
-Summary(ja): Amarok 用の void-engine です。
+
+%package libs
+Summary: Runtime libraries for %{name}
+Summary(ja): %{name} のランタイムライブラリ
+Group:   System Environment/Libraries
+#Requires: %{name} = %{version}-%{release}
+Requires: qt4 >= 4.6
+
+%description libs
+%{summary}.
+
+%package utils
+Summary: Amarok standalone utilities
 Group: Applications/Multimedia
-Requires: %{name} = %{version}-%{release}
-%description void-engine
-void-engine for Amarok
-%description void-engine -l ja
-Amarok 用の void-engine です。
+Obsoletes: amarok-collectionscanner < 2.0.90-2
+Obsoletes: amarok-utilities < 2.0.96
+
+%description utils 
+%{summary}, including amarokcollectionscanner.
 
 %prep
 %setup -q
+%patch10 -p0
+%patch20 -p1
 
-%patch1 -p1 -b .gcc43
-%patch2 -p1 -b .xdg
-%patch3 -p1 -b .work
-%patch4 -p1 -b .api
-%patch100 -p1 -b .cve
 %build
-unset QTDIR || : ; . /etc/profile.d/qt.sh
-%configure \
-	--disable-rpath \
-	--enable-new-ldflags \
-	--prefix=%{_prefix} \
-	--enable-mysql \
-	--enable-postgresql \
-	--with-mp4v2 \
-	--with-libgpod \
-	--without-kdnssd-avahi \
-	--with-helix=%{_libdir}/helix
-
-%{__make} %{?_smp_mflags}
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%cmake \
+    -DCMAKE_BUILD_TYPE=release \
+    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
+    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
+    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
+    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
+    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
+    ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
 
 %install
-%{__rm} -rf $RPM_BUILD_ROOT 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT 
+rm -rf $RPM_BUILD_ROOT 
+make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
+
+%find_lang amarok 
+%find_lang amarokcollectionscanner_qt 
+%find_lang amarokpkg 
+%find_lang amarok_scriptengine_qscript 
+cat amarokpkg.lang >> amarok.lang
+cat amarok_scriptengine_qscript.lang >> amarok.lang
 
 # unpackaged files
-%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
-%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/ruby_lib/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/libamarok{-sqlcollection,_taglib,core,lib,plasma,pud,ocsclient}.so
 
-%find_lang %{name}
+%check
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok.desktop
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok_containers.desktop
 
 %clean
-%{__rm} -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
-update-desktop-database &> /dev/null ||:
-
-if [ $LANG = "ja_JP.UTF-8" ]; then
-	echo ""
-	echo ""
-	echo "amarok 関連パッケージがあります。"
-	echo "併せてインストールしてください。"
-	echo ""
-	echo "amarok-xine-engine"
-	echo "amarok 用の xine エンジン"
-	echo ""
-	echo "self-build-xine-lib-extras"
-	echo "m4a フォーマット形式の音楽ファイルを再生する為のパッケージ"
-	echo "self-build-xine-lib-faad はこのパッケージに統合されましたので、こちらをインストールしてください。"
-	echo ""
-	echo "amarok-visualisation"
-	echo "amarok 用のビジュアルを有効にするためのパッケージ"
-	echo ""
-	echo "moodbar"
-	echo "オーディオファイルの内容を色鮮やかなビジュアル表現で作成するパッケージ"
-	echo ""
-	echo "amarok-helix-engine"
-	echo "amarok 用の Helix エンジン"
-	echo ""
-	echo "amarok-void-engine"
-	echo "amarok 用の void エンジン"
-	echo ""
-	echo "amarok-konqueror"
-	echo "amarok 用の konqueror (サービスメニュー, サイドバー) をサポートする為のパッケージ"
-	echo ""
-	echo "Please visit the website."
-	echo "http://amarok.kde.org/wiki/Main_Page"
-	echo ""
-	echo ""
-fi
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+update-desktop-database -q &> /dev/null ||:
 
 %postun
-/sbin/ldconfig
-update-desktop-database &> /dev/null ||:
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
 
 %files -f %{name}.lang
 %defattr(-,root,root)
-%doc AUTHORS COPYING ChangeLog INSTALL README
+%doc AUTHORS COPYING ChangeLog README
 %doc %{_docdir}/HTML/*/amarok/*
 %{_bindir}/amarok
-%{_bindir}/amarokapp
-%{_bindir}/amarokcollectionscanner
-%{_bindir}/amarok_proxy.rb
-%{_libdir}/libamarok.so*
-%{_libdir}/ruby_lib/*.rb
-%{_libdir}/ruby_lib/*.so*
-%{_datadir}/applications/kde/*.desktop
-%{_datadir}/apps/amarok/*.rc
-%{_datadir}/apps/amarok/data/*
-%{_datadir}/apps/amarok/icons/*/*/actions/*
-%{_datadir}/apps/amarok/images/*
-%{_datadir}/apps/amarok/ruby_lib/*
-%{_datadir}/apps/amarok/scripts/*/*
-%{_datadir}/apps/amarok/themes/*
-%{_datadir}/apps/profiles/*.xml
-%{_datadir}/config.kcfg/*
-%{_datadir}/config/*
-%{_datadir}/icons/hicolor/*/apps/amarok.png
-%{_datadir}/services/*.protocol
-%{_datadir}/servicetypes/*
-
-# DAAP
-%{_bindir}/amarok_daapserver.*
-%{_libdir}/kde3/libamarok_daap-mediadevice.*
-%{_datadir}/services/amarok_daap-mediadevice.desktop
-# VFAT
-%{_libdir}/kde3/libamarok_generic-mediadevice.*
-%{_datadir}/services/amarok_generic-mediadevice.desktop
-# ipod
-%{_libdir}/kde3/libamarok_ipod-mediadevice.*
-%{_datadir}/services/amarok_ipod-mediadevice.desktop
-# Mass-storage
-%{_libdir}/kde3/libamarok_massstorage-device.*
-%{_datadir}/services/amarok_massstorage-device.desktop
-# NFS
-%{_libdir}/kde3/libamarok_nfs-device.*
-%{_datadir}/services/amarok_nfs-device.desktop
-# NJB
-%{_libdir}/kde3/libamarok_njb-mediadevice.*
-%{_datadir}/services/amarok_njb-mediadevice.desktop
-# SMB
-%{_libdir}/kde3/libamarok_smb-device.*
-%{_datadir}/services/amarok_smb-device.desktop
-
-%files void-engine
+%{_bindir}/amarokpkg
+%{_bindir}/amarok_afttagger
+%{_bindir}/amarokmp3tunesharmonydaemon
+%{_datadir}/kde4/apps/amarok/
+%{_datadir}/kde4/apps/desktoptheme/Amarok-Mockup/
+%{_datadir}/kde4/apps/desktoptheme/default/widgets/*
+%{_datadir}/kde4/apps/solid/actions/amarok-play-audiocd.desktop
+%{_datadir}/config/amarok.knsrc
+%{_datadir}/config//amarok_homerc
+%{_datadir}/config/amarokapplets.knsrc
+%{_datadir}/applications/kde4/amarok.desktop
+%{_datadir}/applications/kde4/amarok_containers.desktop
+%{_datadir}/config.kcfg/amarokconfig.kcfg
+%{_datadir}/dbus-1/interfaces/*.xml
+%{_datadir}/kde4/services/*.desktop
+%{_datadir}/kde4/services/*.protocol
+%{_datadir}/kde4/services/ServiceMenus/amarok_append.desktop
+%{_datadir}/kde4/servicetypes/*.desktop
+%{_datadir}/icons/hicolor/*/*/*
+%{_libdir}/kde4/*.so
+%{_libdir}/strigi/*
+
+%files libs
 %defattr(-,root,root,-)
-%{_libdir}/kde3/libamarok_void-engine_plugin.*
-%{_datadir}/services/amarok_void-engine_plugin.desktop
+%{_libdir}/libamarokcore.so.1*
+%{_libdir}/libamaroklib.so.1*
+%{_libdir}/libamarokocsclient.so.4*
+%{_libdir}/libamarokpud.so.1*
+%{_libdir}/libamarok-sqlcollection.so.1*
 
-%files xine-engine
+%files utils -f amarokcollectionscanner_qt.lang
 %defattr(-,root,root,-)
-%{_libdir}/kde3/libamarok_xine-engine.*
-%{_datadir}/services/amarok_xine-engine.desktop
+%{_bindir}/amarokcollectionscanner
 
-%files helix-engine
-%defattr(-,root,root,-)
-%{_libdir}/kde3/libamarok_helixengine_plugin.*
-%{_datadir}/services/amarok_helixengine_plugin.desktop
 
-%files konqueror
-%defattr(-,root,root,-)
-%{_libdir}/kde3/konqsidebar_universalamarok.*
-%{_datadir}/apps/konqueror/servicemenus/*.desktop
-%{_datadir}/apps/konqsidebartng/*/amarok.desktop
+%changelog
+* Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.2-1
+- new upstream release for KDE 4
+- updated BR
 
-%files visualisation
-%defattr(-,root,root,-)
-%{_bindir}/amarok_libvisual
+* Mon Nov 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.10-5
+- drop helixplayer stuff to resolve unmet dependency
+- drop --with-mp4v2 configure option
 
-%changelog
 * Wed Jun 17 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.10-4vl5
 - add BuildRequires: libvisual-devel
 
@@ -255,5 +214,3 @@ update-desktop-database &> /dev/null ||:
 - add Patch3
 - spec in utf-8, and applied vine versioning policy
 
-# end of file
-

+ 18 - 2
p/phonon/phonon-vl.spec

@@ -1,10 +1,16 @@
+%define qt4_ver 4.6.3
+# Qt4 version auto-detection
+%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
+%define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver})
+%define _qt4_headerdir %(pkg-config --variable headerdir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/include)
+
 %define tar_ver 4.4
 
 Name: phonon
 Summary: Multimedia framework api
 Summary(ja): マルチメディアフレームワーク API
 Version: 4.4.2
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 
 Group: System Environment/Libraries
 License: LGPLv2+
@@ -74,7 +80,7 @@ Provides: phonon-backend = %{version}-%{release}
 Summary: Development files for phonon
 Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
-Requires: qt4-devel >= 4.4.0
+Requires: qt4-devel = %{_qt4_version}
 
 %description devel
 Header files for developing applications using phonon
@@ -124,6 +130,12 @@ install -D -m 0644 %{SOURCE14} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/ap
 install -D -m 0644 %{SOURCE15} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/phonon-gstreamer.png
 install -D -m 0644 %{SOURCE16} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/phonon-gstreamer.png
 
+
+mkdir -p $RPM_BUILD_ROOT%{_qt4_headerdir}
+pushd $RPM_BUILD_ROOT%{_qt4_headerdir}
+ln -sf %{_includedir}/phonon phonon
+popd
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -173,10 +185,14 @@ fi
 %dir %{_includedir}/KDE
 %{_includedir}/KDE/Phonon/
 %{_includedir}/phonon/
+%{_qt4_headerdir}/phonon
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
 
 %changelog
+* Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.2-2
+- added sybolic link in %%{_qt4_headerdir}
+
 * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.2-1
 - new upstream release
 - dropt Patch51 and 57

+ 160 - 0
q/qtscriptgenerator/qtscriptgenerator-vl.spec

@@ -0,0 +1,160 @@
+%define qt4_ver 4.6.3
+# Qt4 version auto-detection
+%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
+%define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver})
+%define _qt4_bindir %(pkg-config --variable bindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/bin)
+%define _qt4_headerdir %(pkg-config --variable headerdir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/include)
+%define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins)
+%define _qt4_qmake %{_qt4_bindir}/qmake
+
+Name:		qtscriptgenerator
+Summary: 	A tool to generate Qt bindings for Qt Script	
+Version:	0.1.0
+Release:	13%{?_dist_release}
+
+Group:		System Environment/Libraries
+License: 	GPLv2	
+URL:		http://code.google.com/p/qtscriptgenerator/	
+Source0:	http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-%{version}.tar.gz	
+
+Patch1: qtscriptgenerator-0.1.0-gcc44.patch
+## upstreamable patches
+Patch50: qtscriptgenerator-src-0.1.0-qmake_target.path.patch
+Patch51: qtscriptgenerator-kde_phonon.patch
+## debian patches
+Patch60: memory_alignment_fix.diff
+
+## upstream patches
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+# explictly BR libxslt, for xsltproc
+BuildRequires: libxslt
+BuildRequires: phonon-devel >= 4.4.2-2%{?_dist_release}
+BuildRequires: qt4-devel >= 4.5.0-7
+#BuildRequires: qt4-webkit-devel
+
+# not strictly required, but the expectation would be for the 
+# bindings to be present
+Requires: qtscriptbindings = %{version}-%{release}
+
+%description
+Qt Script Generator is a tool to generate Qt bindings for Qt Script.
+
+%package -n qtscriptbindings 
+Summary: Qt bindings for Qt Script
+Group: System Environment/Libraries
+Requires: qt4 = %{_qt4_version}
+Provides: qtscript-qt = %{version}-%{release}
+
+%description -n qtscriptbindings
+Bindings providing access to substantial portions of the Qt API
+from within Qt Script.
+
+
+
+%prep
+%setup -q -n %{name}-src-%{version}
+
+%patch1 -p0 -b .gcc44
+%patch50 -p1 -b .qmake_target.path
+%patch51 -p1 -b .kde_phonon
+
+%patch60 -p1 -b .memory_alignment
+
+
+%build
+
+# workaround buildsys bogosity, see also:
+# http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
+export INCLUDE=%{_qt4_headerdir}
+
+pushd generator 
+%{_qt4_qmake}
+make %{?_smp_mflags}
+./generator
+popd
+
+pushd qtbindings
+%{_qt4_qmake}
+make %{?_smp_mflags}
+popd
+
+pushd tools/qsexec/src
+%{_qt4_qmake}
+make  %{?_smp_mflags}
+popd
+
+
+%install
+rm -rf %{buildroot} 
+
+mkdir -p %{buildroot}%{_qt4_plugindir}/script/
+# install doesn't do symlinks
+cp -a plugins/script/libqtscript* \
+  %{buildroot}%{_qt4_plugindir}/script/
+
+cp -a tools/qsexec/README.TXT README.qsexec
+install -D -p -m755 tools/qsexec/qsexec %{buildroot}%{_bindir}/qsexec
+
+install -D -p -m755 generator/generator %{buildroot}%{_qt4_bindir}/generator
+
+
+%clean
+rm -rf %{buildroot} 
+
+
+%files
+%defattr(-,root,root,-)
+%{_qt4_bindir}/generator
+
+%files -n qtscriptbindings
+%defattr(-,root,root,-)
+%doc README LICENSE.GPL
+%doc README.qsexec 
+%doc doc/
+%doc examples/
+%{_bindir}/qsexec
+%{_qt4_plugindir}/script/libqtscript*
+
+
+%changelog
+* Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.0-13
+- initial build for Vine Linux
+
+* Sat May 08 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-12
+- BR: qt4-webkit-devel
+
+* Mon Mar 01 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-11
+- borrow memory_alignment_fix.diff from debian (should help arm/sparc)
+
+* Wed Nov 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-10 
+- rebuild (qt-4.6.0-rc1, fc13+)
+
+* Mon Oct 19 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-9
+- fix build (for qt-4.6.0/phonon-isms)
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Tue Jun 09 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-7
+- upstream sun_issue27 patch
+
+* Fri Apr 10 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-6
+- qtscriptbindings: Provides: qtscript-qt ...
+
+* Tue Mar 24 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-5
+- qtscriptgenerator/qtscriptbindings pkgs 
+- qtscriptbindings: include docs, examples
+
+* Mon Mar 23 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-4
+- include qsexec
+
+* Mon Mar 23 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-3
+- BR: phonon-devel
+
+* Fri Mar 20 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-2
+- qt-4.5.0-7 fixed wrt phonon, drop no_phonon patch
+
+* Fri Mar 06 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-1
+- first try
+