]> git.pld-linux.org Git - packages/wavplay.git/blob - wavplay.spec
- quote %{__cc}
[packages/wavplay.git] / wavplay.spec
1 Summary:        Play WAV files under Linux
2 Summary(pl):    Odtwarzacz plików d¼wiêkowych WAV pod Linuksa
3 Name:           wavplay
4 Version:        1.4
5 Release:        9
6 License:        GPL
7 Group:          Applications/Sound
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/apps/sound/players/%{name}-%{version}.tar.gz
9 # Source0-md5:  726c58f47c0dbc3b58ff6c42300d518e
10 Patch0:         %{name}-make+res.patch
11 Patch1:         %{name}-X11.patch
12 Patch2:         %{name}-va_arg_fix.patch
13 Patch3:         %{name}-types.patch
14 Patch4:         %{name}-nonblock.patch
15 URL:            http://www.vaxxine.com/ve3wwg/gnuwave.html
16 BuildRequires:  XFree86-devel
17 BuildRequires:  motif-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _appdefsdir     /usr/X11R6/lib/X11/app-defaults
21
22 %description
23 Wavplay is a simple command-line tool that allows to play WAV audio
24 files under Linux.
25
26 %description -l pl
27 Wavplay jest prostym narzêdziem które pozwala odtwarzaæ pliki
28 d¼wiêkowe typu WAV pod Linuksem.
29
30 %package X11
31 Summary:        xltwavplay utility
32 Summary(pl):    Narzêdzie "xltwavplay"
33 Group:          X11/Applications/Sound
34 Requires:       %{name} = %{version}-%{release}
35
36 %description X11
37 The xltwavplay program now allows the user to point and click his way
38 through the playing of selected WAV files, changing of options and
39 performing recordings.
40
41 %description X11 -l pl
42 Program xltwavplay pozwala u¿ytkownikowi szybko i ³atwo odgrywaæ
43 wybrane pliki WAV, zmieniaæ ustawienia oraz nagrywaæ w³asne pliki.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49 %patch2
50 %patch3 -p1
51 %patch4 -p1
52
53 %build
54 %{__make} \
55         CC="%{__cc}" \
56         OPT="%{rpmcflags}" \
57         XLDOPTS="-L/usr/X11R6/%{_lib} -lXm -lXmu -lXt -lX11" \
58         INSTDIR=%{_bindir}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_appdefsdir}}
63
64 %{__make} install \
65         INSTDIR=$RPM_BUILD_ROOT%{_bindir} \
66         XINSTDIR=$RPM_BUILD_ROOT%{_bindir} \
67         RESDIR=$RPM_BUILD_ROOT%{_appdefsdir}
68
69 install wavplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
70 echo ".so wavplay.1" > $RPM_BUILD_ROOT%{_mandir}/man1/wavrec.1
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README BUGS
78 %attr(755,root,root) %{_bindir}/wav*
79 %{_mandir}/man*/*
80
81 %files X11
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/xltwavplay
84 %{_appdefsdir}/xltwavplay
This page took 0.097373 seconds and 3 git commands to generate.