streamtuner-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. %define name streamtuner
  2. %define version 0.99.99
  3. %define release 2%{?_dist_release}
  4. %define iconsdir %{_datadir}/pixmaps/%{name}
  5. Name: %{name}
  6. Summary: Internet audio stream browser.
  7. Summary(ja): インターネット オーディオ ストリーム ブラウザ
  8. Version: %{version}
  9. Release: %{release}
  10. Source: %{name}-%{version}.tar.gz
  11. Source1: streamtuner-0.99.99-ja.po
  12. Patch1: http://savannah.nongnu.org/download/streamtuner/streamtuner-0.99.99-pygtk-2.6.diff
  13. Patch2: http://savannah.nongnu.org/download/streamtuner/streamtuner-0.99.99-live365.diff
  14. URL: http://www.nongnu.org/streamtuner/
  15. License: distributable
  16. Group: Applications/Multimedia
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  18. Buildrequires: gettext, glibc, ImageMagick, scrollkeeper
  19. Buildrequires: gtk2-devel, curl-devel, openssl-devel, atk-devel
  20. BuildRequires: glib2-devel, libidn-devel, zlib-devel
  21. BuildRequires: taglib-devel, libxml2-devel, python-devel, pygtk2-devel
  22. Requires: xmms, taglib, atk, glib2, libidn, pango
  23. #Requires: XOrg
  24. Requires: xorg-x11-libs
  25. Requires: gtk2, curl, openssl, zlib, glibc, python, pygtk2
  26. Prereq: scrollkeeper
  27. %description
  28. Streamtuner is a stream directory browser. It offers an intuitive and unified
  29. interface to various streaming directories through the use of a plugin system.
  30. %description -l ja
  31. Streamtunerはストリームディレクトリブラウザです。
  32. プラグインシステムを使って様々なストリーミング
  33. ディレクトリ向けの直感的で統一したインターフェースを提供します。
  34. %package devel
  35. Summary: Development files from %{name}.
  36. Summary(ja): %{name} の開発向けのファイル
  37. Group: Development/Libraries
  38. Provides: %{name}-devel = %{version}-%{release}
  39. Requires: %{name} = %{version}-%{release}
  40. %description devel
  41. Headers and static libraries from %{name}.
  42. %description devel -l ja
  43. %{name} のヘッダファイルやスタティックなライブラリ
  44. %package plugins
  45. Summary: Plugins files for %{name}
  46. Summary(ja): %{name} 用プラグインファイル
  47. Group: Applications/Multimedia
  48. Provides: %{name}-plugins = %{version}-%{release}
  49. Requires: %{name} = %{version}-%{release}
  50. %description plugins
  51. Plugins file for streamtuner, including Xiph.org station,
  52. Live365, Shoutcast and other...
  53. %description plugins -l ja
  54. Streamtuner用のプラグインファイルで、Xiph.orgステーションやLive365や
  55. Shoutcastなどです。
  56. %prep
  57. %setup -q
  58. %patch1 -p0 -b .pygtk-2.6
  59. %patch2 -p0 -b .live365
  60. rm -f po/ja.*
  61. cp %{SOURCE1} po/ja.po
  62. pushd po
  63. msgfmt -o ja.gmo ja.po
  64. popd
  65. %build
  66. %configure --disable-gtktest
  67. make
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. %makeinstall
  71. # remove unpackaged files
  72. rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
  73. %find_lang %{name}
  74. #icons
  75. mkdir -p $RPM_BUILD_ROOT/%{iconsdir}
  76. convert -size 48x48 art/%name.png $RPM_BUILD_ROOT/%{iconsdir}/%name-48.png
  77. convert -size 32x32 art/%name.png $RPM_BUILD_ROOT/%{iconsdir}/%name-32.png
  78. convert -size 16x16 art/%name.png $RPM_BUILD_ROOT/%{iconsdir}/%name-16.png
  79. echo "Icon=/usr/share/pixmaps/streamtuner/streamtuner-48.png" >> $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT
  82. %post
  83. if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi
  84. %postun
  85. if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi
  86. %files -f %{name}.lang
  87. %defattr(-,root,root)
  88. %doc README COPYING AUTHORS NEWS TODO
  89. %{_bindir}/%{name}*
  90. %dir %{_datadir}/%{name}
  91. %{_datadir}/%{name}/ui/*
  92. %{_datadir}/%{name}/python/scripts/*
  93. %{_datadir}/%{name}/python/icons/*
  94. %{_datadir}/applications/*.desktop
  95. %{_datadir}/pixmaps/%{name}.png
  96. %{_datadir}/pixmaps/%{name}/*.png
  97. ##%{_datadir}/locale
  98. %{_datadir}/gtk-doc
  99. %{_datadir}/help/%{name}
  100. ##%{_docdir}/%{name}-%{version}
  101. %{_datadir}/omf/%{name}
  102. %files devel
  103. %defattr(-,root,root)
  104. %{_includedir}/%{name}
  105. #%{_libdir}/%{name}/plugins/*.la
  106. %{_libdir}/%{name}/plugins/*.a
  107. %{_libdir}/pkgconfig/*.pc
  108. %files plugins
  109. %defattr(-,root,root)
  110. %{_libdir}/%{name}/plugins/*.so
  111. %changelog
  112. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 0.99.99-2
  113. - rebuilt with python-2.6
  114. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 0.99.99-1vl5
  115. - applied new versioning policy, spec in utf-8
  116. - dropt plugins/*.la
  117. * Sun Jun 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.99-0vl10
  118. - rebuilt with openssl-0.9.8e
  119. * Mon May 14 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.99.99-0vl9
  120. - rebuild with curl-7.16.2
  121. * Thu Jun 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.99-0vl8
  122. - changed Group to Applications/Multimedia
  123. - added Prereq: scrollkeeper
  124. * Sun May 15 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.99-0vl7
  125. - commented out duplicated two lines in the %files section (see ##)
  126. * Fri May 13 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl6
  127. - added live365.patch from upstream
  128. * Sat Apr 16 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl5
  129. - rebuilt with python-2.4.1
  130. - added patch1(pygtk-2.6.diff)
  131. * Sun Feb 27 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl4
  132. - added BuildRequies: atk-devel, glib2-devel, libidn-devel, zlib-devel, taglib-devel, python-devel, pygtk2-devel
  133. - added Requires: atk, glib2, libidn, pango, gtk2, curl, openssl, zlib, glibc, python, pygtk2
  134. - added icon to gnome-panel
  135. - enabled python scripts and icons
  136. * Sat Feb 19 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl3
  137. - added BuildRequires: openssl-devel
  138. * Sun Feb 13 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl2
  139. - rebuilt with curl-7.13.0
  140. * Mon Feb 07 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl1
  141. - new upstream version(streamtuner-0.99.99)
  142. - updated ja.po
  143. * Sun Nov 21 2004 Satoshi MACHINO <machino@vinelinux.org> 0.99-0vl3
  144. - updated ja.po
  145. -- changed charset to UTF-8
  146. * Fri Nov 19 2004 Satoshi MACHINO <machino@vinelinux.org> 0.99-0vl2
  147. - updated ja.po
  148. * Wed Nov 17 2004 Satoshi MACHINO <machino@vinelinux.org> 0.99-0vl1
  149. - built for VineLinux
  150. - added japanese descriptions
  151. - added ja.po