]> git.pld-linux.org Git - packages/xmp.git/blobdiff - xmp.spec
- updated to 4.2.0
[packages/xmp.git] / xmp.spec
index 873186b9dab7b2a31dd2c065794ec318dc503c24..373e22a7933bd0f7ab81657f57075414b0cfcdc3 100644 (file)
--- a/xmp.spec
+++ b/xmp.spec
@@ -1,64 +1,73 @@
+#
+# Conditional build:
+%bcond_without pulseaudio      # PulseAudio audio output driver
+#
 Summary:       Extended Module Player
-Summary(pl):   Rozszerzony odtwarzacz modu³ów
+Summary(pl.UTF-8):     Extended Module Player - rozszerzony odtwarzacz modułów
 Name:          xmp
-Version:       2.0.3
-Release:       2
-License:       GPL
+Version:       4.2.0
+Release:       1
+License:       GPL v2+
 Group:         Applications/Sound
-Source0:       http://xmp.helllabs.org/pkg/%{version}/%{name}-%{version}.tar.bz2
-URL:           http://xmp.helllabs.org/
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-BuildRequires: autoconf
+Source0:       https://downloads.sourceforge.net/xmp/%{name}-%{version}.tar.gz
+# Source0-md5: db41dd01ec0919091c322b1d74bf56e7
+URL:           https://xmp.sourceforge.net/
+BuildRequires: alsa-lib-devel
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
-BuildRequires: XFree86-devel
-
-%define                _xbindir        /usr/X11R6/bin
-%define                _xmandir        /usr/X11R6/man
+BuildRequires: libxmp-devel >= 4.4
+BuildRequires: pkgconfig
+%{?with_pulseaudio:BuildRequires:      pulseaudio-devel}
+Requires:      libxmp >= 4.4
+Obsoletes:     xmp-X11 < 2.7
+Obsoletes:     xmp-output-arts < 2.7
+Obsoletes:     xmp-output-esd < 2.7
+Obsoletes:     xmp-output-nas < 2.7
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-xmp is a multi-format module player for UNIX. In machines with GUS or
-AWE cards xmp takes advantage of the OSS sequencer to play modules
-with virtually no system load. Using software mixing, xmp plays at
-sampling rates up to 48kHz in mono or stereo, 8 or 16 bits, signed or
-unsigned, little or big endian samples with 32 bit linear
-interpolation.
+This is the Extended Module Player, a portable module player that
+plays over 90 mainstream and obscure module formats, including
+Protracker MOD, Fasttracker II XM, Scream Tracker 3 S3M and Impulse
+Tracker IT files.
 
-%description -l pl
-xmp jest odtwarzaczem modu³ów w wielu formatach. Potrafi obs³u¿yæ
-karty GUS i AWE, korzystaj±c z sekwencera OSS, aby nie obci±¿aæ
-systemu. U¿ywaj±c programowego miksowania, mo¿e odgrywaæ z
-czêstotliwo¶ci± próbkowania do 48kHz mono lub stereo, 8 lub 16 bitów,
-próbki ze znakiem lub bez, little- lub big-endian z 32-bitow±
-interpolacj±.
+%description -l pl.UTF-8
+XMP (Extended Module Player - rozszerzony odtwarzacz modułów) to
+przenośny odtwarzacz modułów muzycznych, znający ponad 90 głównych i
+mniej znanych formatów, w tym: Protracker (MOD), Scream Tracker 3
+(S3M), Fast Tracker II (XM) oraz Impulse Tracker (IT).
 
 %prep
 %setup -q
 
 %build
-aclocal
-autoconf
-%configure
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       %{!?with_pulseaudio:--disable-pulseaudio} \
+       --disable-silent-rules
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_xbindir},{%{_mandir},%{_xmandir}}/man1}
-install etc/xmp-modules.conf etc/xmp.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install src/main/xmp $RPM_BUILD_ROOT%{_bindir}
-install src/main/xxmp $RPM_BUILD_ROOT%{_xbindir}
-install docs/xmp.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install docs/xxmp.1 $RPM_BUILD_ROOT%{_xmandir}/man1
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
-gzip -9nf README docs/{CREDITS,ChangeLog,README.fixloop,README.trackers,README.unsqsh} etc/magic
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc *.gz docs/*.gz etc/*.gz
-%config %{_sysconfdir}/*
+%doc CREDITS Changelog README
+%dir %{_sysconfdir}/xmp
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xmp/modules.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xmp/xmp.conf
 %attr(755,root,root) %{_bindir}/xmp
-%attr(755,root,root) %{_xbindir}/xxmp
-%{_mandir}/man1/*
-%{_xmandir}/man1/*
+%{_mandir}/man1/xmp.1*
This page took 0.033042 seconds and 4 git commands to generate.