amarok-vl.spec 8.5 KB

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