]> git.pld-linux.org Git - packages/xmp.git/blob - xmp.spec
- updated to 3.4.1
[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.4.1
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:  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
33 Obsoletes:      xmp-X11
34 Obsoletes:      xmp-output-arts
35 Obsoletes:      xmp-output-esd
36 Obsoletes:      xmp-output-nas
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
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
45 interpolation.
46
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ą
53 interpolacją.
54
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}
60 Requires:       xmms
61
62 %description -n xmms-input-xmp
63 XMMS plugin that uses XMP library to play music modules.
64
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
67 XMP.
68
69 %prep
70 %setup -q
71 %{?with_nonfree:%patch0 -p1}
72
73 %build
74 cp -f /usr/share/automake/config.* scripts
75 %{__aclocal}
76 %{__autoconf}
77 %configure \
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}
83 %{__make} -j1 \
84         V=1
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_sysconfdir}
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
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*
107
108 %if %{with xmms}
109 %files -n xmms-input-xmp
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{xmms_input_plugindir}/xmp-xmms.so
112 %endif
This page took 0.06505 seconds and 4 git commands to generate.