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