File cdp.spec of Package cdp

#
# spec file for package cdp
#
# Copyright (c) 2013 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:        0
License:        GPL-2.0+
Summary:        An Interactive Text-Mode Program for Controlling Audio CD-ROMs
Url:            http://cdp.sourceforge.net/
Group:          Productivity/Multimedia/CD/Players
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-SuSE.patch
Patch1:         %{name}-%{version}-kernel2.4.9.patch
Patch2:         %{name}-%{version}-aliasing.patch
Patch3:         %{name}-%{version}-getline.patch
Patch4:         %{name}-my_getline.patch
BuildRequires:  ncurses-devel
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
%patch4 -p1

%build
make COMP_OPT="%{optflags} -Wall -g -O0" LIBPATH="%{_libdir}"

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1/
make install DESTDIR=%{buildroot} MANDIR=%{_mandir}
ln -sf cdp.1.gz %{buildroot}%{_mandir}/man1/cdplay.1.gz

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

%changelog
openSUSE Build Service is sponsored by