xmms-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. ##define __libtoolize /bin/true
  2. # 3dnow feature can be enabled by '--define _3dnow 1' from command line
  3. # underscore _ is just set to avoid numeric beginning
  4. # if you want to make vorbis input plugin,
  5. # uncomment below line, or rpm --define with_vorbis:1
  6. %define with_vorbis 1
  7. # if you want to make alsa output plugin,
  8. # uncomment below line, or rpm --define with_alsa:1
  9. %define with_alsa 1
  10. Summary: An MP3 player for X which resembles Winamp.
  11. Summary(ja): WinAMPに似たX11 MP3プレーヤー
  12. Name: xmms
  13. Version: 1.2.11
  14. Release: 2%{?_3dnow:.3dnow}%{?_dist_release}
  15. License: GPL
  16. Group: Applications/Multimedia
  17. URL: http://www.xmms.org/
  18. Source0: ftp://ftp.xmms.org/%{name}/1.2.x/%{name}-%{version}.tar.gz
  19. Source1: xmms.desktop
  20. Source2: mp3license
  21. Source3: README.ESD
  22. Source6: xmms.xpm
  23. Patch1: xmms-1.2.10-audio.patch
  24. #Patch2: xmms-workaround.patch
  25. # source/patch for Vine
  26. #Patch100: http://www3.big.or.jp/~sian/linux/products/xmms/files/patches/xmms-1.2.7j_20020305.diff.bz2
  27. #Patch100: xmms-1.2.10j_20040415.diff.bz2
  28. Patch100: xmms-1.2.11j_20071118.diff.bz2
  29. Patch101: xmms-1.2.11-vine-fontset.patch
  30. Patch103: http://www.scn-net.ne.jp/~garakuta/file/xmms-1.2.10j_20040415-shadefont-20040617.patch
  31. Patch200: xmms-1.2.10-except-flac.patch
  32. Buildroot: %{_tmppath}/%{name}-%{version}-root
  33. BuildRequires: esound-devel, audiofile-devel, gtk+-devel, bison
  34. %{?with_vorbis:BuildRequires: libogg-devel, libvorbis-devel}
  35. %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
  36. Requires: gtk+ >= 1.2.2, esound, audiofile
  37. Requires: xmms-libs = %{version}-%{release}
  38. Requires(post): desktop-file-utils
  39. Requires(postun): desktop-file-utils
  40. Obsoletes: x11amp0.7-1-1 x11amp
  41. Vendor: Project Vine
  42. Distribution: Vine Linux
  43. %description
  44. Xmms is a multimedia (MP3s, CDs) player for the X Window System with
  45. an interface similar to Winamp's. Xmms supports playlists and
  46. streaming content and has a configurable interface.
  47. %description -l ja
  48. X MultiMedia System は、スクラッチから作成されたサウンド再生ツールです。
  49. WinAmpのGUIを参考にして作られているので、WinAmpのスキンをそのまま使う
  50. ことができます。mp3, mod, s3m 等他の形式も再生することが可能です。
  51. 入力、出力、一般、およびビジュアルプラグインもサポートしています。
  52. %package libs
  53. Summary: XMMS engine and core plugins
  54. Group: System Environment/Libraries
  55. %description libs
  56. The X MultiMedia System player engine and core plugins.
  57. %package devel
  58. Summary: Static libraries and header files for Xmms plug-in development.
  59. Summary(ja): XMMS - 静的ライブラリおよびヘッダファイル.
  60. Group: Development/Libraries
  61. Requires: xmms-libs = %{version}-%{release}
  62. Obsoletes: x11amp-devel
  63. %description devel
  64. The static libraries and header files needed for building plug-ins for
  65. the Xmms multimedia player.
  66. %description devel -l ja
  67. XMMS プラグインのコンパイルに必要な, 静的ライブラリおよびヘッダファイルです。
  68. %{?with_vorbis:%package vorbis}
  69. %{?with_vorbis:Summary: XMMS - Input plugin to play OGGs}
  70. %{?with_vorbis:Summary(ja): XMMS - OGG を再生するための入力プラグイン}
  71. %{?with_vorbis:Group: System Environment/Libraries}
  72. %{?with_vorbis:Requires: xmms-libs = %{version}-%{release}, libogg, libvorbis}
  73. %{?with_vorbis:%description vorbis}
  74. %{?with_vorbis:Input plugin for XMMS to play Ogg Vorbis files (.ogg).}
  75. %{?with_vorbis:%description vorbis -l ja}
  76. %{?with_vorbis:XMMS で Ogg Vorbis のファイル (.ogg) を再生するための入力プラグインです。}
  77. %{?with_alsa:%package alsa}
  78. %{?with_alsa:Summary: XMMS - ALSA output plugin}
  79. %{?with_alsa:Summary(ja): XMMS - ALSA 出力プラグイン}
  80. %{?with_alsa:Group: System Environment/Libraries}
  81. %{?with_alsa:Requires: xmms-libs = %{version}-%{release}, alsa-lib >= 0.9.0}
  82. %{?with_alsa:%description vorbis}
  83. %{?with_alsa:Output plugin for XMMS to use with the Advanced Linux Sound Architecture}
  84. %{?with_alsa:(ALSA).}
  85. %{?with_alsa:%description alsa -l ja}
  86. %{?with_alsa:XMMS で Advanced Linux Sound Architecture (ALSA) を用いて出力するための}
  87. %{?with_alsa:入力プラグインです。}
  88. %prep
  89. %setup -q
  90. %patch1 -p1 -b .audio
  91. #%patch2 -p1 -b .blarg
  92. # patch added by Vine
  93. %patch100 -p1 -b .ja
  94. #%patch103 -p1 -b .shade
  95. %patch101 -p1 -b .fontset
  96. %patch200 -p1 -b .ex-flac
  97. %build
  98. autoconf
  99. # --enable-simd build with x86 SIMD (MMX/3DNow!) instructions support
  100. %configure \
  101. --disable-dependency-tracking \
  102. --enable-kanji \
  103. --disable-static \
  104. --disable-mikmod --disable-opengl --disable-oggtest \
  105. %{!?with_alsa: --disable-alsa --disable-alsatest} \
  106. %{!?with_vorbis: --disable-vorbis} \
  107. %{?_3dnow: --enable-simd}
  108. find . -name Makefile | xargs sed -i -e s/-lpthread//g # old libtool, x86_64
  109. # Now, make target!
  110. make
  111. %install
  112. rm -rf %{buildroot}
  113. mkdir -p %{buildroot}
  114. make DESTDIR=%{buildroot} \
  115. sysconfdir=%{buildroot}%{_sysconfdir} \
  116. gnulocaledir=%{buildroot}%{_localedir} \
  117. GNOME_SYSCONFDIR=%{_sysconfdir} \
  118. GNOME_DATADIR=%{_datadir} \
  119. mandir=%{_mandir} \
  120. install
  121. mkdir -p %{buildroot}%{_datadir}/applications
  122. install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications
  123. mkdir -p %{buildroot}%{_datadir}/pixmaps/mini
  124. install -p -m 644 xmms/xmms_logo.xpm %{buildroot}%{_datadir}/pixmaps
  125. install -p -m 644 xmms/xmms_mini.xpm %{buildroot}%{_datadir}/pixmaps/mini
  126. install -p -m 644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps
  127. find %{buildroot} -name "*.la" | xargs rm -f
  128. %find_lang %{name}
  129. %post
  130. /sbin/ldconfig
  131. %{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:
  132. %postun
  133. /sbin/ldconfig
  134. %{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:
  135. %clean
  136. rm -rf %{buildroot}
  137. %files -f %{name}.lang
  138. %defattr(-,root,root)
  139. %doc AUTHORS COPYING ChangeLog FAQ INSTALL NEWS TODO README README.jp
  140. %doc $RPM_SOURCE_DIR/README.ESD
  141. %{_bindir}/xmms
  142. %{_bindir}/wmxmms
  143. %config (missingok) %{_datadir}/applications/xmms.desktop
  144. %{_datadir}/pixmaps/xmms_logo.xpm
  145. %{_datadir}/pixmaps/mini/xmms_mini.xpm
  146. %{_datadir}/pixmaps/xmms.xpm
  147. %{_datadir}/xmms/wmxmms.xpm
  148. %{_mandir}/man1/xmms.1*
  149. %{_mandir}/man1/wmxmms.1*
  150. %files libs
  151. %defattr(-,root,root)
  152. %{_libdir}/libxmms.so.*
  153. %dir %{_libdir}/xmms
  154. %{_libdir}/xmms/Effect
  155. %{_libdir}/xmms/General
  156. %dir %{_libdir}/xmms/Input
  157. %{_libdir}/xmms/Input/libcdaudio.*
  158. #%{_libdir}/xmms/Input/libidcin.*
  159. %{_libdir}/xmms/Input/libmpg123.*
  160. %{_libdir}/xmms/Input/libtonegen.*
  161. %{_libdir}/xmms/Input/libwav.*
  162. %{_libdir}/xmms/Output
  163. %{_libdir}/xmms/Visualization
  164. %files devel
  165. %defattr(-,root,root)
  166. %{_includedir}/xmms
  167. %{_bindir}/xmms-config
  168. %{_datadir}/aclocal/xmms.m4
  169. #{_libdir}/lib*.a
  170. %{_libdir}/lib*.so
  171. %{?with_vorbis:%files vorbis}
  172. %{?with_vorbis:%defattr(-,root,root)}
  173. %{?with_vorbis:%{_libdir}/xmms/Input/libvorbis.*}
  174. %{?with_alsa:%files alsa}
  175. %{?with_alsa:%defattr(-,root,root)}
  176. %{?with_alsa:%{_libdir}/xmms/Output/libALSA.*}
  177. %changelog
  178. * Fri Jun 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.11-2
  179. - split libs sub-package
  180. - added --disbale-static, --disable-dependency-tracking option
  181. * Wed Oct 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.11-1vl5
  182. - applied new versioning policy, spec in utf-8
  183. * Sun Dec 30 2007 Satoshi MACHINO <machino@vinelinux.org> 1.2.11-0vl1
  184. - new upstream release
  185. - updated patch100 and patch101
  186. - dropped patch103
  187. * Mon Aug 21 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.10-0vl8
  188. - use %%configure
  189. * Sun Aug 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.10-0vl7
  190. - use --enable-simd instead of --enable-3dnow
  191. - thanks, K. Moriyama [VinePlus:02628]
  192. - build with alsa-lib
  193. * Sun May 29 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.10-0vl6
  194. - update desktop file
  195. - merge xmms.desktop.patch (patch102)
  196. - add application/ogg to MimeType
  197. - add Encoding=UTF-8
  198. - add Categories=Application;AudioVideo;Player;
  199. - dtop deprecated keys
  200. - install xmms.desktop to %%{_datadir}/applications
  201. - run update-desktop-database at %%post, %%postun
  202. - add PreReq: desktop-file-utils
  203. - add PreReq: ldconfig instead of /sbin/ldconfig
  204. - not strip at %%install, it should be done by %%__install_spec_post
  205. * Thu Feb 10 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.10-0vl5
  206. - add except-flac.patch (patch200)
  207. to prevent mpg123 plugin's hijacking FLAC stream
  208. (ref. http://bugs.xmms.org/show_bug.cgi?id=2038)
  209. - add BuildPrereq: automake17
  210. * Fri Oct 01 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.10-0vl4
  211. - add shade-font.patch (patch103)
  212. - update vine-fontset.patch (patch101)
  213. - add BuildPrereq: gtk+-devel, bison
  214. - run configure with --disable-alsatest
  215. * Fri Sep 10 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.10-0vl3
  216. - rebuilt without alsa-lib (sorry, ppc.rpm had dependencies with alsa-lib)
  217. * Tue May 04 2004 Tomoya TAKA <taka@vinelinux.org> 1.2.10-0vl2
  218. - fix typo in spec file
  219. * Fri Apr 30 2004 Tomoya TAKA <taka@vinelinux.org> 1.2.10-0vl1
  220. - new upstream release
  221. - drop obsoleted patch2
  222. - update patch1 and patch101
  223. - update patch100, it was made from xmms-1.2.10j_20040415.tar.bz2
  224. by Hiroshi Takekawa <sian@big.or.jp>
  225. cf. http://www3.big.or.jp/~sian/linux/products/xmms/
  226. - delete xmms-gnome subpackage
  227. - add macro to enable alsa plugin (disabled by default)
  228. * Sat Mar 22 2003 IWAI Masaharu <iwai@alib.jp> 1.2.7-0vl6
  229. - rebuild with new toolchain
  230. - add BuildRequires: gnome-core-devel
  231. * Fri Jul 26 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.7-0vl5
  232. - %define with_vorbis 1 (rebuild with libvorbis-1.0-0vl1)
  233. * Wed May 08 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2.7-0vl4
  234. - fixed changelog
  235. -- don't expand macros in changelog ;P
  236. * Wed May 01 2002 Satoshi MACHINO <machino@vinelinux.org> 1.2.7-0vl3
  237. - changed to use configure in build section
  238. (can't build on sparc)
  239. * Thu Apr 4 2002 Hironobu MORIGUCHI <moriguti@luna.email.ne.jp> 1.2.7-0vl2
  240. - removed %%F from desktop menu (xmms.desktop.patch)
  241. * Fri Mar 08 2002 Toru Sagami <sagami@vinelinux.org> 1.2.7-0vl1
  242. - updated to current stable release 1.2.7
  243. * Wed Jan 31 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.2.6-0vl2
  244. - add xmms-vorbis subpackage
  245. * Fri Jan 11 2002 Toru Sagami <sagami@vinelinux.org> 1.2.6-0vl1
  246. - updated to current stable release 1.2.6 and regenerate patches
  247. - Requires: %%{name} = %%{version} for subpackages
  248. - just run autoheader at libxmms/ and ./
  249. - disable mikmod vorbis opengl oggtest
  250. * Wed Aug 22 2001 Jun Nishii <jun@vinelinux.org> 1.2.5-0vl2
  251. - set default fontset (xmms-1.2.5-vine-fontset.patch)
  252. - libtoolize libxmms/ and ./, in which make process failed because of libtool version dependency...
  253. * Tue Jul 10 2001 <sagami@vinelinux.org>
  254. - 1.2.5-0vl1: was partially based upon RH's 1.2.5-2
  255. - added macro to enable 3dnow option by '--define _3dnow 1' from command line
  256. - added man pages
  257. - added Prereq: /sbin/ldconfig line
  258. * Fri Sep 15 2000 Jun Nishii <jun@vinelinux.org>
  259. - 1.2.2-0v3
  260. - without gl again...
  261. * Mon Sep 11 2000 Jun Nishii <jun@vinelinux.org>
  262. - 1.2.2-0v2
  263. - requires esound, audiofile
  264. - without gl
  265. * Tue Jul 18 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  266. - updated 1.2.2
  267. - added bmp32depth patch and lha patch.
  268. - fixed SPEC to install locale, gnome data.
  269. * Thu Jul 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  270. - modified i18n patch to support 8bpp and clean up.
  271. * Thu Jun 29 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  272. - modified i18n patch to fix the textbackground transparent.
  273. * Wed Jun 28 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  274. - modified i18n patch to make the textbackground transparent.
  275. * Mon Jun 19 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  276. - Vine's first release for 1.2.1
  277. - added xmms.xpm
  278. - remake spec from rawhide.
  279. - added my poor i18n_mb and libjcode patches.
  280. - modified ja.po for i18n_mb patch.
  281. * Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
  282. - 1.2.0
  283. - use rpm macros
  284. - fix gnomexmms buildroot breakage
  285. * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
  286. - rebuild in new environment
  287. - work around some toolchain madness
  288. * Mon Mar 27 2000 Bill Nottingham <notting@redhat.com>
  289. - include /usr/share/xmmms/wmxmms.xpm
  290. * Tue Feb 22 2000 Bill Nottingham <notting@redhat.com>
  291. - use /usr prefix to be consistent with xmms.org (why not?)
  292. - find something more appropriate than the disk writer to use
  293. as output plugin if configured one doesn't exist
  294. * Wed Feb 16 2000 Matt Wilson <msw@redhat.com>
  295. - include /usr/X11R6/bin/wmxmms
  296. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  297. - some cleanups
  298. * Mon Jan 31 2000 Bill Nottingham <notting@redhat.com>
  299. - update to 1.0.1
  300. * Fri Jan 28 2000 Bill Nottingham <notting@redhat.com>
  301. - update to 1.0.0
  302. * Tue Sep 28 1999 Bill Nottingham <notting@redhat.com>
  303. - update to 0.9.5.1
  304. * Wed Sep 23 1999 Preston Brown <pbrown@redhat.com>
  305. - latest stable release (0.9.5)
  306. * Wed Sep 22 1999 Bill Nottingham <notting@redhat.com>
  307. - open in non-blocking mode, then reset
  308. - make esd the default
  309. * Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
  310. - fix binaries
  311. * Thu Sep 9 1999 Bill Nottingham <notting@redhat.com>
  312. - fix gtk+ requirements
  313. * Wed Aug 18 1999 Bill Nottingham <notting@redhat.com>
  314. - fix a /0 in the disk writer
  315. * Tue Jul 20 1999 Bill Nottingham <notting@redhat.com>
  316. - 0.9.1
  317. * Mon Jun 21 1999 Bill Nottingham <notting@redhat.com>
  318. - use other fallback patch
  319. - obsolete x11amp-devel
  320. * Fri Jun 11 1999 Matt Wilson <msw@redhat.com>
  321. - updated to xmms 0.9 final
  322. * Thu Apr 8 1999 The Rasterman <raster@redhat.com>
  323. - patched to have plugin fallback to other plugins for output if plugin fails.
  324. * Mon Mar 29 1999 Michael Maher <mike@redhat.com>
  325. - added desktop entry.
  326. * Mon Mar 22 1999 Michael Maher <mike@redhat.com>
  327. - made some changes to the spec file.
  328. - has 'esd' support now.
  329. - stripped executables.
  330. * Mon Feb 15 1999 Michael Maher <mike@redhat.com>
  331. - built pacakge for 6.0
  332. - changed spec file, added mp3 licenses.
  333. * Mon Feb 15 1999 Ryan Weaver <ryanw@infohwy.com>
  334. [x11amp-0.9-alpha3-1]
  335. - Updated to alpha3 see ChangLog for changes.
  336. * Wed Jan 13 1999 Ryan Weaver <ryanw@infohwy.com>
  337. [x11amp-0.9-alpha2-1]
  338. - fixed close button in PL/EQ windows
  339. - fixed shuffel/randomize functions
  340. - removed imlib, no need for imlib anymore
  341. - mpg123 plugin now works on SMP machines, also reduced cpu usage
  342. - fixed so mainwindow will be positioned correct at startup in some windowmanagers
  343. - fixed the playlistwindow buttons that ended up behind the window
  344. - added mikmod plugin into the source tree
  345. - now you can configure the OSS drivers and mpg123 plugin
  346. - SKINSDIR variable can be used again
  347. - added bars as analyzer mode
  348. - in playlistwindow the player control buttons now work, also time window works