]> git.pld-linux.org Git - packages/xmp.git/blob - xmp.spec
- Obsoletes for -X11 and -output-* packages
[packages/xmp.git] / xmp.spec
1 # TODO: bmp, audacious plugins
2 #
3 # Conditional build:
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)
10 #
11 Summary:        Extended Module Player
12 Summary(pl.UTF-8):      Rozszerzony odtwarzacz modułów
13 Name:           xmp
14 Version:        3.3.0
15 Release:        1
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:  0ac15cdb68cf0a08f418d37b4c1843bd
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 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
28 %{?with_xmms:BuildRequires:     rpmbuild(macros) >= 1.125}
29 %{?with_xmms:BuildRequires:     xmms-devel}
30 BuildRequires:  xorg-lib-libX11-devel
31 BuildRequires:  xorg-lib-libXt-devel
32 Obsoletes:      xmp-X11
33 Obsoletes:      xmp-output-arts
34 Obsoletes:      xmp-output-esd
35 Obsoletes:      xmp-output-nas
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 xmp is a multi-format module player for UNIX. In machines with GUS or
40 AWE cards xmp takes advantage of the OSS sequencer to play modules
41 with virtually no system load. Using software mixing, xmp plays at
42 sampling rates up to 48kHz in mono or stereo, 8 or 16 bits, signed or
43 unsigned, little or big endian samples with 32 bit linear
44 interpolation.
45
46 %description -l pl.UTF-8
47 xmp jest odtwarzaczem modułów w wielu formatach. Potrafi obsłużyć
48 karty GUS i AWE, korzystając z sekwencera OSS, aby nie obciążać
49 systemu. Używając programowego miksowania, może odgrywać z
50 częstotliwością próbkowania do 48kHz mono lub stereo, 8 lub 16 bitów,
51 próbki ze znakiem lub bez, little- lub big-endian z 32-bitową
52 interpolacją.
53
54 %package -n xmms-input-xmp
55 Summary:        XMMS plugin that uses XMP library to play music modules
56 Summary(pl.UTF-8):      Wtyczka dla XMMS-a odtwarzająca moduły dźwiękowe z użyciem XMP
57 Group:          X11/Applications/Sound
58 Requires:       %{name} = %{version}-%{release}
59 Requires:       xmms
60
61 %description -n xmms-input-xmp
62 XMMS plugin that uses XMP library to play music modules.
63
64 %description -n xmms-input-xmp -l pl.UTF-8
65 Wtyczka dla XMMS-a odtwarzająca moduły dźwiękowe z użyciem biblioteki
66 XMP.
67
68 %prep
69 %setup -q -n %{name}-%{version}
70 %{?with_nonfree:%patch0 -p1}
71
72 %build
73 cp -f /usr/share/automake/config.* scripts
74 %{__aclocal}
75 %{__autoconf}
76 %configure \
77         %{?with_arts:--enable-arts} \
78         %{?with_esd:--enable-esd} \
79         %{?with_nas:--enable-nas} \
80         %{?with_pulseaudio:--enable-pulseaudio} \
81         %{?with_xmms:--enable-xmms-plugin}
82 %{__make} -j1 \
83         V=1
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT%{_sysconfdir}
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc README docs/{CREDITS,ChangeLog,README.{awebug,fixloop,trackers,unsqsh},formats}
101 %dir %{_sysconfdir}/xmp
102 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xmp/modules.conf
103 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xmp/xmp.conf
104 %attr(755,root,root) %{_bindir}/xmp
105 %{_mandir}/man1/xmp.1*
106
107 %if %{with xmms}
108 %files -n xmms-input-xmp
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{xmms_input_plugindir}/xmp-xmms.so
111 %endif
This page took 0.08104 seconds and 4 git commands to generate.