|
@@ -1,42 +1,52 @@
|
|
Name: amarok
|
|
Name: amarok
|
|
Summary: Amarok Media Player
|
|
Summary: Amarok Media Player
|
|
Summary(ja): Amarok メディアプレイヤー
|
|
Summary(ja): Amarok メディアプレイヤー
|
|
-Version: 2.6.0
|
|
|
|
|
|
+Version: 2.8.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
|
|
+# KDE e.V. may determine that future GPL versions are accepted
|
|
|
|
+License: GPLv2 or GPLv3
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
-License: GPLv2
|
|
|
|
URL: http://amarok.kde.org
|
|
URL: http://amarok.kde.org
|
|
|
|
|
|
Source0: http://download.kde.org/stable/amarok/%{version}/src/amarok-%{version}.tar.bz2
|
|
Source0: http://download.kde.org/stable/amarok/%{version}/src/amarok-%{version}.tar.bz2
|
|
|
|
+# http://quickgit.kde.org/?p=amarok.git&a=blob&&f=src%2Famarok.appdata.xml&o=plain
|
|
|
|
+Source1: amarok.appdata.xml
|
|
|
|
+
|
|
|
|
+# Invoke a browser on the online UserBase documentation instead of KHelpCenter
|
|
|
|
+# for the help contents if the amarok-doc subpackage is not installed.
|
|
|
|
+Patch0: amarok-2.8.0-onlinedoc.patch
|
|
|
|
+
|
|
|
|
+## upstreamable patches
|
|
|
|
+
|
|
## upstream patches
|
|
## 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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: curl-devel
|
|
BuildRequires: curl-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gettext
|
|
BuildRequires: gettext
|
|
-BuildRequires: kdelibs4-devel
|
|
|
|
|
|
+BuildRequires: kdelibs4-devel >= 4.9.0
|
|
|
|
+BuildRequires: libappstream-glib-devel
|
|
|
|
+BuildRequires: mariadb-devel mariadb-embedded
|
|
|
|
+BuildRequires: gdk-pixbuf2-devel
|
|
|
|
+BuildRequires: glib2-devel
|
|
|
|
+BuildRequires: libxml2-devel
|
|
|
|
+BuildRequires: phonon-devel
|
|
|
|
+BuildRequires: qca2-devel
|
|
|
|
+BuildRequires: qjson-devel
|
|
|
|
+BuildRequires: qt4-devel
|
|
|
|
+BuildRequires: taglib-devel >= 1.7
|
|
|
|
+BuildRequires: taglib-extras-devel >= 1.0.1
|
|
#BuildRequires: libifp-devel
|
|
#BuildRequires: libifp-devel
|
|
#BuildRequires: liblastfm-devel
|
|
#BuildRequires: liblastfm-devel
|
|
#BuildRequires: libmp4v2-devel
|
|
#BuildRequires: libmp4v2-devel
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libgpod-devel >= 0.7.0
|
|
BuildRequires: libgpod-devel >= 0.7.0
|
|
BuildRequires: libmtp-devel >= 1.0.0
|
|
BuildRequires: libmtp-devel >= 1.0.0
|
|
-BuildRequires: libnjb-devel
|
|
|
|
-BuildRequires: libusb-devel
|
|
|
|
-BuildRequires: libxml2-devel
|
|
|
|
-BuildRequires: libvisual-devel
|
|
|
|
BuildRequires: loudmouth-devel
|
|
BuildRequires: loudmouth-devel
|
|
-BuildRequires: MySQL-devel
|
|
|
|
-BuildRequires: phonon-devel
|
|
|
|
-BuildRequires: qca2-devel
|
|
|
|
-BuildRequires: qjson-devel
|
|
|
|
BuildRequires: qtscriptbindings
|
|
BuildRequires: qtscriptbindings
|
|
BuildRequires: soprano-devel
|
|
BuildRequires: soprano-devel
|
|
-BuildRequires: taglib-devel >= 1.7
|
|
|
|
-BuildRequires: taglib-extras-devel >= 1.0.1
|
|
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
Requires: qtscriptbindings
|
|
Requires: qtscriptbindings
|
|
@@ -45,7 +55,15 @@ Requires: %{name}-utils = %{version}-%{release}
|
|
|
|
|
|
# for trash protocol support, phonon kcm, etc...
|
|
# for trash protocol support, phonon kcm, etc...
|
|
# FIXME: should probably be handled lower in the stack
|
|
# FIXME: should probably be handled lower in the stack
|
|
-Requires: kdebase-runtime >= 4.5
|
|
|
|
|
|
+Requires: kdebase-runtime
|
|
|
|
+Requires: kio_mtp
|
|
|
|
+Requires: kio-upnp-ms
|
|
|
|
+Requires: media-player-info
|
|
|
|
+Requires: mariadb-server
|
|
|
|
+
|
|
|
|
+Requires(post,postun): gtk2
|
|
|
|
+Requires(post,postun): desktop-file-utils
|
|
|
|
+Requires(post,postun): shared-mime-info
|
|
|
|
|
|
# when we grew a -libs subpkg, multilib love
|
|
# when we grew a -libs subpkg, multilib love
|
|
Obsoletes: amarok-konqueror < 1.5
|
|
Obsoletes: amarok-konqueror < 1.5
|
|
@@ -72,15 +90,15 @@ Amarokはより好きな音楽を簡単に再生します。
|
|
%package libs
|
|
%package libs
|
|
Summary: Runtime libraries for %{name}
|
|
Summary: Runtime libraries for %{name}
|
|
Summary(ja): %{name} のランタイムライブラリ
|
|
Summary(ja): %{name} のランタイムライブラリ
|
|
-Group: System Environment/Libraries
|
|
|
|
-#Requires: %{name} = %{version}-%{release}
|
|
|
|
-Requires: qt4 >= 4.6
|
|
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+%{?_qt4_version:Requires: qt4 >= %{_qt4_version}}
|
|
|
|
|
|
%description libs
|
|
%description libs
|
|
%{summary}.
|
|
%{summary}.
|
|
|
|
|
|
%package utils
|
|
%package utils
|
|
Summary: Amarok standalone utilities
|
|
Summary: Amarok standalone utilities
|
|
|
|
+Summary(ja): Amarok のスタンドアロンユーティリティ
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
Obsoletes: amarok-collectionscanner < 2.0.90-2
|
|
Obsoletes: amarok-collectionscanner < 2.0.90-2
|
|
Obsoletes: amarok-utilities < 2.0.96
|
|
Obsoletes: amarok-utilities < 2.0.96
|
|
@@ -88,25 +106,36 @@ Obsoletes: amarok-utilities < 2.0.96
|
|
%description utils
|
|
%description utils
|
|
%{summary}, including amarokcollectionscanner.
|
|
%{summary}, including amarokcollectionscanner.
|
|
|
|
|
|
|
|
+%package doc
|
|
|
|
+Summary: Application handbook, documentation
|
|
|
|
+Summary(ja): Amarok のドキュメント
|
|
|
|
+Group: Applications/Documentation
|
|
|
|
+# for upgrade path
|
|
|
|
+Obsoletes: amarok < 2.6.0-1
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+BuildArch: noarch
|
|
|
|
+
|
|
|
|
+%description doc
|
|
|
|
+%{summary}.
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-#patch10 -p0
|
|
|
|
-#patch20 -p1
|
|
|
|
|
|
+%patch0 -p1
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
mkdir -p %{_target_platform}
|
|
mkdir -p %{_target_platform}
|
|
pushd %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%cmake \
|
|
%cmake \
|
|
-DCMAKE_BUILD_TYPE=release \
|
|
-DCMAKE_BUILD_TYPE=release \
|
|
- -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
|
|
-DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
|
|
-DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
|
|
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
|
|
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
|
|
- -DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
|
|
|
-DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
|
|
-DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
|
|
- -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
|
|
|
|
- -DWITH_MYSQL_EMBEDDED=no \
|
|
|
|
|
|
+ -DKDE4_BUILD_TESTS=off \
|
|
..
|
|
..
|
|
popd
|
|
popd
|
|
|
|
+# -DWITH_MYSQL_EMBEDDED=no \
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
@@ -114,15 +143,18 @@ make %{?_smp_mflags} -C %{_target_platform}
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
|
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
|
|
|
|
|
|
|
+# install appdata
|
|
|
|
+install -m644 -p -D %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
+
|
|
%find_lang amarok
|
|
%find_lang amarok
|
|
%find_lang amarokcollectionscanner_qt
|
|
%find_lang amarokcollectionscanner_qt
|
|
%find_lang amarokpkg
|
|
%find_lang amarokpkg
|
|
-%find_lang amarok_scriptengine_qscript
|
|
|
|
|
|
+#find_lang amarok_scriptengine_qscript
|
|
cat amarokpkg.lang >> amarok.lang
|
|
cat amarokpkg.lang >> amarok.lang
|
|
-cat amarok_scriptengine_qscript.lang >> amarok.lang
|
|
|
|
|
|
+#cat amarok_scriptengine_qscript.lang >> amarok.lang
|
|
|
|
|
|
# unpackaged files
|
|
# unpackaged files
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/libamarok{-sqlcollection,-transcoding,_taglib,core,lib,plasma,pud,ocsclient}.so
|
|
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/libamarok{-sqlcollection,-transcoding,_taglib,core,lib,plasma,pud,ocsclient,shared}.so
|
|
|
|
|
|
%check
|
|
%check
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok.desktop
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok.desktop
|
|
@@ -133,16 +165,20 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post
|
|
%post
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
+touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
|
|
|
|
|
%posttrans
|
|
%posttrans
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
update-desktop-database -q &> /dev/null ||:
|
|
update-desktop-database -q &> /dev/null ||:
|
|
|
|
+update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
%postun
|
|
%postun
|
|
if [ $1 -eq 0 ] ; then
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
update-desktop-database -q &> /dev/null ||:
|
|
update-desktop-database -q &> /dev/null ||:
|
|
|
|
+ touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
|
|
|
+ update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
fi
|
|
fi
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%post libs -p /sbin/ldconfig
|
|
@@ -153,29 +189,31 @@ fi
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
-%doc %{_docdir}/HTML/*/amarok/*
|
|
|
|
%{_bindir}/amarok
|
|
%{_bindir}/amarok
|
|
%{_bindir}/amarokpkg
|
|
%{_bindir}/amarokpkg
|
|
%{_bindir}/amarok_afttagger
|
|
%{_bindir}/amarok_afttagger
|
|
%{_bindir}/amarokmp3tunesharmonydaemon
|
|
%{_bindir}/amarokmp3tunesharmonydaemon
|
|
-%{_datadir}/kde4/apps/amarok/
|
|
|
|
-%{_datadir}/kde4/apps/desktoptheme/default/widgets/*
|
|
|
|
-%{_datadir}/kde4/apps/kconf_update/amarok*
|
|
|
|
-%{_datadir}/kde4/apps/solid/actions/amarok-play-audiocd.desktop
|
|
|
|
|
|
+%{_bindir}/amzdownloader
|
|
|
|
+%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
+%{_datadir}/applications/kde4/amarok.desktop
|
|
|
|
+%{_datadir}/applications/kde4/amarok_containers.desktop
|
|
|
|
+%{_datadir}/applications/kde4/amzdownloader.desktop
|
|
%{_datadir}/config/amarok.knsrc
|
|
%{_datadir}/config/amarok.knsrc
|
|
%{_datadir}/config/amarok_homerc
|
|
%{_datadir}/config/amarok_homerc
|
|
%{_datadir}/config/amarokapplets.knsrc
|
|
%{_datadir}/config/amarokapplets.knsrc
|
|
-%{_datadir}/applications/kde4/amarok.desktop
|
|
|
|
-%{_datadir}/applications/kde4/amarok_containers.desktop
|
|
|
|
%{_datadir}/config.kcfg/amarokconfig.kcfg
|
|
%{_datadir}/config.kcfg/amarokconfig.kcfg
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
|
+%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
+%{_datadir}/kde4/apps/amarok/
|
|
|
|
+%{_datadir}/kde4/apps/desktoptheme/default/widgets/*
|
|
|
|
+%{_datadir}/kde4/apps/kconf_update/amarok*
|
|
|
|
+%{_datadir}/kde4/apps/solid/actions/amarok-play-audiocd.desktop
|
|
%{_datadir}/kde4/services/*.desktop
|
|
%{_datadir}/kde4/services/*.desktop
|
|
%{_datadir}/kde4/services/*.protocol
|
|
%{_datadir}/kde4/services/*.protocol
|
|
%{_datadir}/kde4/services/ServiceMenus/amarok_append.desktop
|
|
%{_datadir}/kde4/services/ServiceMenus/amarok_append.desktop
|
|
%{_datadir}/kde4/servicetypes/*.desktop
|
|
%{_datadir}/kde4/servicetypes/*.desktop
|
|
-%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
|
|
+%{_datadir}/mime/packages/amzdownloader.xml
|
|
%{_libdir}/kde4/*.so
|
|
%{_libdir}/kde4/*.so
|
|
-#{_libdir}/strigi/*
|
|
|
|
|
|
|
|
%files libs
|
|
%files libs
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -183,6 +221,7 @@ fi
|
|
%{_libdir}/libamaroklib.so.1*
|
|
%{_libdir}/libamaroklib.so.1*
|
|
%{_libdir}/libamarokocsclient.so.4*
|
|
%{_libdir}/libamarokocsclient.so.4*
|
|
%{_libdir}/libamarokpud.so.1*
|
|
%{_libdir}/libamarokpud.so.1*
|
|
|
|
+%{_libdir}/libamarokshared.so.1*
|
|
%{_libdir}/libamarok-sqlcollection.so.1*
|
|
%{_libdir}/libamarok-sqlcollection.so.1*
|
|
%{_libdir}/libamarok-transcoding.so.*
|
|
%{_libdir}/libamarok-transcoding.so.*
|
|
%{_libdir}/libampache_account_login.so
|
|
%{_libdir}/libampache_account_login.so
|
|
@@ -191,8 +230,17 @@ fi
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/amarokcollectionscanner
|
|
%{_bindir}/amarokcollectionscanner
|
|
|
|
|
|
|
|
+%files doc
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%doc %{_docdir}/HTML/*/amarok/*
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Feb 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.0-1
|
|
|
|
+- new upstream release
|
|
|
|
+- split documents into doc subpackage
|
|
|
|
+- built with libgrypt 1.6.0, libmtp 1.1.8 and mariadb-embedded 10.0.16
|
|
|
|
+
|
|
* Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.0-1
|
|
* Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.0-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- add BuildRequires: qjson-devel
|
|
- add BuildRequires: qjson-devel
|