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