summaryrefslogtreecommitdiff
path: root/madplay.spec
blob: 6125d039f68abc731e5aeff55464a25ecbdffb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Conditional build:
%bcond_without	alsa	# without ALSA support
%bcond_without	esd	# without esd support
#
Summary:	MPEG audio decoder and player
Summary(pl.UTF-8):	Dekoder i odtwarzacz audio w formacie MPEG
Name:		madplay
Version:	0.15.2b
Release:	3
License:	GPL
Group:		Applications/Sound
Source0:	ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz
# Source0-md5:	6814b47ceaa99880c754c5195aa1aac1
Patch0:		%{name}-locale_names.patch
URL:		http://www.underbit.com/products/mad/
%{?with_alsa:BuildRequires:	alsa-lib-devel >= 0.9.0}
BuildRequires:	automake
%{?with_esd:BuildRequires:	esound-devel}
BuildRequires:	libmad-devel
BuildRequires:	libid3tag-devel
Obsoletes:	mad
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Madplay is a command-line MPEG audio decoder and player based on the
MAD library (libmad). For details about MAD, see the libmad package
distributed separately.

%description -l pl.UTF-8
Madplay to działający w oparciu o wiersz poleceń odtwarzacz plików
MPEG audio (m.in. MP3). Jest on oparty na bibliotece dekodującej MAD
(libmad).

%prep
%setup -q
%patch0 -p1

mv -f po/{no,nb}.po

%build
cp -f /usr/share/automake/config.* .
%configure \
	%{?with_alsa:--with-alsa} \
	%{!?with_esd:--without-esd}

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc CHANGES README CREDITS TODO
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*