Группа :: Архивирование/Создание CD
Пакет: cdrtools
Главная Изменения Спек Патчи Загрузить Bugs and FR
%define cdr_major 2.01
%define iso_major 2.01
%define minor a37
%define alt_rel alt6
%def_with ossdvd
Name: cdrtools
Version: %cdr_major
Release: alt0.M24.6a37
Serial: 5
Summary: A set command line tools for CD/DVD-Recorders
Summary(ru_RU.KOI8-R): Набор утилит для работы с CD/DVR-рекордерами
License: GPL
Group: Archiving/Cd burning
Url: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
#Source: ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/alpha/%name-%version%minor.tar.bz2
Source: ftp://ftp.berlios.de/pub/cdrecord/alpha/%name-%version%minor.tar.bz2
#Source: ftp://ftp.berlios.de/pub/cdrecord/%name-%version%minor.tar.bz2
Patch0: %name-2.01-joerg-sux.patch
Patch1: %name-mdk-arch-fix.patch
Patch2: %name-1.11a37-alt-conf.patch
Patch3: %name-1.9-alt-manlocation.patch
Patch4: %name-2.01a29-alt-undepcfg.patch
Patch5: %name-2.01-alt-rcmdrsh.patch
Patch6: %name-2.01a37-skipcheck_priv.patch
Patch7: %name-2.01-natspec.patch
Patch99: %name-2.01a32-ossdvd-alt.patch
BuildConflicts: %name-devel
# Automatically added by buildreq on Tue May 25 2004
BuildRequires: groff-base groff-ps libacl-devel libalsa-devel libnatspec-devel
%package -n rscsi
Version: %cdr_major
Summary: The Remote-SCSI protocol gives you SCSI-Anywhere features
Summary(ru_RU.KOI8-R): Утилита для работы со SCSI-устройсвами по протоколу Remote-SCSI
Group: Archiving/Cd burning
%package devel
Version: %cdr_major
Summary: The libschily SCSI user level transport library
Summary(ru_RU.KOI8-R): Библиотека для работы со SCSI устройствами
Group: Development/C
Provides: cdrecord-devel = %version
Obsoletes: cdrecord-devel
%package -n mkisofs
Version: %iso_major
Summary: Creates an image of an ISO9660 filesystem
Summary(ru_RU.KOI8-R): Утилита для создания образов ISO9660
Group: Archiving/Cd burning
Icon: mkisofs-logo.xpm
Provides: %name-mkisofs = %version, cdrecord-mkisofs = %version
Obsoletes: %name-mkisofs, cdrecord-mkisofs, mkhybrid, cdrecord-mkhybrid
%package -n cdrecord
Version: %cdr_major
Summary: A command line CD/DVD-Recorder
Summary(ru_RU.KOI8-R): Консольная утилита для записи CD/DVD
Group: Archiving/Cd burning
Icon: cdrecord-logo.xpm
Provides: %name-cdrecord = %version
Obsoletes: %name-cdrecord
PreReq: cdrtools-control
%package -n cdda2wav
Version: %cdr_major
Summary: A utility for sampling/copying .wav files from digital audio CDs
Summary(ru_RU.KOI8-R): Утилита для копирования треков с Audio CD
Group: Sound
Icon: cdda2wav-logo.xpm
Provides: %name-cdda2wav = %version, cdrecord-cdda2wav = %version, cdda2wav-mkisofs = %version
Obsoletes: %name-cdda2wav, cdrecord-cdda2wav, cdda2wav-mkisofs
%description
A set command line tools for CD/DVD-Recorders including
cdrecord, mkisofs, readcd, isoinfo and others.
%description -l ru_RU.KOI8-R
Консольные утилиты для работы CD/DVD-рекордерами.
Включает cdrecord, mkisofs, readcd, isoinfo и т.п.
%description devel
The %name-devel package contains a SCSI user level transport
library which can talk to any SCSI device without a special
driver for the device. Cdrecord can easily be ported to any
system with a SCSI device driver similar to the scg driver.
%description devel -l ru_RU.KOI8-R
В пакете находится библиотека, работающая со SCSI-устройствами
на пользовательском уровне.
%description -n cdrecord
Cdrecord is an application for creating audio and data CDs on
a CD-Recorder (SCSI/ATAPI). Cdrecord works with many different
brands of CD recorders, fully supports data, audio, mixed,
multi-session, CD+ discs and provides human-readable error messages.
%description -n cdrecord -l ru_RU.KOI8-R
cdrecord - приложение для записи компакт-дисков. Программа
работает с большинством CD-рекордеров. Реализована полная
поддержка аудио-, смешанных, мультисессионных и CD+ дисков.
%description -n mkisofs
The mkisofs program is used as a pre-mastering program; i.e., it
generates the ISO9660 filesystem. Mkisofs takes a snapshot of
a given directory tree and generates a binary image of the tree
which will correspond to an ISO9660 filesystem when written to
a block device. Mkisofs is used for writing CD-ROMs, and includes
support for creating bootable El Torito CD-ROMs.
Install the mkisofs package if you need a program for writing CD-ROMs.
%description -n mkisofs -l ru_RU.KOI8-R
mkisofs - подготавливает данные для записи на компакт-диск,
создавая файловые системы ISO9660. Программа создает снимок
указанного дерва каталогов и записывает его в виде двоичного
образа, соответствующего файловой системе ISO9660. mkisofs
можно использовать для создания загрузочных компакт-дисков.
Этот пакет необходим для записи компакт-дисков.
%description -n cdda2wav
Cdda2wav is a sampling utility for CD-ROM drives that are capable of
providing a CD's audio data in digital form to your host. Audio data
read from the CD can be saved as .wav or .sun format sound files.
Recording formats include stereo/mono, 8/12/16 bits and different
rates. Cdda2wav can also be used as a CD player.
%description -n cdda2wav -l ru_RU.KOI8-R
cdda2wav - программа для копирования треков с аудио компакт-дисков.
Прочитанные данные могут записываться в форматах .wav или .sun.
При записи файлов можно варьировать количество битов на сэмпл и
частоту дискретизации. cdda2wav можно использовать как плейер.
%description -n rscsi
The Remote-SCSI protocol gives you SCSI-Anywhere features
%description -n rscsi -l ru_RU.KOI8-R
Утилита для работы со SCSI-устройсвами по протоколу Remote-SCSI
%prep
%setup -q -n %name-%cdr_major
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
%if_with ossdvd
%patch99 -p1 -b .ossdvd
%endif
%patch6 -p1 -b .skipcheck_priv
find -type f -print0 |
xargs -r0 %__grep -EZl '/etc/default/(cdrecord|rscsi|cdda2ogg)' -- |
xargs -r0 %__subst 's,/etc/default/\(cdrecord\|rscsi\|cdda2ogg\),/etc/\1.conf,g' --
find -type f -print0 |
xargs -r0 %__grep -Zl '/usr/.*bin/perl[0-9]*' -- |
xargs -r0 %__subst 's|/usr/.*bin/perl[0-9]*|/usr/bin/perl|g' --
%patch4 -p1
%patch5 -p1
%patch7 -p0 -b .natspec
%build
%set_automake_version 1.7
#ln -s i686-linux-gcc.rul RULES/ia64-linux-gcc.rul
#ln -s i686-linux-cc.rul RULES/ia64-linux-cc.rul
pushd conf
libtoolize --copy --force
aclocal
popd
# Use GNU make.
export MAKEPROG=gmake
# Don't use mmap to get shared memory.
export ac_cv_func_smmap=no
%make_build CC=gcc COPTS="$RPM_OPT_FLAGS" CONFFLAGS="%_target_platform --prefix=%prefix" XK_ARCH=%_target_cpu
groff -Tps -man doc/cdrecord.man >doc/cdrecord.ps
bzip2 -9f doc/*.ps ||:
%install
export MAKEPROG=gmake
%make_install install "INS_BASE=$RPM_BUILD_ROOT%prefix" XK_ARCH=%_target_cpu
%__install -p -m755 cdda2wav/cdda2ogg $RPM_BUILD_ROOT%_bindir/
%__ln_s -nf mkisofs $RPM_BUILD_ROOT%_bindir/mkhybrid
%__chmod 700 $RPM_BUILD_ROOT%_bindir/{cdrecord,readcd}
%__chmod 700 $RPM_BUILD_ROOT%_sbindir/rscsi
%__chmod 644 $RPM_BUILD_ROOT%_libdir/*.a
# Installing Header files for use with devel package.
%__mkdir_p $RPM_BUILD_ROOT%_includedir/schily/scg
%__install -p -m644 include/*.h incs/*/xconfig.h $RPM_BUILD_ROOT%_includedir/schily/
%__install -p -m644 libscg/scg/*.h $RPM_BUILD_ROOT%_includedir/schily/scg/
find $RPM_BUILD_ROOT%_includedir -type f -print0 |
xargs -r0 chmod a-x --
# Installing default config.
%__install -pD -m644 cdrecord/cdrecord.dfl $RPM_BUILD_ROOT%_sysconfdir/cdrecord.conf
%__install -pD -m644 rscsi/rscsi.dfl $RPM_BUILD_ROOT%_sysconfdir/rscsi.conf
%define docdir %_docdir/%name-%version
%__mkdir_p $RPM_BUILD_ROOT%docdir/{cdrecord,mkisofs,cdda2wav,rscsi}
%__install -p -m644 AN-* \
$RPM_BUILD_ROOT%docdir/
%__install -p -m644 Changelog README* doc/{cdrecord,isoinfo}.ps* \
$RPM_BUILD_ROOT%docdir/cdrecord/
pushd mkisofs
%__install -p -m644 ChangeLog* README* hdisk.pl ../doc/mkisofs.ps* \
$RPM_BUILD_ROOT%docdir/mkisofs/
popd
pushd cdda2wav
%__install -p -m644 Frontends GPL HOWTOUSE OtherProgs README THANKS TODO \
cdda2mp3* cdda_links pitchplay readmult tracknames.* FAQ \
../doc/cdda2wav.ps* \
$RPM_BUILD_ROOT%docdir/cdda2wav/
popd
%__install -p -m644 README.rscsi \
$RPM_BUILD_ROOT%docdir/rscsi/
%pre -n cdrecord
%pre_control cdrecord readcd
%post -n cdrecord
%post_control cdrecord readcd
%pre -n rscsi
%pre_control rscsi
%post -n rscsi
%post_control rscsi
%files devel
%_libdir/*.*a
%_includedir/*
%files -n mkisofs
%_bindir/mk*
%_man8dir/mk*.*
%dir %docdir
%docdir/AN-*
%docdir/mkisofs
%files -n cdrecord
%attr(640,root,cdwriter) %config(noreplace) %_sysconfdir/cdrecord.conf
%_bindir/cdrecord
%_bindir/readcd
%_bindir/scgcheck
%_bindir/devdump
%_bindir/iso*
%_man1dir/cdrecord.*
%_man1dir/readcd.*
%_man1dir/scgcheck.*
%_man8dir/iso*.*
%dir %docdir
%docdir/AN-*
%docdir/cdrecord
%files -n cdda2wav
%_bindir/cdda2*
%_man1dir/cdda2*.*
%dir %docdir
%docdir/AN-*
%docdir/cdda2wav
%files -n rscsi
%attr(640,root,cdwriter) %config(noreplace) %_sysconfdir/rscsi.conf
%_sbindir/rscsi
%docdir/AN-*
%docdir/rscsi
%changelog
…
Полный changelog можно просмотреть здесь
%define iso_major 2.01
%define minor a37
%define alt_rel alt6
%def_with ossdvd
Name: cdrtools
Version: %cdr_major
Release: alt0.M24.6a37
Serial: 5
Summary: A set command line tools for CD/DVD-Recorders
Summary(ru_RU.KOI8-R): Набор утилит для работы с CD/DVR-рекордерами
License: GPL
Group: Archiving/Cd burning
Url: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
#Source: ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/alpha/%name-%version%minor.tar.bz2
Source: ftp://ftp.berlios.de/pub/cdrecord/alpha/%name-%version%minor.tar.bz2
#Source: ftp://ftp.berlios.de/pub/cdrecord/%name-%version%minor.tar.bz2
Patch0: %name-2.01-joerg-sux.patch
Patch1: %name-mdk-arch-fix.patch
Patch2: %name-1.11a37-alt-conf.patch
Patch3: %name-1.9-alt-manlocation.patch
Patch4: %name-2.01a29-alt-undepcfg.patch
Patch5: %name-2.01-alt-rcmdrsh.patch
Patch6: %name-2.01a37-skipcheck_priv.patch
Patch7: %name-2.01-natspec.patch
Patch99: %name-2.01a32-ossdvd-alt.patch
BuildConflicts: %name-devel
# Automatically added by buildreq on Tue May 25 2004
BuildRequires: groff-base groff-ps libacl-devel libalsa-devel libnatspec-devel
%package -n rscsi
Version: %cdr_major
Summary: The Remote-SCSI protocol gives you SCSI-Anywhere features
Summary(ru_RU.KOI8-R): Утилита для работы со SCSI-устройсвами по протоколу Remote-SCSI
Group: Archiving/Cd burning
%package devel
Version: %cdr_major
Summary: The libschily SCSI user level transport library
Summary(ru_RU.KOI8-R): Библиотека для работы со SCSI устройствами
Group: Development/C
Provides: cdrecord-devel = %version
Obsoletes: cdrecord-devel
%package -n mkisofs
Version: %iso_major
Summary: Creates an image of an ISO9660 filesystem
Summary(ru_RU.KOI8-R): Утилита для создания образов ISO9660
Group: Archiving/Cd burning
Icon: mkisofs-logo.xpm
Provides: %name-mkisofs = %version, cdrecord-mkisofs = %version
Obsoletes: %name-mkisofs, cdrecord-mkisofs, mkhybrid, cdrecord-mkhybrid
%package -n cdrecord
Version: %cdr_major
Summary: A command line CD/DVD-Recorder
Summary(ru_RU.KOI8-R): Консольная утилита для записи CD/DVD
Group: Archiving/Cd burning
Icon: cdrecord-logo.xpm
Provides: %name-cdrecord = %version
Obsoletes: %name-cdrecord
PreReq: cdrtools-control
%package -n cdda2wav
Version: %cdr_major
Summary: A utility for sampling/copying .wav files from digital audio CDs
Summary(ru_RU.KOI8-R): Утилита для копирования треков с Audio CD
Group: Sound
Icon: cdda2wav-logo.xpm
Provides: %name-cdda2wav = %version, cdrecord-cdda2wav = %version, cdda2wav-mkisofs = %version
Obsoletes: %name-cdda2wav, cdrecord-cdda2wav, cdda2wav-mkisofs
%description
A set command line tools for CD/DVD-Recorders including
cdrecord, mkisofs, readcd, isoinfo and others.
%description -l ru_RU.KOI8-R
Консольные утилиты для работы CD/DVD-рекордерами.
Включает cdrecord, mkisofs, readcd, isoinfo и т.п.
%description devel
The %name-devel package contains a SCSI user level transport
library which can talk to any SCSI device without a special
driver for the device. Cdrecord can easily be ported to any
system with a SCSI device driver similar to the scg driver.
%description devel -l ru_RU.KOI8-R
В пакете находится библиотека, работающая со SCSI-устройствами
на пользовательском уровне.
%description -n cdrecord
Cdrecord is an application for creating audio and data CDs on
a CD-Recorder (SCSI/ATAPI). Cdrecord works with many different
brands of CD recorders, fully supports data, audio, mixed,
multi-session, CD+ discs and provides human-readable error messages.
%description -n cdrecord -l ru_RU.KOI8-R
cdrecord - приложение для записи компакт-дисков. Программа
работает с большинством CD-рекордеров. Реализована полная
поддержка аудио-, смешанных, мультисессионных и CD+ дисков.
%description -n mkisofs
The mkisofs program is used as a pre-mastering program; i.e., it
generates the ISO9660 filesystem. Mkisofs takes a snapshot of
a given directory tree and generates a binary image of the tree
which will correspond to an ISO9660 filesystem when written to
a block device. Mkisofs is used for writing CD-ROMs, and includes
support for creating bootable El Torito CD-ROMs.
Install the mkisofs package if you need a program for writing CD-ROMs.
%description -n mkisofs -l ru_RU.KOI8-R
mkisofs - подготавливает данные для записи на компакт-диск,
создавая файловые системы ISO9660. Программа создает снимок
указанного дерва каталогов и записывает его в виде двоичного
образа, соответствующего файловой системе ISO9660. mkisofs
можно использовать для создания загрузочных компакт-дисков.
Этот пакет необходим для записи компакт-дисков.
%description -n cdda2wav
Cdda2wav is a sampling utility for CD-ROM drives that are capable of
providing a CD's audio data in digital form to your host. Audio data
read from the CD can be saved as .wav or .sun format sound files.
Recording formats include stereo/mono, 8/12/16 bits and different
rates. Cdda2wav can also be used as a CD player.
%description -n cdda2wav -l ru_RU.KOI8-R
cdda2wav - программа для копирования треков с аудио компакт-дисков.
Прочитанные данные могут записываться в форматах .wav или .sun.
При записи файлов можно варьировать количество битов на сэмпл и
частоту дискретизации. cdda2wav можно использовать как плейер.
%description -n rscsi
The Remote-SCSI protocol gives you SCSI-Anywhere features
%description -n rscsi -l ru_RU.KOI8-R
Утилита для работы со SCSI-устройсвами по протоколу Remote-SCSI
%prep
%setup -q -n %name-%cdr_major
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
%if_with ossdvd
%patch99 -p1 -b .ossdvd
%endif
%patch6 -p1 -b .skipcheck_priv
find -type f -print0 |
xargs -r0 %__grep -EZl '/etc/default/(cdrecord|rscsi|cdda2ogg)' -- |
xargs -r0 %__subst 's,/etc/default/\(cdrecord\|rscsi\|cdda2ogg\),/etc/\1.conf,g' --
find -type f -print0 |
xargs -r0 %__grep -Zl '/usr/.*bin/perl[0-9]*' -- |
xargs -r0 %__subst 's|/usr/.*bin/perl[0-9]*|/usr/bin/perl|g' --
%patch4 -p1
%patch5 -p1
%patch7 -p0 -b .natspec
%build
%set_automake_version 1.7
#ln -s i686-linux-gcc.rul RULES/ia64-linux-gcc.rul
#ln -s i686-linux-cc.rul RULES/ia64-linux-cc.rul
pushd conf
libtoolize --copy --force
aclocal
popd
# Use GNU make.
export MAKEPROG=gmake
# Don't use mmap to get shared memory.
export ac_cv_func_smmap=no
%make_build CC=gcc COPTS="$RPM_OPT_FLAGS" CONFFLAGS="%_target_platform --prefix=%prefix" XK_ARCH=%_target_cpu
groff -Tps -man doc/cdrecord.man >doc/cdrecord.ps
bzip2 -9f doc/*.ps ||:
%install
export MAKEPROG=gmake
%make_install install "INS_BASE=$RPM_BUILD_ROOT%prefix" XK_ARCH=%_target_cpu
%__install -p -m755 cdda2wav/cdda2ogg $RPM_BUILD_ROOT%_bindir/
%__ln_s -nf mkisofs $RPM_BUILD_ROOT%_bindir/mkhybrid
%__chmod 700 $RPM_BUILD_ROOT%_bindir/{cdrecord,readcd}
%__chmod 700 $RPM_BUILD_ROOT%_sbindir/rscsi
%__chmod 644 $RPM_BUILD_ROOT%_libdir/*.a
# Installing Header files for use with devel package.
%__mkdir_p $RPM_BUILD_ROOT%_includedir/schily/scg
%__install -p -m644 include/*.h incs/*/xconfig.h $RPM_BUILD_ROOT%_includedir/schily/
%__install -p -m644 libscg/scg/*.h $RPM_BUILD_ROOT%_includedir/schily/scg/
find $RPM_BUILD_ROOT%_includedir -type f -print0 |
xargs -r0 chmod a-x --
# Installing default config.
%__install -pD -m644 cdrecord/cdrecord.dfl $RPM_BUILD_ROOT%_sysconfdir/cdrecord.conf
%__install -pD -m644 rscsi/rscsi.dfl $RPM_BUILD_ROOT%_sysconfdir/rscsi.conf
%define docdir %_docdir/%name-%version
%__mkdir_p $RPM_BUILD_ROOT%docdir/{cdrecord,mkisofs,cdda2wav,rscsi}
%__install -p -m644 AN-* \
$RPM_BUILD_ROOT%docdir/
%__install -p -m644 Changelog README* doc/{cdrecord,isoinfo}.ps* \
$RPM_BUILD_ROOT%docdir/cdrecord/
pushd mkisofs
%__install -p -m644 ChangeLog* README* hdisk.pl ../doc/mkisofs.ps* \
$RPM_BUILD_ROOT%docdir/mkisofs/
popd
pushd cdda2wav
%__install -p -m644 Frontends GPL HOWTOUSE OtherProgs README THANKS TODO \
cdda2mp3* cdda_links pitchplay readmult tracknames.* FAQ \
../doc/cdda2wav.ps* \
$RPM_BUILD_ROOT%docdir/cdda2wav/
popd
%__install -p -m644 README.rscsi \
$RPM_BUILD_ROOT%docdir/rscsi/
%pre -n cdrecord
%pre_control cdrecord readcd
%post -n cdrecord
%post_control cdrecord readcd
%pre -n rscsi
%pre_control rscsi
%post -n rscsi
%post_control rscsi
%files devel
%_libdir/*.*a
%_includedir/*
%files -n mkisofs
%_bindir/mk*
%_man8dir/mk*.*
%dir %docdir
%docdir/AN-*
%docdir/mkisofs
%files -n cdrecord
%attr(640,root,cdwriter) %config(noreplace) %_sysconfdir/cdrecord.conf
%_bindir/cdrecord
%_bindir/readcd
%_bindir/scgcheck
%_bindir/devdump
%_bindir/iso*
%_man1dir/cdrecord.*
%_man1dir/readcd.*
%_man1dir/scgcheck.*
%_man8dir/iso*.*
%dir %docdir
%docdir/AN-*
%docdir/cdrecord
%files -n cdda2wav
%_bindir/cdda2*
%_man1dir/cdda2*.*
%dir %docdir
%docdir/AN-*
%docdir/cdda2wav
%files -n rscsi
%attr(640,root,cdwriter) %config(noreplace) %_sysconfdir/rscsi.conf
%_sbindir/rscsi
%docdir/AN-*
%docdir/rscsi
%changelog
…
Полный changelog можно просмотреть здесь