Group :: Arquivamento/Gravação de CD
RPM: cdrdao
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_with sys_pccts
%def_with sys_cdrtools
%def_enable xdao
%define cvsdate 20020925
%undefine cvsdate
Name: cdrdao
Version: 1.1.9
%define release alt0.8
%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: GPL
Url: http://cdrdao.sourceforge.net
Packager: Yuri N. Sedunov <aris at altlinux.ru>
%ifndef cvsdate
Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.gz
%else
Source: %name-%version-%cvsdate.tar.bz2
%endif
Source1: %name.control
Patch: %name-1.1.9-alt-autotools.patch
Patch1: cdrdao-1.1.8-sf-gtkmm24.patch
#Patch2: %name-1.1.8-alt-xdao_menu.patch
Patch2: %name-1.1.9-alt-locale.patch
Patch3: cdrdao-1.1.8-rh-cast.patch
Patch4: cdrdao-1.1.9-mdk-gcc3.4.patch
PreReq: control
# Automatically added by buildreq on Wed Jun 09 2004
BuildRequires: cdrtools-devel gcc-c++ liblame-devel libstdc++-devel pccts-devel libpopt-devel
%if_enabled xdao
BuildRequires: ORBit2-devel XFree86-libs esound fontconfig freetype2 glib2-devel gnome-vfs2-devel libGConf2-devel libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libgconfmm2-devel libglade2-devel libglademm-devel libglibmm-devel libgnome-devel libgnome-keyring libgnome-vfsmm-devel libgnomecanvas-devel libgnomecanvasmm-devel libgnomemm2-devel libgnomeui-devel libgnomeuimm-devel libgtk+2-devel libgtkmm2-devel libpango-devel libsigc++2.0-devel libxml2-devel pkgconfig
%endif
%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
%patch2 -p1
%patch3 -p1
%patch4 -p1
%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
%__rm -f missing
%__libtoolize --copy --force
%__aclocal
%__autoheader
%__automake -a -c -f
%__autoconf
%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
# 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
# control support
%__install -pD -m755 %SOURCE1 %buildroot/etc/control.d/facilities/%name
chmod 700 %buildroot%_bindir/%name
%pre
[ $1 -eq 1 ] || /usr/sbin/control-dump %name
%post
[ $1 -eq 1 ] || /usr/sbin/control-restore %name
%post -n gcdmaster
%update_menus
%postun -n gcdmaster
%clean_menus
%files
%config /etc/control.d/facilities/%name
%_bindir/*
%exclude %_bindir/gcdmaster
%_datadir/%name
%_man1dir/*
%exclude %_man1dir/gcdmaster*
%doc README CREDITS ChangeLog NEWS
%if_enabled xdao
%files -n gcdmaster
%_bindir/gcdmaster
%_datadir/applications/*
%_datadir/pixmaps/*
%_man1dir/gcdmaster*
%_menudir/gcdmaster
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_with sys_cdrtools
%def_enable xdao
%define cvsdate 20020925
%undefine cvsdate
Name: cdrdao
Version: 1.1.9
%define release alt0.8
%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: GPL
Url: http://cdrdao.sourceforge.net
Packager: Yuri N. Sedunov <aris at altlinux.ru>
%ifndef cvsdate
Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.gz
%else
Source: %name-%version-%cvsdate.tar.bz2
%endif
Source1: %name.control
Patch: %name-1.1.9-alt-autotools.patch
Patch1: cdrdao-1.1.8-sf-gtkmm24.patch
#Patch2: %name-1.1.8-alt-xdao_menu.patch
Patch2: %name-1.1.9-alt-locale.patch
Patch3: cdrdao-1.1.8-rh-cast.patch
Patch4: cdrdao-1.1.9-mdk-gcc3.4.patch
PreReq: control
# Automatically added by buildreq on Wed Jun 09 2004
BuildRequires: cdrtools-devel gcc-c++ liblame-devel libstdc++-devel pccts-devel libpopt-devel
%if_enabled xdao
BuildRequires: ORBit2-devel XFree86-libs esound fontconfig freetype2 glib2-devel gnome-vfs2-devel libGConf2-devel libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libgconfmm2-devel libglade2-devel libglademm-devel libglibmm-devel libgnome-devel libgnome-keyring libgnome-vfsmm-devel libgnomecanvas-devel libgnomecanvasmm-devel libgnomemm2-devel libgnomeui-devel libgnomeuimm-devel libgtk+2-devel libgtkmm2-devel libpango-devel libsigc++2.0-devel libxml2-devel pkgconfig
%endif
%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
%patch2 -p1
%patch3 -p1
%patch4 -p1
%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
%__rm -f missing
%__libtoolize --copy --force
%__aclocal
%__autoheader
%__automake -a -c -f
%__autoconf
%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
# 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
# control support
%__install -pD -m755 %SOURCE1 %buildroot/etc/control.d/facilities/%name
chmod 700 %buildroot%_bindir/%name
%pre
[ $1 -eq 1 ] || /usr/sbin/control-dump %name
%post
[ $1 -eq 1 ] || /usr/sbin/control-restore %name
%post -n gcdmaster
%update_menus
%postun -n gcdmaster
%clean_menus
%files
%config /etc/control.d/facilities/%name
%_bindir/*
%exclude %_bindir/gcdmaster
%_datadir/%name
%_man1dir/*
%exclude %_man1dir/gcdmaster*
%doc README CREDITS ChangeLog NEWS
%if_enabled xdao
%files -n gcdmaster
%_bindir/gcdmaster
%_datadir/applications/*
%_datadir/pixmaps/*
%_man1dir/gcdmaster*
%_menudir/gcdmaster
%endif
%changelog
…
Todas as alterações você pod ver aqui