amarok-vl.spec 6.8 KB

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