File cdp.spec of Package cdp

# spec file for package cdp (Version 0.33.13)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           cdp
Version:        0.33.13
Release:        294
BuildRequires:  ncurses-devel
AutoReqProv:    on
Group:          Productivity/Multimedia/CD/Players
License:        GPL v2 or later
Summary:        An Interactive Text-Mode Program for Controlling Audio CD-ROMs
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-SuSE.diff
Patch1:         %{name}-%{version}-kernel2.4.9.diff
Patch2:         %{name}-%{version}-aliasing.diff
Patch3:         %{name}-%{version}-getline.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The cdp program plays audio CDs in your computer's CD-ROM drive. cdp
includes a full-screen interface version and a command line version.

%setup -q -n %{name}-0.33

#ln -sf /bin/true /usr/bin/strip
#make COMP_OPT="$RPM_OPT_FLAGS -Wall -g" LIBPATH="%{_libdir}" LDFLAGS="-llibefence.a"
make COMP_OPT="$RPM_OPT_FLAGS -Wall -g -O0" LIBPATH="%{_libdir}"

install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1/
make install \
ln -sf cdp.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cdplay.1.gz


%doc %{_mandir}/man?/*

* Fri Sep 12 2008
- removed broken ustat.patch
* Fri Mar 30 2007
- buildrequires ncurses-devel
* Sun Feb 11 2007
- fix build as non-root
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Jul 27 2005
- fix build (ustat patch)
- fix segmentation fault in getline.c
* Tue Jun 14 2005
- remove last change to fix build again
* Mon Apr 18 2005
- fix for new kernel headers
* Tue Feb 03 2004
- fix code that breaks strict aliasing rules
* Thu Jul 31 2003
- use Autoreqprov
* Wed Mar 05 2003
- removed binary objects from sourcetarball. use RPM_OPT_FLAGS and %%_lib.
* Fri Feb 14 2003
- updated to version 0.33-13
- removed obsolete patches tsstnd, cdplay, ncurses, glibc, glibc2, nobr,
* Mon Sep 10 2001
- opening /dev/cdrom with O_NONBLOCK through new kernel
* Mon Jun 25 2001
- fixed quit key
* Wed Jun 20 2001
- package created
- removed warning message: Couldn't get write lock
    - unnecessary message on NFS filesystems