Summary: An interactive text-mode program for playing audio CD-ROMs.
Summary(ja): オーディオ CD-ROM 再生用のテキストベースプログラム
Name: cdp
Version: 0.33
Release: 20vl2
Copyright: GPL2
Group: Applications/Multimedia
Source: ftp://sunsite.unc.edu/pub/Linux/apps/sound/cdrom/curses/cdp-0.33.tgz
Patch: cdp-0.33-fsstnd.patch
Patch1: cdp-0.33-cdplay.patch
Patch2: cdp-0.33-ncurses.patch
Patch3: cdp-0.33-glibc.patch
Patch4: cdp-0.33-nobr.patch
Patch5: cdp-0.33-glibc2.patch
Patch6: cdp-0.33-changer.patch
Patch7: cdp-keys.patch
Patch8: cdp-nonblock.patch
Patch9: cdp-fhs.patch
BuildRoot: %{_tmppath}/%{name}-root


%description
Cdp is an interactive text-mode program for playing audio CDs.

Install cdp to play audio CDs on your system.


%description -l ja
Cdp はオーディオ CD を再生するテキストベースのプログラムです．

あなたのシステムでオーディオ CD を再生する場合は cdp を
インストールして下さい．


%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%build
make 

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}


make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING ChangeLog INSTALL *.lsm
%{_bindir}/cdp
%{_bindir}/cdplay
%{_mandir}/man1/cdp.*


%changelog
* Tue Jun 12 2001 Jun Nishii <jun@vinelinux.org>
- 0.33-20vl2
- added %doc

* Wed Dec 20 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- 0.33-20vl1
- based on 0.33-20 from Rawhide
- use better macros
- added Japanese summary and description

* Thu Dec  7 2000 Crutcher Dunnavant <crutcher@redhat.com>
- rebuild for new tree

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- rebuild with new ncurses

* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
- handle compressed man pages

* Thu Sep 16 1999 Bill Nottingham <notting@redhat.com>
- fix a segfault

* Thu Sep 09 1999 Cristian Gafton <gafton@redhat.com>
- add cd changer patch from Alexander Dietrich <alexander.dietrich@iname.com>

* Sun May 16 1999 Jeff Johnson <jbj@redhat.com>
- don't rely on (broken!) rpm %patch (#2735)

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 12)

* Mon Jan 23 1999 Michael Maher <mike@redhat.com>
- changed group, this app will never be updated.

* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
- not sure if this package will ever be updated. 
- rebuilt for 6.0

* Sat Aug 15 1998 Jeff Johnson
- build root

* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Wed Apr 15 1998 Erik Troan <ewt@redhat.com>
- built against new ncurses

* Tue Oct 21 1997 Otto Hammersmith <otto@redhat.com>
- fixed src url

* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
- built against glibc
