amarok-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. Name: amarok
  2. Summary: Amarok Media Player
  3. Summary(ja): Amarok メディアプレイヤー
  4. Version: 2.4.1
  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: MySQL-embedded-devel
  31. BuildRequires: phonon-devel
  32. BuildRequires: qca2-devel
  33. BuildRequires: qtscriptbindings
  34. BuildRequires: soprano-devel
  35. BuildRequires: taglib-devel >= 1.6
  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. ..
  93. popd
  94. make %{?_smp_mflags} -C %{_target_platform}
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  98. %find_lang amarok
  99. %find_lang amarokcollectionscanner_qt
  100. %find_lang amarokpkg
  101. %find_lang amarok_scriptengine_qscript
  102. cat amarokpkg.lang >> amarok.lang
  103. cat amarok_scriptengine_qscript.lang >> amarok.lang
  104. # unpackaged files
  105. rm -f $RPM_BUILD_ROOT%{_libdir}/libamarok{-sqlcollection,-transcoding,_taglib,core,lib,plasma,pud,ocsclient}.so
  106. %check
  107. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok.desktop
  108. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/amarok_containers.desktop
  109. %clean
  110. rm -rf $RPM_BUILD_ROOT
  111. %post
  112. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  113. %posttrans
  114. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  115. update-desktop-database -q &> /dev/null ||:
  116. %postun
  117. if [ $1 -eq 0 ] ; then
  118. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  119. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  120. update-desktop-database -q &> /dev/null ||:
  121. fi
  122. %post libs -p /sbin/ldconfig
  123. %postun libs -p /sbin/ldconfig
  124. %files -f %{name}.lang
  125. %defattr(-,root,root)
  126. %doc AUTHORS COPYING ChangeLog README
  127. %doc %{_docdir}/HTML/*/amarok/*
  128. %{_bindir}/amarok
  129. %{_bindir}/amarokpkg
  130. %{_bindir}/amarok_afttagger
  131. %{_bindir}/amarokmp3tunesharmonydaemon
  132. %{_datadir}/kde4/apps/amarok/
  133. %{_datadir}/kde4/apps/desktoptheme/Amarok-Mockup/
  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. * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1
  165. - new upstream release
  166. * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.2-1
  167. - new upstream release for KDE 4
  168. - updated BR
  169. * Mon Nov 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.4.10-5
  170. - drop helixplayer stuff to resolve unmet dependency
  171. - drop --with-mp4v2 configure option
  172. * Wed Jun 17 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.10-4vl5
  173. - add BuildRequires: libvisual-devel
  174. * Tue Jun 16 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.10-3vl5
  175. - add Patch4 (from Ubuntu/Debian) to fix build against libmtp >= 0.3.0
  176. * Sat Mar 21 2009 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.4.10-2vl5
  177. - Package Name Changes: self-build-libmad, self-build-faad2
  178. - add patch100 for fix CVE2009-0135, CVE-2009-0136
  179. - add PreReq & BuildPreReq: libart_lgpl, libart_lgpl-devel
  180. * Wed Dec 31 2008 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.4.10-1vl5
  181. - initial build for Vine Seed.
  182. - add Patch3
  183. - spec in utf-8, and applied vine versioning policy