From ebf12c5cda69c487e797a2599f6540129dbf2d97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcin=20Krzy=C5=BCanowski?= Date: Fri, 12 Sep 2003 09:57:21 +0000 Subject: [PATCH] - add bcond for arts plugin Changed files: gg2.spec -> 1.55 --- gg2.spec | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/gg2.spec b/gg2.spec index 1389e65..d6ffb28 100644 --- a/gg2.spec +++ b/gg2.spec @@ -1,4 +1,6 @@ +%bcond_with arts + %define _pre pre3 Summary: GNU Gadu 2 - free talking Summary(pl): GNU Gadu 2 - wolne gadanie @@ -28,6 +30,7 @@ BuildRequires: gettext-devel >= 0.11.0 BuildRequires: xosd-devel >= 2.0.0 BuildRequires: pkgconfig BuildRequires: fontconfig-devel +%{?with_arts:BuildRequires: arts-devel} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -150,17 +153,19 @@ Sound support with external player. %description sound-external -l pl Obs³uga d¼wiêku przez zewnêtrzny program. -#%package sound-aRts -#Summary: Sound support with aRts -#Summary(pl): Obs³uga d¼wiêku poprzez aRts -#Group: Applications/Communications -#Requires: %{name} = %{version} +%if %{with arts} +%package sound-aRts +Summary: Sound support with aRts +Summary(pl): Obs³uga d¼wiêku poprzez aRts +Group: Applications/Communications +Requires: %{name} = %{version} -#%description sound-aRts -#Sound support with aRts. +%description sound-aRts +Sound support with aRts. -#%description sound-aRts -l pl -#Obs³uga d¼wiêku poprzez aRts. +%description sound-aRts -l pl +Obs³uga d¼wiêku poprzez aRts. +%endif %package xosd Summary: Support for X On Screen Display @@ -247,9 +252,11 @@ intltoolize --copy --force --with-oss \ --with-sms \ --with-external \ +%if %{with arts} + --with-arts \ +%endif --with-remote \ --enable-perl -# --with-arts %{__make} @@ -330,6 +337,12 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so +%if %{with arts} +%files sound-aRts +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so +%endif + %files xosd %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so -- 2.44.0