File wodim.spec of Package wodim
#
# spec file for package wodim (Version 1.1.9)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: wodim
BuildRequires: cmake file-devel gcc-c++ libcap-devel zlib-devel
License: GPL v2 only ; GPL v2 or later
Group: Productivity/Multimedia/CD/Record
PreReq: permissions /bin/cp
AutoReqProv: on
Version: 1.1.9
Release: 2
Source: cdrkit-%{version}.tar.bz2
Source1: scan_scsi.linux
Source2: cdinfo.c
Source5: README.SUSE
Patch1: cdrkit-%{version}-cmake.patch
Patch2: genisoimage-multi-extent.patch
Patch3: cdrkit-%{version}-glibc-2.10.patch
Patch4: cdrkit-1.1.9-zlib-check.patch
Url: http://cdrkit.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Tool for Writing CDRs
%description
wodim is used to record data or audio CDs on a CD-Recorder or to write
DVD media on a DVD-Recorder.
Authors:
--------
Joerg Jaspert (leader, release management)
Eduard Bloch (developer, patch integration)
Steve McIntyre (developer)
Peter Samuelson (developer, QA)
Christian Fromme (QA)
Joerg Schilling (original cdrecord)
%package devel
License: GPL v2 or later
Summary: Tool for writing CDRs - files mandatory for development
Group: Productivity/Multimedia/CD/Record
Provides: cdrecord-devel
Obsoletes: cdrecord-devel
%description devel
This package contains cdrkit libraries.
Authors:
--------
Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
%package -n cdrkit-cdrtools-compat
License: GPL v2 or later
Summary: Tool for Writing CDRs - cdrtools compatibility package
Group: Productivity/Multimedia/CD/Record
Requires: wodim genisoimage icedax
Provides: cdrecord
Obsoletes: cdrecord
Provides: cdda2wav
Obsoletes: cdda2wav
Provides: mkisofs
Obsoletes: mkisofs
%description -n cdrkit-cdrtools-compat
This package contains these compatibility symlinks: cdrecord -> wodim
mkisofs -> genisoimage cdda2wav -> icedax
Install this package if you can't use the cdrkit programs directly.
Authors:
--------
Joerg Jaspert (leader, release management)
Eduard Bloch (developer, patch integration)
Steve McIntyre (developer)
Peter Samuelson (developer, QA)
Christian Fromme (QA)
Joerg Schilling (original cdrecord)
%package -n genisoimage
License: GPL v2 or later
Summary: A program for creating CDs in Linux
Group: Productivity/Multimedia/CD/Record
Recommends: zisofs-tools
%description -n genisoimage
Genisoimage is a pre-mastering program that generates an iso9660
filesystem. It takes a snapshot of a given directory tree, and
generates a binary image which corresponds to an iso9660 filesystem
that can be written to a block device.
Authors:
--------
Eric Youngdale <eric@aib.com>
H. Peter Anvin <hpa@yggdrasil.com>
John Brezak <brezak@ch.hp.com>
Paul Eggert <eggert@twinsun.com>
Peter van der Veen <peterv@qnx.com>
R.-D. Marzusch <marzusch@odiehh.hanse.de>
%package -n icedax
License: GPL v2 or later
Summary: A CD-Audio Grabbing tool
Group: Productivity/Multimedia/CD/Grabbers
%description -n icedax
The common CD-audio grabbing tool for Linux. The sources are now
contained in the wodim source archive.
Authors:
--------
Heiko <heiko@colossus.escape.de>
%prep
%setup -q -n cdrkit-%{version}
%patch1
%patch2
%patch3 -p1
%patch4
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
cmake -DCMAKE_INSTALL_PREFIX=/usr
make VERBOSE=1 MANDIR=share/man
gcc $RPM_OPT_FLAGS %{S:2} -o cdinfo
#cd mkisofs
#make apple_driver
%install
make install DESTDIR=$RPM_BUILD_ROOT MANDIR=share/man
#mkdir patch
#mv Linux.scsi-patch patch
install -d $RPM_BUILD_ROOT/usr/bin
install icedax/readmult \
icedax/cdda2mp3 \
icedax/cdda2mp3.new \
icedax/inf2cdtext.pl \
%{S:1} \
cdinfo \
$RPM_BUILD_ROOT/usr/bin
#
ln -sf wodim $RPM_BUILD_ROOT/usr/bin/cdrecord
ln -sf readom $RPM_BUILD_ROOT/usr/bin/readcd
ln -sf icedax $RPM_BUILD_ROOT/usr/bin/cdda2wav
ln -sf genisoimage $RPM_BUILD_ROOT/usr/bin/mkisofs
ln -sf icedax $RPM_BUILD_ROOT/usr/bin/list_audio_tracks
#
ln -sf wodim.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/cdrecord.1.gz
ln -sf readom.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/readcd.1.gz
ln -sf icedax.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/cdda2wav.1.gz
ln -sf genisoimage.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/mkisofs.1.gz
#
mv genisoimage/diag/README genisoimage/diag/README.diag
mkdir -p $RPM_BUILD_ROOT/usr/%_lib
install -m 644 libhfs_iso/libhfs_iso.a \
libparanoia/libparanoia.a \
libusal/libusal.a \
librols/librols.a \
libunls/libunls.a \
$RPM_BUILD_ROOT/usr/%_lib
rm -rf $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/include/wodim
cp -a include/*.h $RPM_BUILD_ROOT/usr/include/wodim
cp -a libusal/*.h $RPM_BUILD_ROOT/usr/include/wodim
cp -a libusal/usal $RPM_BUILD_ROOT/usr/include/wodim
cp -a xconfig.h $RPM_BUILD_ROOT/usr/include/wodim
install -m 755 3rd-party/geteltorito/geteltorito.pl $RPM_BUILD_ROOT/usr/bin/geteltorito
cp %{S:5} .
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/cdda2ogg.1
rm -f $RPM_BUILD_ROOT/%{_mandir}/man5/make*
chmod 644 doc/icedax/tracknames.pl
%post
%run_permissions
if [ -f /etc/default/cdrecord -a ! -e /etc/wodim.conf ]; then
cp /etc/default/cdrecord /etc/wodim.conf
fi
%verifyscript
%verify_permissions -e /usr/bin/wodim
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ABOUT INSTALL Changelog COPYING START TODO FORK
%doc doc/ANNOUNCEMENTs doc/READMEs
#%doc %{_mandir}/man1/cdrecord.1.gz
%doc %{_mandir}/man1/wodim.1.gz
#%doc %{_mandir}/man1/readcd.1.gz
%doc %{_mandir}/man1/readom.1.gz
#%doc %{_mandir}/man1/scgcheck.1.gz
%verify(not mode) %attr(755,root,root) /usr/bin/wodim
/usr/bin/readom
#/usr/bin/scgcheck
/usr/bin/cdinfo
#/usr/bin/skel
#%attr(0555,root,root)/usr/sbin/rscsi
%attr(0555,root,root)/usr/sbin/netscsid
%files devel
%defattr(-, root, root)
/usr/include/wodim
/usr/%{_lib}/lib*.a
%files -n cdrkit-cdrtools-compat
%defattr(-, root, root)
#compatibilty symlinks:
/usr/bin/mkisofs
/usr/bin/cdda2wav
/usr/bin/cdrecord
/usr/bin/readcd
%doc %{_mandir}/man1/cdrecord.1.gz
%doc %{_mandir}/man1/readcd.1.gz
%doc %{_mandir}/man1/cdda2wav.1.gz
%doc %{_mandir}/man1/mkisofs.1.gz
%files -n genisoimage
%defattr(-, root, root)
%doc doc/genisoimage/* 3rd-party/geteltorito/README.geteltorito
%doc %{_mandir}/man1/devdump.1.gz
%doc %{_mandir}/man1/dirsplit.1.gz
%doc %{_mandir}/man1/genisoimage.1.gz
%doc %{_mandir}/man1/isodebug.1.gz
%doc %{_mandir}/man1/isodump.1.gz
%doc %{_mandir}/man1/isoinfo.1.gz
%doc %{_mandir}/man1/isovfy.1.gz
%doc %{_mandir}/man5/genisoimagerc.5.gz
/usr/bin/genisoimage
#/usr/bin/mkhybrid
/usr/bin/isoinfo
/usr/bin/devdump
/usr/bin/isodump
/usr/bin/isovfy
#/usr/bin/apple_driver
/usr/bin/isodebug
/usr/bin/dirsplit
/usr/bin/geteltorito
%files -n icedax
%defattr(-, root, root)
%doc doc/icedax/*
#%doc %{_mandir}/man1/cdda2wav.1.gz
%doc %{_mandir}/man1/icedax.1.gz
%doc %{_mandir}/man1/pitchplay.1.gz
%doc %{_mandir}/man1/readmult.1.gz
%doc %{_mandir}/man1/list_audio_tracks.1.gz
/usr/bin/readmult
/usr/bin/pitchplay
/usr/bin/scan_scsi.linux
/usr/bin/cdda2mp3
/usr/bin/cdda2ogg
/usr/bin/cdda2mp3.new
/usr/bin/icedax
/usr/bin/inf2cdtext.pl
/usr/bin/list_audio_tracks
%changelog