File cdrtools.spec of Package cdrtools-3.0

#
# spec file for package cdrecord (Version 2.01.01)
#


BuildRequires: smake file-devel gcc-c++ libcap-devel libstdc++-devel alsa-devel

Name:         cdrecord
License:      CDDL, GPL, Other License(s), see package
Group:        Productivity/Multimedia/CD/Record
PreReq:       permissions
AutoreqProv:  on
Version:      3.00
Release:      1
Source:       cdrtools_%{version}.orig.tar.gz
Source2:      README.schily-cdrtools
Source3:      cdrecord.easy
Source4:      cdrecord.secure
Source5:      cdrecord.paranoid
Source6:      cdrtools.rpmlintrc
Source7:      cdda2wav.easy
Source8:      cdda2wav.secure
Source9:      cdda2wav.paranoid
# Please note: Joerg Schilling (the author) does not like us applying patches to
# his sources. We will try to honor this request if possible.
# -Marcus Meissner <meissner@suse.de>
URL:          http://cdrecord.berlios.de/private/cdrecord.html
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Summary:      Tool for writing CDRs

%description
Cdrecord allows you to create CDs/DVDs/BDs on a corresponding writer.
This is the original version from Joerg Schilling.

Build from clean sources without patches.

Authors:
--------
    Joerg Schilling <joerg.schilling@fokus.fraunhofer.de>

%package devel
Summary:      Development files for cdrecord
Group:        Development/Libraries/Other

%description devel
Cdrecord allows you to create CDs/DVDs/BDs on a corresponding writer.
This is the original version from Joerg Schilling. This development
package contains static libraries and header files.

Build from clean sources without patches.

Authors:
--------
    Joerg Schilling <joerg.schilling@fokus.fraunhofer.de>

%package -n mkisofs
Summary:      A program for creating CDs in Linux
Group:        Productivity/Multimedia/CD/Record
Requires:     zisofs-tools

%description -n mkisofs
Mkisofs 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.

build from clean sources without patches

Authors:
--------
    Joerg Schilling <joerg.schilling@fokus.fraunhofer.de>
    James Pearson <jcpearso@ge.ucl.ac.uk>

%package -n cdda2wav
Summary:      A CD-Audio Grabbing tool
Group:        Productivity/Multimedia/CD/Grabbers

%description -n cdda2wav
The common CD-audio grabbing tool for Linux. The sources are now
contained in the cdrecord source archive.

build from clean sources without patches

Authors:
--------
    Heiko Eissfeldt <heiko@hexco.de>

%package -n btcflash
Summary:        Firmware flash utility for BTC DRW1008 DVD+/-RW recorder
Group:          Productivity/Multimedia

%description -n btcflash
This is a firmware flash utility for BTC DRW1008 DVD+/-RW recorders.

Authors:
--------
    Joerg Schilling <joerg.schilling@fokus.fraunhofer.de>

%package -n schily-cdrtools
Summary:	Collection of Joerg Schilling's version of the cdrtools
Group:		Productivity/Multimedia
Conflicts:	cdrkit-cdrtools-compat
Requires:	cdrecord mkisofs cdda2wav
%description -n schily-cdrtools
This meta-package obsoletes cdrkit-cdrtools-compat. It will install the
original versions of the cdrtools binaries.

%prep
%setup -q -n cdrtools-3.00

%build
export CFLAGS="$RPM_OPT_FLAGS"
smake INS_BASE=/usr INS_RBASE=/ DESTDIR=$RPM_BUILD_ROOT MANDIR=man COPTX=-DTRY_EXT2_FS


%install
smake INS_BASE=/usr INS_RBASE=/ DESTDIR=$RPM_BUILD_ROOT MANDIR=man COPTX=-DTRY_EXT2_FS install 
if [ "%_lib" != "lib" ] ; then
  mkdir -p $RPM_BUILD_ROOT/usr/%_lib
  mv $RPM_BUILD_ROOT/usr/lib/lib*.a $RPM_BUILD_ROOT/usr/%_lib
fi
rm -Rf $RPM_BUILD_ROOT/usr/lib/profiled
rm -rf $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/include/cdrecord
cp -a incs/*/*.h $RPM_BUILD_ROOT/usr/include/cdrecord
cp -a libscg/scg $RPM_BUILD_ROOT/usr/include/cdrecord
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/cdda2ogg.1

mkdir $RPM_BUILD_ROOT/usr/share/doc/schily-cdrtools
cp %{S:2} $RPM_BUILD_ROOT/usr/share/doc/schily-cdrtools

#mkdir $RPM_BUILD_ROOT/etc
#mkdir $RPM_BUILD_ROOT/etc/default

mkdir -p $RPM_BUILD_ROOT/etc/permissions.d/
%if 0%suse_version != 1110
cp %{S:3} %{S:4} %{S:5} $RPM_BUILD_ROOT/etc/permissions.d/
%endif
cp %{S:7} %{S:8} %{S:9} $RPM_BUILD_ROOT/etc/permissions.d/

%post
%run_permissions

%verifyscript
%verify_permissions -e /usr/bin/cdrecord

%clean
rm -Rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc ABOUT AN* BUILD CDDL.Schily.txt Changelog COMPILE CONTRIBUTING COPYING GPL-2.0.txt INSTALL LGPL-2.1.txt PORTING START
%docdir /usr/share/doc/cdrecord
/usr/share/doc/cdrecord 
%docdir /usr/share/doc/rscsi
/usr/share/doc/rscsi 
%doc /usr/share/man/man1/cdrecord.1.gz
%doc /usr/share/man/man1/readcd.1.gz
%doc /usr/share/man/man1/scgcheck.1.gz
%doc /usr/share/man/man1/rscsi.1.gz
%config /etc/default/cdrecord
%config /etc/default/rscsi
%if 0%suse_version == 1110
%verify(not mode)%attr(0755,root,root)/usr/bin/cdrecord
%verify(not mode)%attr(0755,root,root)/usr/bin/readcd
%verify(not mode)%attr(0755,root,root)/usr/sbin/rscsi
%else
%verify(not mode)%attr(0711,root,root)/usr/bin/cdrecord
%verify(not mode)%attr(0711,root,root)/usr/bin/readcd
%verify(not mode)%attr(0711,root,root)/usr/sbin/rscsi
%config /etc/permissions.d/cdrecord.*
%endif
/usr/bin/scgcheck
/usr/bin/scgskeleton

%files -n btcflash
%defattr(-, root, root)
%doc /usr/share/man/man1/btcflash.1.gz
/usr/bin/btcflash

%files devel
%defattr(-, root, root)
%doc /usr/share/man/man5/makefiles.5.gz
%doc /usr/share/man/man5/makerules.5.gz
%doc /usr/share/man/man1/scgskeleton.1.gz
/usr/%{_lib}/lib*.a
%dir /usr/include/cdrecord
/usr/include/cdrecord/*

%files -n mkisofs
%defattr(-, root, root)
%doc mkisofs/ChangeLog mkisofs/ChangeLog.mkhybrid mkisofs/COPYING mkisofs/RELEASE mkisofs/TODO
%docdir /usr/share/doc/mkisofs
/usr/share/doc/mkisofs
%doc /usr/share/man/man8/*
%dir /usr/lib/siconv
/usr/lib/siconv/*
/usr/bin/mkisofs
/usr/bin/mkhybrid
/usr/bin/isoinfo
/usr/bin/devdump
/usr/bin/isodump
/usr/bin/isovfy
/usr/bin/isodebug

%files -n cdda2wav
%defattr(-, root, root)
%doc cdda2wav/FAQ cdda2wav/HOWTOUSE cdda2wav/NEEDED cdda2wav/TODO cdda2wav/THANKS
%docdir /usr/share/doc/cdda2wav
/usr/share/doc/cdda2wav
%docdir /usr/share/doc/libparanoia
/usr/share/doc/libparanoia
%doc /usr/share/man/man1/cdda2wav.1.gz
%doc /usr/share/man/man1/cdda2mp3.1.gz
%verify(not mode)%attr(0711,root,root)/usr/bin/cdda2wav
%verify(not mode)%attr(0755,root,root)/usr/bin/cdda2mp3
%verify(not mode)%attr(0755,root,root)/usr/bin/cdda2ogg
%config /etc/permissions.d/cdda2wav.*

%files -n schily-cdrtools
%defattr(-, root, root)
%docdir /usr/share/doc/schily-cdrtools
/usr/share/doc/schily-cdrtools

%changelog -n cdrecord
* Wed Jun 02 2010 - hnch@mgx.net
- Updated to a80
* Tue May 18 2010 - hnch@gmx.net
- Updated to a79 (RC1)
* Tue Apr 06 2010 - hnch@gmx.net
- Updated to a77
* Wed Feb 17 2010 - hnch@gmx.net
- Updated to a76
* Mon Feb 08 2010 - hnch@gmx.net
- Updated to a75
* Tue Feb 02 2010 - hnch@gmx.net
- Updated to a74
* Mon Jan 11 2010 - hnch@gmx.net
- Updated to a72
* Tue Jan 05 2010 - hnch@gmx.net
- Updated to a71
* Tue Dec 29 2009 - hnch@gmx.net
- Updated to a70
* Tue Dec 01 2009 - hnch@gmx.net
- Updated to a69
* Fri Nov 20 2009 - hnch@gmx.net
- Updated to a68
* Mon Nov 02 2009 - hnch@gmx.net
- Updated to a67
* Wed Oct 28 2009 - hnch@gmx.net
- Added /etc/permission.d/ stuff also for other binaries
* Wed Oct 28 2009 - hnch@gmx.net
- Fixed failed permissions check on 11.1
* Mon Oct 26 2009 - hnch@gmx.net
- fixed /etc/permissions.d/ files
* Sun Oct 11 2009 - hnch@gmx.net
- updated to a66
* Tue Sep 15 2009 - hnch@gmx.net
- updated to a65
* Sun Sep 06 2009 - hnch@gmx.net
- more minor fixes
* Sat Sep 05 2009 - hnch@gmx.net
- minor fixes in order to be able to build in Factory
* Fri Sep 04 2009 - hnch@gmx.net
- updated to a64
* Tue Aug 11 2009 - hnch@gmx.net
- Cleaned up spec file a bit in order to minimize rpmlint warnings.
* Thu Aug 06 2009 - hnch@gmx.net
- updated to a62
* Thu Jul 16 2009 - hnch@gmx.net
- updated to a61
* Mon May 25 2009 - hnch@gmx.net
- updated to a60
* Sat Apr 25 2009 - hnch@gmx.net
- updated to a59
* Tue Apr 07 2009 - hnch@gmx.net
- updated to a58
* Sat Jan 31 2009 - hnch@gmx.net
- updated to a57
* Thu Jan 01 2009 - hnch@gmx.net
- updated to a55
- corrected schily-cdrtools conflicts
- added dir and docdir directives
- corrected /etc/default install mechanism
- added pseudo file for schily-cdrtools
- patched hardcoding of libdirs in binaries
* Tue Oct 28 2008 - hnch@gmx.net
- updated to a52
* Sat Oct 04 2008 - hnch@gmx.net
- updated to a50
* Fri Sep 19 2008 - hnch@gmx.net
- updated to a49
* Sun Sep 07 2008 - hnch@gmx.net
- updated to a48
* Sun Aug 17 2008 - hnch@gmx.net
- fix 64 bit build
- apply patch to have true installation path compiled in
- fix several issues suggested by rpmlint
* Sat Aug 16 2008 - hnch@gmx.net
- cleaned up spec file to avoid rpmlint errors
* Fri Aug 15 2008 - hnch@gmx.net
- updated to a47-pre
* Wed Jun 11 2008 - hnch@gmx.net
- updated to a40
* Sat Jan 05 2008 - hnch@gmx.net
- updated to a37
* Sat Nov 11 2007 - hnch@gmx.net
- changed Obsoletes to allow friendly coexistence with cdrkit on >= 10.3 systems
- replaced list of authors with ones from ABOUT file
* Sat Nov 04 2007 - hnch@gmx.net
- changed MANDIR to SuSE default /usr/share/man instead of /usr/man
- minor changes what files do prevent from being packaged
- add a line to /etc/permissions.local to ensure cdrecord is installed
  suid root, this will override the line in /etc/permissions
* Sun Nov 04 2007 - weigelt.bernd@web.de
- include/cdrecord add to devel-package
- test [ "%%_lib" != "lib" ] for 64bit-Systems
- merged spec files removed my ugly lines ;-) 
* Sat Nov 03 2007 - hnch@gmx.net
- recycled spec file for a36 release, major revisions
* Thu Mar 23 2006 - nadvornik@suse.cz
- updated feedback URL [#160326]
* Tue Feb 14 2006 - nadvornik@suse.cz
- do not try to redefine printf before including stdio.h
* Thu Feb 02 2006 - nadvornik@suse.cz
- removed confusing messages about the recommended interface
  and added README.SUSE [#147236]
- do not stop scanning on inaccessible devices [#144843, #147236]
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 - lnussel@suse.de
- restore original behavior of also enumerating sg devices when not
  running root (#141228)
* Mon Jan 02 2006 - nadvornik@suse.cz
- fixed dangerous compiler warnings
- added workaround for gcc.gnu.org/PR25639
* Tue Oct 11 2005 - nadvornik@suse.cz
- built with -fno-strict-aliasing again as new problems appeared
* Fri Aug 12 2005 - nadvornik@suse.cz
- patched mkisofs to fail on file > 4GB [#80583]
* Fri Apr 01 2005 - uli@suse.de
- fixed to build on ARM(v5tel)
* Tue Feb 08 2005 - nadvornik@suse.cz
- call mlockall only for getuid() == 0
* Mon Sep 13 2004 - nadvornik@suse.cz
- updated to final 2.01 [#43565]
- -fno-strict-aliasing is no longer required
* Tue Sep 07 2004 - nadvornik@suse.cz
- fixed possible problems in resmgr and iconv patches
- use generic_scsi interface as default for all devices in cdda2wav
* Mon Aug 23 2004 - nadvornik@suse.cz
- updated to 2.01a35 [#43565]
- DVD patch is applied to separate binary cdrecord-dvd
- dropped silo patch
- dropped the privacy patch, added note to mkisofs manpage instead [#33275]
- compiled with -fno-strict-aliasing to minimize needed patches
- fixed printing error messages from resmgr patch [#44024]
* Mon Apr 19 2004 - nadvornik@suse.cz
- fixed function return value
* Fri Apr 02 2004 - nadvornik@suse.cz
- changed some strings from 8859-1 to UTF-8 [37840]
  a better fix would be either use only ascii characters or use locale
* Fri Mar 26 2004 - nadvornik@suse.cz
- do not scan ATA devices if no scsi devices are found, because
  the output would be confusing [#37081]
- fixed return value from fixate_mdvd
* Mon Mar 08 2004 - nadvornik@suse.cz
- updated to 2.01a27
- chrp-boot patch is integrated in mainstream
- TAO mode should be explicitely specified by -tao
* Thu Feb 12 2004 - axboe@suse.de
- Kill silly Joerg warnings
- Add note about ATA being preferred over ATAPI
* Wed Feb 04 2004 - nadvornik@suse.cz
- added iconv patch to mkisofs [#34274]
- fixed scanning of ATA devices with resmgr
- fixed dangerous gcc warnings
* Thu Jan 29 2004 - nadvornik@suse.cz
- updated to 2.01a25
- updated dvd patch - DVD+RW support
- added geteltorito script to mkisofs package
- fixed information leak in mkisofs by using debian patch [#33275]
- fixed paride handling in resmgr patch [#29601]
- try to open device directly if resmgr fails
- built as non-root user
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr
* Thu Oct 30 2003 - ro@suse.de
- package according to permissions.secure and call run_permissions
* Thu Sep 11 2003 - nadvornik@suse.cz
- added new resmgr patch with paride support from okir@suse.de [#29601]
* Wed Sep 10 2003 - nadvornik@suse.cz
- made the check for sequential recording silent
* Fri Sep 05 2003 - nadvornik@suse.cz
- fixed return value from getdisktype_mdvd
* Sun Aug 31 2003 - ro@suse.de
- create cdrecord-devel package and package libscg files
* Wed Aug 13 2003 - nadvornik@suse.cz
- updated to 2.01a18
- added patch for dvd support
* Mon Aug 11 2003 - nadvornik@suse.cz
- added chrp-boot patch
* Wed May 28 2003 - nadvornik@suse.cz
- remove/install unpackaged files from buildroot
* Mon Jan 13 2003 - nadvornik@suse.cz
- updated to 2.0 final
* Wed Dec 18 2002 - froh@suse.de
- re-enable cdda2wav on s390 (#22498)
* Tue Nov 05 2002 - okir@suse.de
- Proactive security patch: added resmgr support - cdrecord now
  performs a minimum of initialization as root, then drops privileges
  and uses resmgr to access device files.
* Thu Sep 26 2002 - nadvornik@suse.cz
- removed zisofs-tools, it is a separate package,
- mkisofs requires zisofs-tools
* Tue Sep 24 2002 - nadvornik@suse.cz
- updated to 1.11a34
- a bug with cdrecord -fix has been fixed [#19853]
- improved man page
- other fixes and improvements
- added zisofs-tools for transparent compression
* Tue Sep 03 2002 - nadvornik@suse.cz
- added patch for format string security problem [#18756]
* Wed Jul 31 2002 - nadvornik@suse.cz
- updated to 1.11a28
- cdrecord now writes MCN/ISRC even in RAW mode
* Fri Jul 26 2002 - nadvornik@suse.cz
- updated to 1.11a27:
- DVD-Video support
* Wed Jul 10 2002 - meissner@suse.de
- add RULES link for ppc64, s390x.
* Tue May 14 2002 - ro@suse.de
- add RULES link for x86_64
* Tue Apr 30 2002 - uli@suse.de
- update -> 1.11a21 (fixes probs with xcdroast >=0.98alpha9)
* Fri Mar 01 2002 - nadvornik@suse.cz
- fixed man pages for isodump, devdump, isovfy [bug #14012]
* Tue Feb 26 2002 - nadvornik@suse.cz
- fixed "#!/bin/sh" line in cdda2mp3.new
* Mon Jan 21 2002 - nadvornik@suse.cz
- updated to 1.11a13:
- new script inf2cdtext.pl for creating CD-text data
* Fri Dec 07 2001 - nadvornik@suse.cz
- updated to 1.11a12:
- readcd: changed handling of Table of contents
- mkisofs: first UDF support
* Tue Oct 30 2001 - uli@suse.de
- added patch from zisofs-tools allowing for creation of compressed
  ISO filesystems
* Mon Sep 03 2001 - nadvornik@suse.cz
- changed version string 1.11a06 -> 1.11.a06
* Tue Aug 14 2001 - nadvornik@suse.cz
- update to 1.11a06
* Thu Jul 12 2001 - nadvornik@suse.cz
- update to 1.11a05
- can be built with all kernels
* Mon Jun 18 2001 - schwab@suse.de
- Fix to compile.
* Thu Apr 26 2001 - ro@suse.de
- added config-dist.sh
* Fri Feb 09 2001 - ro@suse.de
- fixed to compile
* Fri Jan 19 2001 - kukuk@suse.de
- fix missing exit
* Fri Jan 19 2001 - kukuk@suse.de
- cdrecord should only be build on kernel 2.2
* Mon Dec 11 2000 - ro@suse.de
- fixed group typos
* Tue Oct 17 2000 - bk@suse.de
- Use ppc-linux rules for s390.
* Mon Oct 09 2000 - smid@suse.cz
- New version 1.9
* Tue Sep 19 2000 - schwab@suse.de
- Use i586-linux rules for ia64.
- Add %%suse_update_config.
* Fri Jul 21 2000 - smid@suse.cz
- Merge patches for booting SPARCs/silo with version 1.8.1
* Wed Jun 07 2000 - cihlar@suse.cz
- Copyright tag fixed
* Wed May 31 2000 - cihlar@suse.cz
- update to version 1.8.1
* Fri Apr 07 2000 - smid@suse.cz
- buildroot added
* Fri Mar 24 2000 - kukuk@suse.de
- Merge patches for booting SPARCs/silo
* Sun Feb 20 2000 - bk@suse.de
- added link /usr/bin/list_audio_tracks -> cdda2wav (needed for cdda2mp3)
* Sun Feb 06 2000 - olh@suse.de
- update cdrecord to 1.8
  update mkhybrid to 1.12b5.4
  make apple_driver for bootable Mac CD's
* Thu Jan 13 2000 - ro@suse.de
- update to a40-3
* Mon Dec 20 1999 - ro@suse.de
- update to a35
* Mon Oct 18 1999 - ro@suse.de
- update to a30
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Aug 24 1999 - uli@suse.de
- now building mkhybrid with -fsigned-char (PPC)
* Mon Aug 09 1999 - ro@suse.de
- update to 1.8a24
* Mon Jul 12 1999 - ro@suse.de
- update to a23
* Tue Jun 01 1999 - ro@suse.de
- update to 1.8a22 (mkisofs-1.12b5)
* Fri Apr 09 1999 - ro@suse.de
- update to 1.8a20
* Mon Mar 08 1999 - ro@suse.de
- update to 1.8a19
* Mon Feb 15 1999 - ro@suse.de
- update to 1.8a17
- mkisofs and cdda2wav are built from same sources
* Tue Dec 01 1998 - ro@suse.de
- update to 1.8a13
* Mon Nov 02 1998 - ro@suse.de
- update to 1.6.1
* Mon Apr 20 1998 - ro@suse.de
- update to 1.6 final
* Tue Mar 03 1998 - ro@suse.de
- update to 1.6a9  includes new fifo code
* Wed Nov 12 1997 - ms@suse.de
- initial package for suse version 1.5