From 50bd1ec0689061aa1fa710e84ead3dcecab1dae3 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Thu, 22 Jul 2021 19:04:45 +0200 Subject: [PATCH] move BR: GConf2-devel to gnome bcond --- cdrdao.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cdrdao.spec b/cdrdao.spec index 852d84c..5567060 100644 --- a/cdrdao.spec +++ b/cdrdao.spec @@ -21,7 +21,7 @@ Patch0: %{name}-nolibs.patch Patch1: %{name}-pccts-antlr.patch Patch2: %{name}-gcc4.patch URL: http://cdrdao.sourceforge.net/ -BuildRequires: GConf2-devel +%{?with_gnome:BuildRequires: GConf2-devel} BuildRequires: autoconf BuildRequires: automake BuildRequires: cdrtools-devel >= 3:2.01a25 @@ -86,8 +86,11 @@ niedestruktywne cięcie danych audio. %patch2 -p1 %{__sed} -i -e 's#/usr/src/linux/include##g' scsilib/DEFAULT*/Defaults.linux -%if !%{with gnome} -%{__sed} -i -e 's/^en_gcdmaster=yes$/en_gcdmaster=no/' configure.ac +%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 -- 2.44.0