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 http://bugs.opensuse.org/
#



Name:           cdp
Version:        0.33.13
Release:        294
BuildRequires:  ncurses-devel
AutoReqProv:    on
Group:          Productivity/Multimedia/CD/Players
License:        GPL v2 or later
Url:            http://sourceforge.net/projects/cdp/
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

%description
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.



%prep
%setup -q -n %{name}-0.33
%patch0
%patch1
%patch2
%patch3

%build
#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
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1/
make install \
	DESTDIR=$RPM_BUILD_ROOT \
	MANDIR=%{_mandir}
ln -sf cdp.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cdplay.1.gz

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README
%doc %{_mandir}/man?/*
%{_bindir}/*

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