1 # TODO: bmp, audacious plugins
4 %bcond_with arts # aRts audio driver
5 %bcond_with esd # EsounD audio output driver
6 %bcond_without nas # NAS audio output driver
7 %bcond_without pulseaudio # PulseAudio audio output driver
8 %bcond_without xmms # XMP as XMMS plugin
9 %bcond_with nonfree # with recent fmopl (GPL-incompatible - non-distributable)
11 Summary: Extended Module Player
12 Summary(pl.UTF-8): Rozszerzony odtwarzacz modułów
16 License: GPL%{?with_nonfree: with non-commercial additions}
17 Group: Applications/Sound
18 Source0: http://downloads.sourceforge.net/xmp/%{name}-%{version}.tar.gz
19 # Source0-md5: cae0d0879b51f36a1056196522c899b1
20 Patch0: %{name}-nondfsg.patch
21 URL: http://xmp.sourceforge.net/
22 %{?with_arts:BuildRequires: arts-devel}
23 BuildRequires: autoconf
24 BuildRequires: automake
25 %{?with_esd:BuildRequires: esound-devel}
26 %{?with_nas:BuildRequires: nas-devel}
27 BuildRequires: pkgconfig
28 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
29 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
30 %{?with_xmms:BuildRequires: xmms-devel}
31 BuildRequires: xorg-lib-libX11-devel
32 BuildRequires: xorg-lib-libXt-devel
34 Obsoletes: xmp-output-arts
35 Obsoletes: xmp-output-esd
36 Obsoletes: xmp-output-nas
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 xmp is a multi-format module player for UNIX. In machines with GUS or
41 AWE cards xmp takes advantage of the OSS sequencer to play modules
42 with virtually no system load. Using software mixing, xmp plays at
43 sampling rates up to 48kHz in mono or stereo, 8 or 16 bits, signed or
44 unsigned, little or big endian samples with 32 bit linear
47 %description -l pl.UTF-8
48 xmp jest odtwarzaczem modułów w wielu formatach. Potrafi obsłużyć
49 karty GUS i AWE, korzystając z sekwencera OSS, aby nie obciążać
50 systemu. Używając programowego miksowania, może odgrywać z
51 częstotliwością próbkowania do 48kHz mono lub stereo, 8 lub 16 bitów,
52 próbki ze znakiem lub bez, little- lub big-endian z 32-bitową
55 %package -n xmms-input-xmp
56 Summary: XMMS plugin that uses XMP library to play music modules
57 Summary(pl.UTF-8): Wtyczka dla XMMS-a odtwarzająca moduły dźwiękowe z użyciem XMP
58 Group: X11/Applications/Sound
59 Requires: %{name} = %{version}-%{release}
62 %description -n xmms-input-xmp
63 XMMS plugin that uses XMP library to play music modules.
65 %description -n xmms-input-xmp -l pl.UTF-8
66 Wtyczka dla XMMS-a odtwarzająca moduły dźwiękowe z użyciem biblioteki
71 %{?with_nonfree:%patch0 -p1}
74 cp -f /usr/share/automake/config.* scripts
78 %{?with_arts:--enable-arts} \
79 %{?with_esd:--enable-esd} \
80 %{?with_nas:--enable-nas} \
81 %{?with_pulseaudio:--enable-pulseaudio} \
82 %{?with_xmms:--enable-xmms-plugin}
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_sysconfdir}
91 DESTDIR=$RPM_BUILD_ROOT
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc README docs/{CREDITS,ChangeLog,README.{awebug,fixloop,trackers,unsqsh},formats}
102 %dir %{_sysconfdir}/xmp
103 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xmp/modules.conf
104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xmp/xmp.conf
105 %attr(755,root,root) %{_bindir}/xmp
106 %{_mandir}/man1/xmp.1*
109 %files -n xmms-input-xmp
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{xmms_input_plugindir}/xmp-xmms.so