1 | %define name streamtuner |
---|
2 | %define version 0.99.99 |
---|
3 | %define release 3%{?_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 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.99.99-3 |
---|
139 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
140 | |
---|
141 | * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 0.99.99-2 |
---|
142 | - rebuilt with python-2.6 |
---|
143 | |
---|
144 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 0.99.99-1vl5 |
---|
145 | - applied new versioning policy, spec in utf-8 |
---|
146 | - dropt plugins/*.la |
---|
147 | |
---|
148 | * Sun Jun 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.99-0vl10 |
---|
149 | - rebuilt with openssl-0.9.8e |
---|
150 | |
---|
151 | * Mon May 14 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.99.99-0vl9 |
---|
152 | - rebuild with curl-7.16.2 |
---|
153 | |
---|
154 | * Thu Jun 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.99-0vl8 |
---|
155 | - changed Group to Applications/Multimedia |
---|
156 | - added Prereq: scrollkeeper |
---|
157 | |
---|
158 | * Sun May 15 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.99-0vl7 |
---|
159 | - commented out duplicated two lines in the %files section (see ##) |
---|
160 | |
---|
161 | * Fri May 13 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl6 |
---|
162 | - added live365.patch from upstream |
---|
163 | |
---|
164 | * Sat Apr 16 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl5 |
---|
165 | - rebuilt with python-2.4.1 |
---|
166 | - added patch1(pygtk-2.6.diff) |
---|
167 | |
---|
168 | * Sun Feb 27 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl4 |
---|
169 | - added BuildRequies: atk-devel, glib2-devel, libidn-devel, zlib-devel, taglib-devel, python-devel, pygtk2-devel |
---|
170 | - added Requires: atk, glib2, libidn, pango, gtk2, curl, openssl, zlib, glibc, python, pygtk2 |
---|
171 | - added icon to gnome-panel |
---|
172 | - enabled python scripts and icons |
---|
173 | |
---|
174 | * Sat Feb 19 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl3 |
---|
175 | - added BuildRequires: openssl-devel |
---|
176 | |
---|
177 | * Sun Feb 13 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl2 |
---|
178 | - rebuilt with curl-7.13.0 |
---|
179 | |
---|
180 | * Mon Feb 07 2005 Satoshi MACHINO <machino@vinelinux.org> 0.99.99-0vl1 |
---|
181 | - new upstream version(streamtuner-0.99.99) |
---|
182 | - updated ja.po |
---|
183 | |
---|
184 | * Sun Nov 21 2004 Satoshi MACHINO <machino@vinelinux.org> 0.99-0vl3 |
---|
185 | - updated ja.po |
---|
186 | -- changed charset to UTF-8 |
---|
187 | |
---|
188 | * Fri Nov 19 2004 Satoshi MACHINO <machino@vinelinux.org> 0.99-0vl2 |
---|
189 | - updated ja.po |
---|
190 | |
---|
191 | * Wed Nov 17 2004 Satoshi MACHINO <machino@vinelinux.org> 0.99-0vl1 |
---|
192 | - built for VineLinux |
---|
193 | - added japanese descriptions |
---|
194 | - added ja.po |
---|