]> git.pld-linux.org Git - packages/cdrdao.git/blobdiff - cdrdao.spec
move BR: GConf2-devel to gnome bcond
[packages/cdrdao.git] / cdrdao.spec
index 9fa1b3e18b0fd823bb6bb05d545f8fbf2c06e1fb..5567060f9a002eaf8d750d243c8f5a3570eeb3a6 100644 (file)
@@ -8,20 +8,20 @@ Summary:      Tools for burning CDRs in Disk At Once mode
 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.2.2
-Release:       2
+Version:       1.2.4
+Release:       1
 License:       GPL v2+
 Group:         Applications/System
-Source0:       http://dl.sourceforge.net/cdrdao/%{name}-%{version}.tar.bz2
-# Source0-md5: f0cbf36907406cb4f4c568f9e6669a34
+Source0:       https://downloads.sourceforge.net/cdrdao/%{name}-%{version}.tar.bz2
+# Source0-md5: 2ada887d1b30b440867b8df0d3023cf7
 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
 URL:           http://cdrdao.sourceforge.net/
+%{?with_gnome:BuildRequires:   GConf2-devel}
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: cdrtools-devel >= 3:2.01a25
@@ -30,9 +30,9 @@ BuildRequires:        cdrtools-devel >= 3:2.01a25
 %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_mp3:BuildRequires:     libmad-devel >= 0.15.1b-4}
 %{?with_gnome:BuildRequires:   libsigc++-devel >= 2.0.0}
 BuildRequires: libstdc++-devel
 %{?with_ogg:BuildRequires:     libvorbis-devel >= 1:1.0}
@@ -62,8 +62,8 @@ raw.
 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
+Requires:      %{name} = %{version}-%{release}
 
 %description gcdmaster
 gcdmaster allows the creation of toc-files for cdrdao and can control
@@ -84,13 +84,17 @@ niedestruktywne cięcie danych audio.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p0
 
-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
+%{__sed} -i -e 's#/usr/src/linux/include##g' scsilib/DEFAULT*/Defaults.linux
+%if %{without gnome}
+%{__sed} -i \
+       -e 's/^en_gcdmaster=yes$/en_gcdmaster=no/' \
+       -e 's/^AM_GCONF_SOURCE_2$/#AM_GCONF_SOURCE_2/' \
+       configure.ac
 %endif
 
+install %{SOURCE1} gcdmaster/gcdmaster.desktop
+
 %build
 %{__aclocal}
 %{__autoconf}
@@ -102,7 +106,7 @@ PKG_CONFIG=%{_bindir}/pkg-config \
        --with-pcctsinc=%{_libdir}/pccts/h \
        --with-scglib-inc=%{_includedir}/schily \
        --with-scglib-lib=%{_libdir} \
-       --with%{!?with_gnome:out}-xdao \
+       --with%{!?with_gnome:out}-gcdmaster \
        --with%{!?with_mp3:out}-mp3-support \
        --with%{!?with_ogg:out}-ogg-support
 
@@ -119,7 +123,9 @@ install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}}
 
 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
@@ -132,13 +138,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CREDITS README README.PlexDAE 
+%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*
+%{_mandir}/man1/toc2cddb.1*
+%{_mandir}/man1/toc2cue.1*
 
 %if %{with gnome}
 %files gcdmaster
@@ -147,6 +155,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gcdmaster
 %{_datadir}/mime/packages/gcdmaster.xml
 %{_desktopdir}/gcdmaster.desktop
+%{_sysconfdir}/gconf/schemas/gcdmaster.schemas
 %{_pixmapsdir}/*
 %{_mandir}/man1/gcdmaster.1*
 %endif
This page took 0.06066 seconds and 4 git commands to generate.