]> git.pld-linux.org Git - packages/cdrdao.git/blobdiff - cdrdao.spec
- glibc.patch added; stolen from -> http://bugs.gentoo.org/270414
[packages/cdrdao.git] / cdrdao.spec
index 4ede5cfca9c599a850acd8dc33978af0517ae466..51033802103cc9aa41dbefc64466cb7f8f8c3be7 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_without gnome   # don't build gcdmaster
+%bcond_without mp3     # without MP3 support
+%bcond_without ogg     # without Ogg support
+#
 Summary:       Tools for burning CDRs in Disk At Once mode
-Summary(pl):   Narzêdzia do wypalania p³yt w trybie Disk At Once
+Summary(pl.UTF-8):     Narzędzia do wypalania płyt w trybie Disk At Once
+Summary(pt_BR.UTF-8):  Cdrdao - Escreve CD-Rs de áudio em modo "disk-at-once"
 Name:          cdrdao
-Version:       1.1.3
+Version:       1.2.2
 Release:       2
-License:       GPL
+License:       GPL v2+
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
-Source0:       ftp://ftp.sourceforge.net/pub/sourceforge/cdrdao/%{name}-%{version}.src.tar.gz
-Patch0:                %{name}-destdir.patch
-Patch1:                %{name}-opt.patch
+Source0:       http://dl.sourceforge.net/cdrdao/%{name}-%{version}.tar.bz2
+# Source0-md5: f0cbf36907406cb4f4c568f9e6669a34
+Source1:       %{name}.desktop
+# http://cdrdao.sourceforge.net/drives.html#dt
+Source2:       %{name}.drivers
+Patch0:                %{name}-nolibs.patch
+Patch1:                %{name}-pccts-antlr.patch
+Patch2:                %{name}-gcc4.patch
+Patch3:                %{name}-sigc.patch
+Patch4:                %{name}-glibc.patch
 URL:           http://cdrdao.sourceforge.net/
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: cdrtools-devel >= 3:2.01a25
+%{?with_gnome:BuildRequires:   gtkmm-devel >= 2.4.0}
+%{?with_mp3:BuildRequires:     lame-libs-devel >= 3.92}
+%if %{with mp3} || %{with ogg}
+BuildRequires: libao-devel >= 0.8
+%endif
+%{?with_mp3:BuildRequires:     libmad-devel >= 0.15.1b-4}
+%{?with_gnome:BuildRequires:   libgnomeuimm-devel >= 2.6.0}
+BuildRequires: libmad-devel >= 0.15.1b-4
+%{?with_gnome:BuildRequires:   libsigc++-devel >= 2.0.0}
 BuildRequires: libstdc++-devel
-BuildRequires: libsigc++-devel
-BuildRequires: pccts-devel
-# Required by frontend.
-#BuildRequires:        gtk+-devel
-#BuildRequires:        gtkmm-devel
+%{?with_ogg:BuildRequires:     libvorbis-devel >= 1:1.0}
+BuildRequires: pccts >= 1.33MR33-8
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
+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.
 
-%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.
+%description -l pl.UTF-8
+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.UTF-8
+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.UTF-8):     Frontend GNOME do cdrdao do składania płyt CD-Audio
+Group:         X11/Applications
+Requires:      %{name} = %{version}-%{release}
+Requires(post,postun): shared-mime-info
+
+%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.UTF-8
+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
+%patch4 -p1
+
+sed -i -e 's#/usr/src/linux/include##g' scsilib/DEFAULT*/Defaults.linux
+%if !%{with gnome}
+sed -i -e 's/^en_xdao=yes$/en_xdao=no/' configure.ac
+%endif
 
 %build
-(cd paranoia ; autoconf)
-%configure2_13 \
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+PKG_CONFIG=%{_bindir}/pkg-config \
+%configure \
        --with-pcctsbin=%{_bindir} \
-       --with-pcctsinc=%{_includedir}/pccts \
-       --x-includes=%{_prefix}/X11R6/includes \
-       --with-gtkmm-exec-prefix=/usr
-%{__make}
+       --with-pcctsinc=%{_libdir}/pccts/h \
+       --with-scglib-inc=%{_includedir}/schily \
+       --with-scglib-lib=%{_libdir} \
+       --with%{!?with_gnome:out}-xdao \
+       --with%{!?with_mp3:out}-mp3-support \
+       --with%{!?with_ogg:out}-ogg-support
+
+%{__make} \
+       CC="%{__cc}" \
+       COPTOPT="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf CREDITS README* Release*
+install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/drivers
+
+%if %{with gnome}
+rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post gcdmaster
+%update_mime_database
+
+%postun gcdmaster
+%update_mime_database
+
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/*/*
+%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
+%{_datadir}/gcdmaster
+%{_datadir}/mime/packages/gcdmaster.xml
+%{_desktopdir}/gcdmaster.desktop
+%{_pixmapsdir}/*
+%{_mandir}/man1/gcdmaster.1*
+%endif
This page took 0.09196 seconds and 4 git commands to generate.