]>
Commit | Line | Data |
---|---|---|
ce4fd665 JB |
1 | # |
2 | # Conditional build: | |
ae6bf935 | 3 | %bcond_without alsa # without alsa sound support |
4 | %bcond_without arts # without arts sound support | |
ce4fd665 | 5 | # |
560b4e15 | 6 | Summary: MP3 audio player with theme user interface and streaming support |
70665f46 | 7 | Summary(pl.UTF-8): Odtwarzacz plików MP3 z obsługą motywów i streamingu |
560b4e15 | 8 | Name: zinf |
e494b507 | 9 | Version: 2.2.5 |
be97c807 | 10 | Release: 7 |
560b4e15 | 11 | License: GPL |
e494b507 | 12 | Group: Applications/Sound |
2e954cfe | 13 | Source0: http://dl.sourceforge.net/zinf/%{name}-%{version}.tar.gz |
e494b507 | 14 | # Source0-md5: 727db1d0d2673f68639d343ca0ec9895 |
560b4e15 | 15 | Source1: %{name}.desktop |
22d6e894 | 16 | Source2: %{name}.png |
e494b507 | 17 | Patch0: %{name}-ac.patch |
8d344f4d | 18 | Patch1: %{name}-boost.patch |
19 | Patch2: %{name}-musicbrainz.patch | |
560b4e15 | 20 | URL: http://www.zinf.org/ |
e494b507 JB |
21 | BuildRequires: ORBit-devel >= 0.5.0 |
22 | %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0} | |
ccc4b005 | 23 | %{?with_arts:BuildRequires: artsc-devel} |
e494b507 | 24 | BuildRequires: autoconf >= 2.50 |
560b4e15 | 25 | BuildRequires: automake |
9dbd641b | 26 | BuildRequires: boost-devel >= 1.35.0 |
560b4e15 | 27 | BuildRequires: esound-devel >= 0.2.12 |
e494b507 | 28 | BuildRequires: gdbm-devel |
3a1d4cb2 | 29 | BuildRequires: gettext-tools >= 0.13.1 |
b8d8f18d | 30 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
560b4e15 | 31 | BuildRequires: id3lib-devel |
e494b507 JB |
32 | BuildRequires: libmusicbrainz-devel >= 2.0.1 |
33 | BuildRequires: libogg-devel >= 2:1.0 | |
ce4fd665 | 34 | BuildRequires: libstdc++-devel |
22d6e894 | 35 | BuildRequires: libtool |
e494b507 JB |
36 | BuildRequires: libvorbis-devel >= 1:1.0 |
37 | BuildRequires: metakit-devel | |
560b4e15 JK |
38 | %ifarch %{ix86} |
39 | BuildRequires: nasm | |
40 | %endif | |
ce4fd665 | 41 | BuildRequires: ncurses-devel |
dbfa1beb | 42 | BuildRequires: pkgconfig |
e494b507 | 43 | BuildRequires: xosd-devel |
560b4e15 | 44 | BuildRequires: zlib-devel |
f021c0af | 45 | Provides: freeamp |
b448a271 | 46 | Obsoletes: freeamp |
1c5932eb | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
560b4e15 | 48 | |
560b4e15 JK |
49 | %description |
50 | Zinf is an extensible, cross-platform audio player. It features an | |
51 | optimized version of the GPLed Xing MPEG decoder which makes it one of | |
52 | the fastest and best sounding players available. Zinf provides a | |
53 | number of the most common features users have come to expect in a | |
54 | clean, easy to use interface. | |
55 | ||
56 | This project was formely known as FreeAmp. | |
57 | ||
52aa07f8 | 58 | %description -l pl.UTF-8 |
560b4e15 | 59 | Zinf jest rozszerzalnym, wieloplatformowym odtwarzaczem audio. Jego |
52aa07f8 | 60 | zalety to zoptymalizowana wersja dekodera Xing MPEG (GPL) dzięki czemu |
560b4e15 | 61 | freeamp jest jednym z najszybszych i najlepszych odtwarzaczy. Zinf |
52aa07f8 JR |
62 | daje funkcje, których zwykle użytkownicy oczekują od prostego w |
63 | użytkowaniu i jasnego interfejsu. | |
560b4e15 | 64 | |
52aa07f8 | 65 | Ten program wcześniej był znany pod nazwą FreeAmp. |
560b4e15 | 66 | |
e494b507 JB |
67 | %package lmc-vorbis |
68 | Summary: Ogg/Vorbis sound Logical Media Converter plugin for ZINF | |
70665f46 | 69 | Summary(pl.UTF-8): Wtyczka konwertera mediów ZINF obsługująca dźwięk Ogg/Vorbis |
e494b507 JB |
70 | Group: Applications/Sound |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description lmc-vorbis | |
9cb49729 JB |
74 | Ogg/Vorbis sound Logical Media Converter plugin for ZINF. This package |
75 | contains also Ogg/Vorbis MetaData Format plugin. | |
e494b507 | 76 | |
52aa07f8 JR |
77 | %description lmc-vorbis -l pl.UTF-8 |
78 | Wtyczka konwertera mediów (Logical Media Converter) ZINF obsługująca | |
79 | dźwięk Ogg/Vorbis. Pakiet zawiera dodatkowo wtyczkę formatu metadanych | |
80 | (MetaData Format) ZINF obsługującą metadane z plików Ogg/Vorbis. | |
e494b507 JB |
81 | |
82 | %package mdf-mbcd | |
83 | Summary: MusicBrainz MetaData Format plugin for ZINF | |
70665f46 | 84 | Summary(pl.UTF-8): Wtyczka formatu metadanych ZINF obsługująca metadane MusicBrainz |
e494b507 JB |
85 | Group: Applications/Sound |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description mdf-mbcd | |
89 | MusicBrainz MetaData Format plugin for ZINF. | |
90 | ||
52aa07f8 JR |
91 | %description mdf-mbcd -l pl.UTF-8 |
92 | Wtyczka formatu metadanych (MetaData Format) ZINF obsługująca metadane | |
881438f6 | 93 | MusicBrainz. |
e494b507 JB |
94 | |
95 | %package pmo-alsa | |
96 | Summary: ALSA sound Physical Media Output plugin for ZINF | |
70665f46 | 97 | Summary(pl.UTF-8): Wtyczka wyjścia mediów ZINF obsługująca wyjście dźwięku ALSA |
e494b507 JB |
98 | Group: Applications/Sound |
99 | Requires: %{name} = %{version}-%{release} | |
100 | ||
101 | %description pmo-alsa | |
102 | ALSA sound Physical Media Output plugin for ZINF. | |
103 | ||
52aa07f8 JR |
104 | %description pmo-alsa -l pl.UTF-8 |
105 | Wtyczka wyjścia mediów (Physical Media Output) ZINF obsługująca | |
106 | wyjście dźwięku ALSA. | |
e494b507 JB |
107 | |
108 | %package pmo-arts | |
109 | Summary: aRts sound Physical Media Output plugin for ZINF | |
70665f46 | 110 | Summary(pl.UTF-8): Wtyczka wyjścia mediów ZINF obsługująca wyjście dźwięku aRts |
e494b507 JB |
111 | Group: Applications/Sound |
112 | Requires: %{name} = %{version}-%{release} | |
113 | ||
114 | %description pmo-arts | |
115 | aRts sound Physical Media Output plugin for ZINF. | |
116 | ||
52aa07f8 JR |
117 | %description pmo-arts -l pl.UTF-8 |
118 | Wtyczka wyjścia mediów (Physical Media Output) ZINF obsługująca | |
119 | wyjście dźwięku aRts. | |
e494b507 JB |
120 | |
121 | %package pmo-esound | |
122 | Summary: EsounD sound Physical Media Output plugin for ZINF | |
70665f46 | 123 | Summary(pl.UTF-8): Wtyczka wyjścia mediów ZINF obsługująca wyjście dźwięku EsounD |
e494b507 JB |
124 | Group: Applications/Sound |
125 | Requires: %{name} = %{version}-%{release} | |
126 | ||
127 | %description pmo-esound | |
128 | ALSA sound Physical Media Output plugin for ZINF. | |
129 | ||
52aa07f8 JR |
130 | %description pmo-esound -l pl.UTF-8 |
131 | Wtyczka wyjścia mediów (Physical Media Output) ZINF obsługująca | |
132 | wyjście dźwięku EsounD. | |
e494b507 JB |
133 | |
134 | %package ui-corba | |
135 | Summary: CORBA User Interface plugin for ZINF | |
70665f46 | 136 | Summary(pl.UTF-8): Wtyczka interfejsu ZINF obsługująca interfejs CORBA |
e494b507 JB |
137 | Group: Applications/Sound |
138 | Requires: %{name} = %{version}-%{release} | |
139 | ||
140 | %description ui-corba | |
141 | CORBA User Interface plugin for ZINF. | |
142 | ||
52aa07f8 JR |
143 | %description ui-corba -l pl.UTF-8 |
144 | Wtyczka interfejsu użytkownika (User Interface) ZINF obsługująca | |
e494b507 JB |
145 | interfejs CORBA. |
146 | ||
147 | %package ui-gtk | |
148 | Summary: GTK+-based User Interface plugins for ZINF | |
70665f46 | 149 | Summary(pl.UTF-8): Wtyczki interfejsu ZINF oparte na GTK+ |
e494b507 JB |
150 | Group: X11/Applications/Sound |
151 | Requires: %{name} = %{version}-%{release} | |
152 | ||
153 | %description ui-gtk | |
154 | GTK+-based User Interface plugins for ZINF (albumart, download, | |
155 | musicbrowser and zinf). It also contains Kjofol and Winamp Theme | |
156 | Format plugins. | |
157 | ||
52aa07f8 JR |
158 | %description ui-gtk -l pl.UTF-8 |
159 | Wtyczki interfejsu użytkownika (User Interface) ZINF oparte na GTK+ | |
160 | (albumart, download, musicbrowser oraz zinf). Zawiera także wtyczki | |
161 | formatu motywów (Theme Format) konwertujące motywy Kjofola i Winampa. | |
e494b507 JB |
162 | |
163 | %package ui-xosd | |
164 | Summary: XOSD User Interface plugin for ZINF | |
70665f46 | 165 | Summary(pl.UTF-8): Wtyczka interfejsu ZINF oparta na XOSD |
e494b507 JB |
166 | Group: X11/Applications/Sound |
167 | Requires: %{name} = %{version}-%{release} | |
168 | ||
169 | %description ui-xosd | |
170 | XOSD User Interface plugin for ZINF. | |
171 | ||
52aa07f8 JR |
172 | %description ui-xosd -l pl.UTF-8 |
173 | Wtyczka interfejsu użytkownika (User Interface) ZINF oparta na XOSD. | |
e494b507 | 174 | |
560b4e15 JK |
175 | %prep |
176 | %setup -q | |
177 | %patch0 -p1 | |
8d344f4d | 178 | %patch1 -p1 |
179 | %patch2 -p1 | |
560b4e15 | 180 | |
9f74f61b JB |
181 | %{__perl} -pi -e 's/^ca_ES/ca/' po/LINGUAS |
182 | mv -f po/{ca_ES,ca}.po | |
183 | rm -f po/stamp-po | |
184 | ||
560b4e15 | 185 | %build |
e494b507 | 186 | %{__gettextize} |
22d6e894 JB |
187 | %{__libtoolize} |
188 | %{__aclocal} -I m4 | |
2e954cfe | 189 | %{__autoconf} |
22d6e894 JB |
190 | %{__autoheader} |
191 | %{__automake} | |
b8d8f18d | 192 | CPPFLAGS="-I/usr/include/ncurses" |
560b4e15 | 193 | %configure \ |
e494b507 | 194 | %{!?with_alsa:--disable-alsa} \ |
ccc4b005 | 195 | %{!?with_arts:--disable-arts} \ |
e494b507 | 196 | --enable-corba \ |
560b4e15 | 197 | --enable-esd \ |
32d5b30f | 198 | %ifarch %{ix86} |
e494b507 | 199 | --enable-rio \ |
32d5b30f | 200 | %endif |
560b4e15 JK |
201 | %ifnarch %{ix86} |
202 | --disable-x86opts \ | |
203 | %endif | |
e494b507 | 204 | --enable-xosd |
560b4e15 JK |
205 | |
206 | %{__make} | |
207 | ||
208 | %install | |
209 | rm -rf $RPM_BUILD_ROOT | |
e494b507 | 210 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
560b4e15 | 211 | |
22d6e894 JB |
212 | %{__make} install \ |
213 | DESTDIR=$RPM_BUILD_ROOT | |
560b4e15 | 214 | |
e494b507 | 215 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
22d6e894 | 216 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
560b4e15 | 217 | |
e494b507 JB |
218 | %find_lang %{name} |
219 | ||
560b4e15 JK |
220 | %clean |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
e494b507 | 223 | %files -f %{name}.lang |
560b4e15 | 224 | %defattr(644,root,root,755) |
22d6e894 | 225 | %doc AUTHORS NEWS README doc/{README.lcdui,README.linux,ThemeHowTo.txt,WISHLIST,user.txt} |
560b4e15 JK |
226 | %attr(755,root,root) %{_bindir}/* |
227 | %dir %{_libdir}/%{name} | |
228 | %dir %{_libdir}/%{name}/plugins | |
e494b507 JB |
229 | %attr(755,root,root) %{_libdir}/%{name}/plugins/cd.lmc |
230 | %attr(755,root,root) %{_libdir}/%{name}/plugins/wav.lmc | |
231 | %attr(755,root,root) %{_libdir}/%{name}/plugins/xingmp3.lmc | |
232 | %attr(755,root,root) %{_libdir}/%{name}/plugins/id3lib.mdf | |
233 | %attr(755,root,root) %{_libdir}/%{name}/plugins/misc.mdf | |
560b4e15 JK |
234 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.plf |
235 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.pmi | |
e494b507 JB |
236 | %attr(755,root,root) %{_libdir}/%{name}/plugins/cd.pmo |
237 | %attr(755,root,root) %{_libdir}/%{name}/plugins/soundcard.pmo | |
238 | %attr(755,root,root) %{_libdir}/%{name}/plugins/wavout.pmo | |
4d736961 | 239 | %ifarch %{ix86} |
e494b507 | 240 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.ppp |
4d736961 | 241 | %endif |
e494b507 JB |
242 | %attr(755,root,root) %{_libdir}/%{name}/plugins/cmdline.ui |
243 | %attr(755,root,root) %{_libdir}/%{name}/plugins/irman.ui | |
244 | %attr(755,root,root) %{_libdir}/%{name}/plugins/lcd.ui | |
245 | %attr(755,root,root) %{_libdir}/%{name}/plugins/mpg123.ui | |
246 | %attr(755,root,root) %{_libdir}/%{name}/plugins/ncurses.ui | |
247 | %{_pixmapsdir}/*.png | |
248 | %{_desktopdir}/*.desktop | |
249 | ||
250 | %files lmc-vorbis | |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/%{name}/plugins/vorbis.lmc | |
9cb49729 | 253 | %attr(755,root,root) %{_libdir}/%{name}/plugins/vorbis.mdf |
e494b507 JB |
254 | |
255 | %files mdf-mbcd | |
256 | %defattr(644,root,root,755) | |
257 | %attr(755,root,root) %{_libdir}/%{name}/plugins/mbcd.mdf | |
258 | ||
259 | %if %{with alsa} | |
260 | %files pmo-alsa | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/%{name}/plugins/alsa.pmo | |
263 | %endif | |
264 | ||
265 | %if %{with arts} | |
266 | %files pmo-arts | |
267 | %defattr(644,root,root,755) | |
268 | %attr(755,root,root) %{_libdir}/%{name}/plugins/arts.pmo | |
269 | %endif | |
270 | ||
271 | %files pmo-esound | |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_libdir}/%{name}/plugins/esound.pmo | |
274 | ||
275 | %files ui-corba | |
276 | %defattr(644,root,root,755) | |
277 | %attr(755,root,root) %{_libdir}/%{name}/plugins/corba.ui | |
278 | ||
279 | %files ui-gtk | |
280 | %defattr(644,root,root,755) | |
281 | %attr(755,root,root) %{_libdir}/%{name}/plugins/kjofol.ftf | |
282 | %attr(755,root,root) %{_libdir}/%{name}/plugins/winamp.ftf | |
283 | %attr(755,root,root) %{_libdir}/%{name}/plugins/albumart.ui | |
284 | %attr(755,root,root) %{_libdir}/%{name}/plugins/download.ui | |
285 | %attr(755,root,root) %{_libdir}/%{name}/plugins/musicbrowser.ui | |
286 | %attr(755,root,root) %{_libdir}/%{name}/plugins/zinf.ui | |
287 | # only (graphical) themes here | |
560b4e15 | 288 | %{_datadir}/%{name} |
e494b507 JB |
289 | |
290 | %files ui-xosd | |
291 | %defattr(644,root,root,755) | |
292 | %attr(755,root,root) %{_libdir}/%{name}/plugins/xosd.ui |