packages cdrtools.spec
      Pages: < 1 >  DOWNLOAD      
%define cdrecording_group 12
%define sourcever	%(echo %version | cut -da -f1)
Name:          cdrtools
Version:       3.01a05
Release:       2mamba
Summary:       Tools for CD/DVD recorders
Group:         System/Tools
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
Source:        ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-%{version}.tar.bz2
Patch0:        %{name}-2.01-CAN-2004-0806.patch
Patch1:        %{name}-2.01-warnings.patch
Patch2:        http://crashrecovery.org/oss-dvd/cdrtools-2.01a32-ossdvd.patch.bz2
Patch3:        %{name}-2.01-gcc4.patch
Patch4:        %{name}-2.01-gcc_static.patch
License:       GPL, Common Development and Distribution License
## AUTOBUILDREQ-BEGIN
BuildRequires: bash
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: libcap-devel
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Cdrtools supports many features including cdrecord, cdda2wav and mkisofs/mkhybrid in a single source tree.
Cdrecord supports DVD-R and DVD-RW with all known DVD-writers on all UNIX-like OS and on Win32.
DVD writing support is implemented in cdrecord since march 1998.
Cdrecord writes DVD media similar to CD media.

%package devel
Summary:       Development files for cdrtools
Group:         Development/Libraries
Requires:      %{name} = %{version}

%description devel
Cdrtools supports many features including cdrecord, cdda2wav and mkisofs/mkhybrid in a single source tree.
Cdrecord supports DVD-R and DVD-RW with all known DVD-writers on all UNIX-like OS and on Win32.
DVD writing support is implemented in cdrecord since march 1998.
Cdrecord writes DVD media similar to CD media.
This is the development package.

%prep
%setup -q -n %{name}-%{sourcever}
#%patch0 -p1 -b .CAN-2004-0806
#%patch1 -p1 -b .warning
#%patch2 -p1
#%patch3 -p1 -b .gcc4
#%patch4 -p1 -b .gcc_static

%build
mandir=%{_mandir}
./Gmake.linux \
   "INS_BASE=%{_prefix}" \
   "MANDIR=%{_mandir}" \
   "DEFINSUSR=root" \
   "DEFINSGRP=cdrecording"

%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
mandir=%{_mandir}
./Gmake.linux \
   "INS_BASE=%{buildroot}%{_prefix}" \
   "DEFINSUSR=root" \
   "DEFINSGRP=root" \
   install

# fix permissions
chmod 644 %{buildroot}%{_libdir}/*.a

%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}

%pre
/usr/sbin/groupadd cdrecording -g %{group_cdrecording} 2>/dev/null
:

%files
%defattr(-,root,root)
%{_bindir}/cdda2wav
%attr(4710,root,cdrecording) %{_bindir}/cdrecord
%{_bindir}/devdump
%{_bindir}/isodebug
%{_bindir}/isodump
%{_bindir}/isoinfo
%{_bindir}/isovfy
%{_bindir}/mkhybrid
%{_bindir}/mkisofs
%{_bindir}/btcflash
%{_bindir}/scgskeleton
%{_bindir}/cdda2mp3
%{_bindir}/cdda2ogg
%{_libdir}/siconv/*
%{_mandir}/man1/btcflash.1.gz
%{_mandir}/man1/cdda2mp3.1.gz
%{_mandir}/man1/cdda2ogg.1.gz
%{_mandir}/man1/cdda2wav.1.gz
%{_mandir}/man1/cdrecord.1.gz
%{_mandir}/man1/readcd.1.gz
%{_mandir}/man1/rscsi.1.gz
%{_mandir}/man1/scgcheck.1.gz
%{_mandir}/man1/scgskeleton.1.gz
%{_mandir}/man5/makefiles.5.gz
%{_mandir}/man5/makerules.5.gz
%{_mandir}/man8/devdump.8.gz
%{_mandir}/man8/isodebug.8.gz
%{_mandir}/man8/isodump.8.gz
%{_mandir}/man8/isoinfo.8.gz
%{_mandir}/man8/isovfy.8.gz
%{_mandir}/man8/mkhybrid.8.gz
%{_mandir}/man8/mkisofs.8.gz
%attr(0750,root,cdrecording) %{_bindir}/readcd
%{_bindir}/scgcheck
#%{_bindir}/skel
%{_sbindir}/rscsi
%{_docdir}/cdda2wav/README
%{_docdir}/cdrecord/README*
%{_docdir}/libparanoia/README.*
%{_docdir}/mkisofs/README*
%doc ABOUT CDDL.Schily.txt GPL-2.0.txt LGPL-2.1.txt
%doc README.linux-shm README.mkisofs

%files devel
%defattr(-,root,root)
%{_includedir}/schily/*.h
%{_includedir}/schily/*-linux-cc/*.h
%{_includedir}/scg/*.h
%{_libdir}/*.a
%{_libdir}/profiled/*.a
%{_docdir}/rscsi/default-rscsi.sample
%doc AN-* Changelog 

%changelog
* Mon Oct 17 2011 Silvan Calarco <silvan.calarco@...> 3.01a05-2mamba
- set cdrecord suid 4710 root.cdrecording

* Sun Jun 19 2011 Automatic Build System <autodist@...> 3.01a05-1mamba
- automatic update by autodist

* Fri May 20 2011 Automatic Build System <autodist@...> 3.01a04-1mamba
- automatic update by autodist

* Sun Mar 13 2011 Automatic Build System <autodist@...> 3.01a03-1mamba
- automatic update by autodist

* Mon Dec 27 2010 Automatic Build System <autodist@...> 3.01a02-1mamba
- automatic update by autodist

* Thu Nov 25 2010 Automatic Build System <autodist@...> 3.01a01-1mamba
- automatic update by autodist

* Sun Aug 15 2010 Automatic Build System <autodist@...> 2.01.01a80-1mamba
- automatic update by autodist

* Wed Jun 02 2010 Silvan Calarco <silvan.calarco@...> 2.01.01a39-1mamba
- set real package version
- use globbing in files lists
- updated license

* Wed Jun 02 2010 Ercole 'ercolinux' Carpanetto <ercole69@...> 2.01.01-2mamba
- update to 2.01.01a79

* Thu Nov 04 2009 Ercole 'ercolinux' Carpanetto <ercole69@...> 2.01.01a67
- update to 2.01.01a67

* Thu Dec 06 2007 Silvan Calarco <silvan.calarco@...> 2.01-6mamba
- removed man page for missing cdda2ogg tool
- removed makefiles and makefiles man pages

* Mon Nov 26 2007 Silvan Calarco <silvan.calarco@...> 2.01-5mamba
- revert to previous patchlevel and version (2.01) due to problems in 2.0.1-4mamba

* Thu Nov 15 2007 Aleph0 <aleph0@...> 2.01-4mamba
- update to 2.01.01a05
- updated patches from crashrecovery.org

* Thu Mar 16 2006 Davide Madrisan <davide.madrisan@...> 2.01-3qilnx
- create the cdrecording group
- added (again?) patch to fix CAN-2004-0806
- fixed gcc4 compilation errors

* Mon Feb 07 2005 Silvan Calarco <silvan.calarco@...> 2.01-2qilnx
- make cdrecord and cdread not suid because of kernel 2.6 behaviour
- added OSS DVD extensions patch from http://crashrecovery.org/oss-dvd.html

* Tue Sep 14 2004 Davide Madrisan <davide.madrisan@...> 2.01-1qilnx
- update to version 2.01 by autospec.
  fix a local root vulnerability: CAN-2004-0806

* Mon Dec 15 2003 Silvan Calarco <silvan.calarco@...> 2.00.3-3qilnx
- readcd suided

* Tue Oct 14 2003 Silvan Calarco <silvan.calarco@...> 2.00.3-2qilnx
- changed group name from cdwriter to cdrecording

* Thu Jul 10 2003 Silvan Calarco <silvan.calarco@...> 2.00.3-1qilnx
- first build for cdrtools