Summary: An interactive text-mode program for playing audio CD-ROMs.
Name: cdp
Version: 0.33
Release: 29
License: GPL
URL: http://cdp.sourceforge.net
Group: Applications/Multimedia
Source: ftp://sunsite.unc.edu/pub/Linux/apps/sound/cdrom/curses/cdp-%{version}.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}-%{version}-root
BuildRequires: ncurses-devel
# There is no reason to have a CD player application on S/390 as there is no
# hardware like that on s390 and it is fairly silly to include it.
ExcludeArch: s390 s390x

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

Install cdp to play audio CDs on your system.

%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 LIBPATH=%{_libdir}

%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)
%{_bindir}/cdp
%{_bindir}/cdplay
%{_mandir}/man1/cdp.*

%changelog
* Wed Jan 29 2003 Mike A. Harris <mharris@redhat.com> 0.33-29
- Rebuilt with lib64 fix for Hammer

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Wed Nov 20 2002 Florian La Roche <Florian.LaRoche@redhat.de>
- do not build on mainframe

* Mon Oct 7 2002 Mike A. Harris <mharris@redhat.com> 0.33-26
- All-arch rebuild
- Cleaned up spec file usage of _bindir et al.

* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Sun May 26 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Tue May 21 2002 Mike A. Harris <mharris@redhat.com> 0.33-23
- Rebuilt in new environment

* Mon Feb 25 2002 Mike A. Harris <mharris@redhat.com> 0.33-22
- Added URL to cdp homepage, and rebuilt in new build environment
  Just a note - the homepage says 0.4 is coming soon, but it seems unlikely

* Mon Jun 18 2001 Helge Deller <hdeller@redhat.de>
- added BuildRequires: ncurses-devel (#44729)
- use %{_tmppath} for BuildRoot entry
- Copyright -> License

* 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