Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37896214
en ru br
ALT Linux repos
S:1.2.5-alt2
5.0: 1.2.2-alt4
4.1: 1.2.2-alt2
4.0: 1.2.2-alt2
3.0: 1.1.9-alt0.8

Other repositories
Upstream:1.2.1

Group :: Archiving/Cd burning
RPM: cdrdao

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_without sys_pccts
%def_without sys_cdrtools
%def_disable xdao

%define cvsdate 20020925
%undefine cvsdate

Name: cdrdao
Version: 1.2.2
%define release alt4

%ifdef cvsdate
Release: %{release}cvs%cvsdate
%else
Release: %release
%endif

Summary: Cdrdao - Write audio CD-Rs in disk-at-once mode
Group: Archiving/Cd burning
License: GPLv2
Url: http://cdrdao.sourceforge.net

%ifndef cvsdate
Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.bz2
%else
Source: %name-%version-%cvsdate.tar.bz2
%endif

Source1: %name.control
Patch: %name-1.1.9-alt-locale.patch
# from Fedora
Patch1: mkisofs-changelog.patch
Patch2: cdrdao-1.2.2-gcc43.patch
Patch9: cdrdao-1.1.7-endianness.patch
Patch23: cdrtools-2.01a27-silly-warnings.patch
Patch30: cdrtools-2.0-O_EXCL.patch


PreReq: control


# Added by buildreq2 on Wed Feb 01 2006

#BuildRequires: gcc-c++ gnome-libs-devel libacl-devel libao-devel libgnome-vfsmm-devel libgnomemm-devel libgnomeui-devel libgnomeuimm-devel liblame-devel libmad-devel libpopt-devel libvorbis-devel pccts-devel

# Automatically added by buildreq on Tue Oct 14 2008

BuildRequires: gcc-c++ libacl-devel libao-devel liblame-devel libmad-devel libvorbis-devel

%description
Writes audio CD-Rs in disc-at-once (DAO) mode allowing
control over pre-gaps (length down to 0, nonzero audio data)
and sub-channel information like ISRC codes. All data that
is written to the disc must be specified with a text file.
Audio data may be in WAVE or raw format.

%package -n gcdmaster
Summary: Graphical front end to cdrdao for composing audio CDs
Group: Archiving/Cd burning
Requires: %name = %version-%release

%description -n gcdmaster
gcdmaster allows the creation of toc-files for cdrdao and
can control the recording process. Its main application is
the composition of audio CDs from one or more audio files.
It supports PQ-channel editing, entry of meta data like
ISRC codes/CD-TEXT and non destructive cut of the audio data.

%prep

%ifndef cvsdate
%setup -q -n %name-%version
%else
%setup -q -n %name-%version-%cvsdate
%endif
%patch -p1
%patch1 -p1 -b .changelog
%patch2 -p1 -b .gcc43
%patch9 -p1 -b .endian
%patch23 -p1 -b .silly
%patch30 -p1 -b .excl

%build
%ifdef cvsdate
find -type d -name CVS -print0 | xargs -r0 %__rm -rf --
%define __autoconf autoconf_2.5
%__subst 's at autoconf at %__autoconf at ' autogen.sh
./autogen.sh
%endif

%autoreconf

%configure \
%if_with sys_pccts
--with-pcctsbin=%_bindir \
--with-pcctsinc=%_includedir/pccts \
%endif
%if_with sys_cdrtools
--with-scglib-inc=%_includedir/schily \
--with-scglib-lib=%_libdir \
%endif
%{subst_enable xdao}

%make_build

%install
%makeinstall

%if_enabled xdao
# Creating menu for gcdmaster
cat <<__MENU__ >gcdmaster.menu
?package(%name): needs="X11" section="Applications/%group" title="gCDmaster" \
longtitle="Cdrdao frontend" command="%_bindir/gcdmaster" \
icon="gcdmaster.png"
__MENU__

install -pD -m644 gcdmaster.menu %buildroot%_menudir/gcdmaster
install -pD -m644 xdao/stock/gcdmaster.png %buildroot%_datadir/pixmaps/gcdmaster.png
%endif

# control support

install -pD -m755 %SOURCE1 %buildroot%_controldir/%name
chmod 700 %buildroot%_bindir/%name

%pre
%pre_control %name

%post
%post_control %name

%post -n gcdmaster
%update_menus

%postun -n gcdmaster
%clean_menus

%files
%_bindir/*
%_datadir/%name
%_man1dir/*
%config /etc/control.d/facilities/%name
%doc README CREDITS ChangeLog NEWS

%if_enabled xdao
%exclude %_bindir/gcdmaster
%exclude %_man1dir/gcdmaster*

%files -n gcdmaster
%_bindir/gcdmaster
%_datadir/applications/*
%_datadir/pixmaps/*
%_man1dir/gcdmaster*
%_menudir/gcdmaster
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin