amarok-vl.spec 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. Name: amarok
  2. Summary: Amarok Media Player
  3. Summary(ja): Amarok メディアプレイヤー
  4. Version: 2.8.0
  5. Release: 1%{?_dist_release}
  6. # KDE e.V. may determine that future GPL versions are accepted
  7. License: GPLv2 or GPLv3
  8. Group: Applications/Multimedia
  9. URL: http://amarok.kde.org
  10. Source0: http://download.kde.org/stable/amarok/%{version}/src/amarok-%{version}.tar.bz2
  11. # http://quickgit.kde.org/?p=amarok.git&a=blob&&f=src%2Famarok.appdata.xml&o=plain
  12. Source1: amarok.appdata.xml
  13. # Invoke a browser on the online UserBase documentation instead of KHelpCenter
  14. # for the help contents if the amarok-doc subpackage is not installed.
  15. Patch0: amarok-2.8.0-onlinedoc.patch
  16. ## upstreamable patches
  17. ## upstream patches
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: curl-devel
  20. BuildRequires: desktop-file-utils
  21. BuildRequires: gettext
  22. BuildRequires: kdelibs4-devel >= 4.9.0
  23. BuildRequires: libappstream-glib-devel
  24. BuildRequires: mariadb-devel mariadb-embedded
  25. BuildRequires: gdk-pixbuf2-devel
  26. BuildRequires: glib2-devel
  27. BuildRequires: libxml2-devel
  28. BuildRequires: phonon-devel
  29. BuildRequires: qca2-devel
  30. BuildRequires: qjson-devel
  31. BuildRequires: qt4-devel
  32. BuildRequires: taglib-devel >= 1.7
  33. BuildRequires: taglib-extras-devel >= 1.0.1
  34. #BuildRequires: libifp-devel
  35. #BuildRequires: liblastfm-devel
  36. #BuildRequires: libmp4v2-devel
  37. BuildRequires: libgcrypt-devel
  38. BuildRequires: libgpod-devel >= 0.7.0
  39. BuildRequires: libmtp-devel >= 1.0.0
  40. BuildRequires: loudmouth-devel
  41. BuildRequires: qtscriptbindings
  42. BuildRequires: soprano-devel
  43. BuildRequires: zlib-devel
  44. Requires: qtscriptbindings
  45. Requires: %{name}-libs = %{version}-%{release}
  46. Requires: %{name}-utils = %{version}-%{release}
  47. # for trash protocol support, phonon kcm, etc...
  48. # FIXME: should probably be handled lower in the stack
  49. Requires: kdebase-runtime
  50. Requires: kio_mtp
  51. Requires: kio-upnp-ms
  52. Requires: media-player-info
  53. Requires: mariadb-server
  54. Requires(post,postun): gtk2
  55. Requires(post,postun): desktop-file-utils
  56. Requires(post,postun): shared-mime-info
  57. # when we grew a -libs subpkg, multilib love
  58. Obsoletes: amarok-konqueror < 1.5
  59. Obsoletes: amarok-helix-engine < 1.5
  60. Obsoletes: amarok-void-engine < 1.5
  61. Obsoletes: amarok-xine-engine < 1.5
  62. Obsoletes: amarok-visualisation < 1.5
  63. Vendor: Project Vine
  64. Distribution: Vine Linux
  65. %description
  66. Amarok is a multimedia player with:
  67. - fresh playlist concept, very fast to use, with drag and drop
  68. - plays all formats supported by the various engines
  69. - audio effects, like reverb and compressor
  70. - compatible with the .m3u and .pls formats for playlists
  71. - nice GUI, integrates into the KDE look, but with a unique touch
  72. %description -l ja
  73. Amarokは、直感的インターフェースを備えた、Linux および Unix 用の音楽プレーヤーです。
  74. Amarokはより好きな音楽を簡単に再生します。
  75. %package libs
  76. Summary: Runtime libraries for %{name}
  77. Summary(ja): %{name} のランタイムライブラリ
  78. Group: System Environment/Libraries
  79. %{?_qt4_version:Requires: qt4 >= %{_qt4_version}}
  80. %description libs
  81. %{summary}.
  82. %package utils
  83. Summary: Amarok standalone utilities
  84. Summary(ja): Amarok のスタンドアロンユーティリティ
  85. Group: Applications/Multimedia
  86. Obsoletes: amarok-collectionscanner < 2.0.90-2
  87. Obsoletes: amarok-utilities < 2.0.96
  88. %description utils
  89. %{summary}, including amarokcollectionscanner.
  90. %package doc
  91. Summary: Application handbook, documentation
  92. Summary(ja): Amarok のドキュメント
  93. Group: Applications/Documentation
  94. # for upgrade path
  95. Obsoletes: amarok < 2.6.0-1
  96. Requires: %{name} = %{version}-%{release}
  97. BuildArch: noarch
  98. %description doc
  99. %{summary}.
  100. %prep
  101. %setup -q
  102. %patch0 -p1
  103. %build
  104. mkdir -p %{_target_platform}
  105. pushd %{_target_platform}
  106. %cmake \
  107. -DCMAKE_BUILD_TYPE=release \
  108. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  109. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  110. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  111. -DKDE4_BUILD_TESTS=off \
  112. ..
  113. popd
  114. # -DWITH_MYSQL_EMBEDDED=no \
  115. make %{?_smp_mflags} -C %{_target_platform}
  116. %install
  117. rm -rf $RPM_BUILD_ROOT
  118. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  119. # install appdata
  120. install -m644 -p -D %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
  121. %find_lang amarok
  122. %find_lang amarokcollectionscanner_qt
  123. %find_lang amarokpkg
  124. #find_lang amarok_scriptengine_qscript
  125. cat amarokpkg.lang >> amarok.lang
  126. #cat amarok_scriptengine_qscript.lang >> amarok.lang
  127. # unpackaged files
  128. rm -f $RPM_BUILD_ROOT%{_libdir}/libamarok{-sqlcollection,-transcoding,_taglib,core,lib,plasma,pud,ocsclient,shared}.so
  129. %check
  130. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok.desktop
  131. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok_containers.desktop
  132. %clean
  133. rm -rf $RPM_BUILD_ROOT
  134. %post
  135. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  136. touch --no-create %{_datadir}/mime/packages &> /dev/null || :
  137. %posttrans
  138. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  139. update-desktop-database -q &> /dev/null ||:
  140. update-mime-database %{_datadir}/mime &> /dev/null || :
  141. %postun
  142. if [ $1 -eq 0 ] ; then
  143. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  144. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  145. update-desktop-database -q &> /dev/null ||:
  146. touch --no-create %{_datadir}/mime/packages &> /dev/null || :
  147. update-mime-database %{_datadir}/mime &> /dev/null || :
  148. fi
  149. %post libs -p /sbin/ldconfig
  150. %postun libs -p /sbin/ldconfig
  151. %files -f %{name}.lang
  152. %defattr(-,root,root)
  153. %doc AUTHORS COPYING ChangeLog README
  154. %{_bindir}/amarok
  155. %{_bindir}/amarokpkg
  156. %{_bindir}/amarok_afttagger
  157. %{_bindir}/amarokmp3tunesharmonydaemon
  158. %{_bindir}/amzdownloader
  159. %{_datadir}/appdata/%{name}.appdata.xml
  160. %{_datadir}/applications/kde4/amarok.desktop
  161. %{_datadir}/applications/kde4/amarok_containers.desktop
  162. %{_datadir}/applications/kde4/amzdownloader.desktop
  163. %{_datadir}/config/amarok.knsrc
  164. %{_datadir}/config/amarok_homerc
  165. %{_datadir}/config/amarokapplets.knsrc
  166. %{_datadir}/config.kcfg/amarokconfig.kcfg
  167. %{_datadir}/dbus-1/interfaces/*.xml
  168. %{_datadir}/icons/hicolor/*/*/*
  169. %{_datadir}/kde4/apps/amarok/
  170. %{_datadir}/kde4/apps/desktoptheme/default/widgets/*
  171. %{_datadir}/kde4/apps/kconf_update/amarok*
  172. %{_datadir}/kde4/apps/solid/actions/amarok-play-audiocd.desktop
  173. %{_datadir}/kde4/services/*.desktop
  174. %{_datadir}/kde4/services/*.protocol
  175. %{_datadir}/kde4/services/ServiceMenus/amarok_append.desktop
  176. %{_datadir}/kde4/servicetypes/*.desktop
  177. %{_datadir}/mime/packages/amzdownloader.xml
  178. %{_libdir}/kde4/*.so
  179. %files libs
  180. %defattr(-,root,root,-)
  181. %{_libdir}/libamarokcore.so.1*
  182. %{_libdir}/libamaroklib.so.1*
  183. %{_libdir}/libamarokocsclient.so.4*
  184. %{_libdir}/libamarokpud.so.1*
  185. %{_libdir}/libamarokshared.so.1*
  186. %{_libdir}/libamarok-sqlcollection.so.1*
  187. %{_libdir}/libamarok-transcoding.so.*
  188. %{_libdir}/libampache_account_login.so
  189. %files utils -f amarokcollectionscanner_qt.lang
  190. %defattr(-,root,root,-)
  191. %{_bindir}/amarokcollectionscanner
  192. %files doc
  193. %defattr(-,root,root,-)
  194. %doc %{_docdir}/HTML/*/amarok/*
  195. %changelog
  196. * Wed Feb 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.0-1
  197. - new upstream release
  198. - split documents into doc subpackage
  199. - built with libgrypt 1.6.0, libmtp 1.1.8 and mariadb-embedded 10.0.16
  200. * Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.0-1
  201. - new upstream release
  202. - add BuildRequires: qjson-devel
  203. - remove BuildRequires: MySQL-embedded-devel
  204. * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1
  205. - new upstream release
  206. * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.2-1
  207. - new upstream release for KDE 4
  208. - updated BR
  209. * Mon Nov 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.10-5
  210. - drop helixplayer stuff to resolve unmet dependency
  211. - drop --with-mp4v2 configure option
  212. * Wed Jun 17 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.10-4vl5
  213. - add BuildRequires: libvisual-devel
  214. * Tue Jun 16 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.10-3vl5
  215. - add Patch4 (from Ubuntu/Debian) to fix build against libmtp >= 0.3.0
  216. * Sat Mar 21 2009 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.4.10-2vl5
  217. - Package Name Changes: self-build-libmad, self-build-faad2
  218. - add patch100 for fix CVE2009-0135, CVE-2009-0136
  219. - add PreReq & BuildPreReq: libart_lgpl, libart_lgpl-devel
  220. * Wed Dec 31 2008 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.4.10-1vl5
  221. - initial build for Vine Seed.
  222. - add Patch3
  223. - spec in utf-8, and applied vine versioning policy