### $Id: libcdio.spec.in,v 1.2 2006/03/28 14:11:56 rocky Exp $
### autogenerated---edit *.spec.in

%define name    @PACKAGE@
%define ver     @VERSION@
%define rel     0

Name:           %{name}
Summary:        CD-ROM access library
Summary(de):    CD-ROM Zugriffsbibliothek
Version:        %{ver}
Release:        %{rel}
Copyright:      GPL
Group:          Development/Libraries
URL:            http://www.gnu.org/software/libcdio/

Source0:        %{name}-%{version}.tar.gz

Packager:       Manfred Tremmel <Manfred.Tremmel@iiv.de>
Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
The libcdio package contains a library for CD-ROM and CD image
access. Applications wishing to be oblivious of the OS- and
device-dependent properties of a CD-ROM or of the specific details of
various CD-image formats may benefit from using this library.

A library for working with ISO-9660 filesystems libiso9660 is
included. A generic interface for issuing MMC (multimedia commands) is
also part of the libcdio library.

%description -l de
Diese Bibliothek dient zur Kapselung von CD-ROM Zugriffen und
dessen Kontrolle. Anwendungen brauchen sich nicht um die
Betriebssystemspezifischen oder Device-Abh�¤ngigen Eigenschaften
des CD-ROM zu k�¼mmern, dies erledigt die Bibliothek.

%package devel
Summary:        libcdio development package
Summary(de):    libcdio Entwicklerpaket
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description devel
libcdio development package

%description devel -l de
libcdio Entwicklerpaket

%package -n cdinfo
Summary:        cd-info
Summary(de):    cd-info
Group:          Applications/Multimedia
Requires:       %{name} = %{version}-%{release}
#Requires:       libvcd >= 0.7.20
Requires:       libcddb
BuildRequires:  libcddb-devel
#BuildRequires:  libvcd-devel >= 0.7.20

%description -n cdinfo

cd-info prints various information about a CD or CD image, analyzes
and gives information about each of the tracks, and tries to detect
the type of CD (e.g. VCD, Audio CD, PhotoCD, a bootable CD, etc.). For
audio CD's more information is given if libcddb is installed. For
Video CD's more information is given if the libvcdinfo library is
installed.


%description -n cdinfo -l de

cd-info gibt verschiedene informationen �ber eine CD oder ein CD-Image
aus, analysiert und informiert �ber jeden der Tracks und versucht, den
Typ der CD zu ermitteln (z.B. VCD, Audio-CD, PhotoCD, eine bootbare CD
usw.).
Zu Audio-CDs werden weitere Informationen ausgegeben, wenn die libcddb
installiert ist. Zu Video-CDs werden mehr Informationen ausgegeben, wenn
die libvcdinfo installiert ist.

%prep
%setup

%build
%configure
%__make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -rf ${RPM_BUILD_ROOT}/%{_mandir}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS INSTALL NEWS THANKS TODO
%{_libdir}/lib*.so.*

%files devel
%defattr(-, root, root)
%doc ChangeLog COPYING README
%{_libdir}/lib*.so
%{_libdir}/*.*a
%{_includedir}/cdio/*
%{_infodir}/*
%{_libdir}/pkgconfig/*.pc

%files -n cdinfo
%defattr(-,root,root)
%{_bindir}/*

%changelog
* Sun Feb 15 2004 Manfred Tremmel <Manfred.Tremmel@iiv.de>
- some little changes

* Sat Feb 14 2004 Rocky Bernstein <rocky@gnu.org>
- require vcdimager 0.7.20, small rpm fixes

* Tue Sep 9 2003 Rocky Bernstein <rocky@gnu.org>
- small fixes really from Frantisek Dvorak <valtri@atlas.cz>

* Sun Aug 30 2003 Frantisek Dvorak <valtri@atlas.cz>
- two files added

* Wed Aug 06 2003 Rocky Bernstein <rocky@gnu.org>
- fixes really Manfred Tremmel <Manfred.Tremmel@iiv.de>
  at http://www.iiv.de/schwinde/buerger/tremmel/

* Fri Apr 25 2003 Manfred Tremmel <Manfred.Tremmel@iiv.de>
- first spec file
