]> git.pld-linux.org Git - packages/cdrdao.git/blobdiff - cdrdao.spec
- now xdao is default off
[packages/cdrdao.git] / cdrdao.spec
index 8419ab123d598ddc130ad818feaa36b1f8be292e..453297db4ca8a98a419f0e69341b256ac10cbaca 100644 (file)
-# NOTE:
-#      Currently this package does not contain X interface. This is due to
-#      the fact, that it doesn't compile with current version of gtkmm. I
-#      have asked author if he is going to update this program, but I've got
-#      no answer yet.
+#
+# Conditional build:
+%bcond_with    gnome   # without gcdmaster
+#
 Summary:       Tools for burning CDRs in Disk At Once mode
 Summary(pl):   Narzêdzia do wypalania p³yt w trybie Disk At Once
+Summary(pt_BR):        Cdrdao - Escreve CD-Rs de áudio em modo "disk-at-once"
 Name:          cdrdao
-Version:       1.1.3
+Version:       1.1.9
 Release:       1
-Group:         Utilities/System
-Group(pl):     Narzêdzia/System
-License:       GPL
-Source0:       http://www.ping.de/sites/daneb/%{name}-%{version}.src.tar.gz
-Patch0:                cdrdao-destdir.patch
-BuildRequires: gcc-c++
+License:       GPL v2+
+Group:         Applications/System
+Source0:       http://dl.sourceforge.net/cdrdao/%{name}-%{version}.tar.gz
+# Source0-md5: dd7df809fca7db8e212a6522688c166b
+Source1:       %{name}.desktop
+# http://cdrdao.sourceforge.net/drives.html#dt
+Source2:       %{name}.drivers
+Patch0:                %{name}-nolibs.patch
+Patch1:                %{name}-pccts-antlr.patch
+Patch2:                %{name}-DESTDIR.patch
+Patch3:                %{name}-mm.patch
+URL:           http://cdrdao.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: cdrtools-devel >= 3:2.01a25
+%{?with_gnome:BuildRequires:   libgnomeuimm-devel >= 2.0.0}
+%{?with_gnome:BuildRequires:   gtkmm-devel >= 2.2.8}
+BuildRequires: lame-libs-devel >= 3.92
 BuildRequires: libstdc++-devel
-BuildRequires: pccts-devel
-# Required by frontend.
-#BuildRequires:        gtk+-devel
-#BuildRequires:        gtkmm-devel
-BuildRequires: libsigc++-devel
+BuildRequires: pccts >= 1.33MR33-8
+BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Cdrdao records audio and data CD-Rs in Disk At Once mode. This mode gives
-much better control over contents of CD.
+Cdrdao records audio and data CD-Rs in Disk At Once mode. This mode
+gives much better control over contents of CD.
 
 %description -l pl
-Cdrdao zapisuje p³ytki audio i z danymi w trybie Disk At Once. W tym trybie
-masz znacznie wiêksz± kontrolê nad zawarto¶ci± p³ytki.
+Cdrdao zapisuje p³ytki audio i z danymi w trybie Disk At Once. W tym
+trybie masz znacznie wiêksz± kontrolê nad zawarto¶ci± p³ytki.
+
+%description -l pt_BR
+Escreve CD-Rs de áudio em modo "disk-at-once" (DAO) permitindo
+controle sobre pre-gaps (tamanho reduzido a 0, dados não zerados de
+áudio) e informações de sub-canais como códigos ISRC. Todos os dados
+que são escritos no disco devem ser especificados através de um
+arquivo texto. Dados de áudio também podem estar no formato WAVE ou
+raw.
+
+%package gcdmaster
+Summary:       GNOME frontend to cdrdao for composing audio CDs
+Summary(pl):   Frontend GNOME do cdrdao do sk³adania p³yt CD-Audio
+Group:         X11/Applications
+Requires:      %{name} = %{version}-%{release}
+
+%description 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.
+
+%description gcdmaster -l pl
+gcdmaster pozwala na tworzenie plików toc dla cdrdao oraz mo¿e
+kontrolowaæ proces nagrywania. G³ównym celem jest sk³adanie p³yt
+CD-Audio z jednego lub wiêcej plików z d¼wiêkiem. Obs³uguje edycjê
+kana³u PQ, wpisy meta-danych takich jak kody ISRC/CD-TEXT oraz
+niedestruktywne ciêcie danych audio.
 
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p0
+
+sed -i -e 's#/usr/src/linux/include##g' scsilib/DEFAULT*/Defaults.linux
+%if %{without gnome}
+sed -i -e 's/^en_xdao=yes$/en_xdao=no/' configure.in
+%endif
 
 %build
-#autoheader;autoconf;automake; 
-CFLAGS="-I%{_prefix}/X11R6/includes"; export CFLAGS
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
        --with-pcctsbin=%{_bindir} \
-       --with-pcctsinc=%{_includedir}/pccts \
-       --x-includes=%{_prefix}/X11R6/includes
-make
+       --with-pcctsinc=/usr/lib/pccts/h \
+       --with-scglib-inc=/usr/include/schily \
+       %if %{with gnome}
+       --with-xdao \ 
+       %else
+       --without-xdao \
+       %endif
+       --with-scglib-lib=/usr/lib 
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}}
 
-make install \
+%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       COPYING CREDITS README* Release*
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/gcdmaster.desktop
+install xdao/stock/gcdmaster.png $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/drivers
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{_mandir}/*/*
-%attr(755,root,root) %{_bindir}/*
-%doc *.gz
+%doc CREDITS README README.PlexDAE 
+%attr(755,root,root) %{_bindir}/cdrdao
+%attr(755,root,root) %{_bindir}/toc2*
+%attr(755,root,root) %{_bindir}/cue2toc
+%{_datadir}/%{name}
+%{_mandir}/man1/cdrdao.1*
+%{_mandir}/man1/cue2toc.1*
+
+%if %{with gnome}
+%files gcdmaster
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gcdmaster
+%{_desktopdir}/gcdmaster.desktop
+%{_pixmapsdir}/*
+%{_mandir}/man1/gcdmaster.*
+%endif
This page took 0.10672 seconds and 4 git commands to generate.