]> git.pld-linux.org Git - packages/gg2.git/blobdiff - gg2.spec
- add bcond for arts plugin
[packages/gg2.git] / gg2.spec
index 3044eaa34dba22651be4ecc4e3456659c8fa83c4..d6ffb28ba108979174cdb505e791a36dbacffc0c 100644 (file)
--- 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
@@ -26,8 +28,9 @@ BuildRequires:        libtool
 BuildRequires: intltool
 BuildRequires: gettext-devel >= 0.11.0
 BuildRequires: xosd-devel   >= 2.0.0
-BuildRequires:  pkgconfig
+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
@@ -187,10 +192,10 @@ Support for Window Managers docklets (GNOME, KDE).
 Obs³uga dokletów w ró¿nych zarz±dcach okien (GNOME, KDE).
 
 %package sms
-Summary:        SMS Gateway
-Summary(pl):    Bramka SMS
-Group:          Applications/Communications
-Requires:       %{name} = %{epoch}:%{version}
+Summary:       SMS Gateway
+Summary(pl):   Bramka SMS
+Group:         Applications/Communications
+Requires:      %{name} = %{epoch}:%{version}
 
 %description sms
 Send SMS to cellular phones via web gateways.
@@ -199,10 +204,10 @@ Send SMS to cellular phones via web gateways.
 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
 
 %package remote
-Summary:        Remote access from other applications
-Summary(pl):    Dostêp do programu z innych aplikacji
-Group:          Applications/Communications
-Requires:       %{name} = %{epoch}:%{version} 
+Summary:       Remote access from other applications
+Summary(pl):   Dostêp do programu z innych aplikacji
+Group:         Applications/Communications
+Requires:      %{name} = %{epoch}:%{version}
 
 %description remote
 Make possible exchange data with other applications.
@@ -214,13 +219,13 @@ Wtyczka umo
 Summary:       Themes for GNU Gadu 2 GUI
 Summary(pl):   Motywy graficzne dla GUI GNU Gadu 2
 Group:         Applications/Communications
-Requires:       %{name} = %{epoch}:%{version}
+Requires:      %{name} = %{epoch}:%{version}
 Requires:      %{name}-gui-gtk+2
 
 %description themes
 Themes for GNU Gadu 2 GUI.
 
-%description themes
+%description themes -l pl
 Motywy graficzne dla GUI GNU Gadu 2.
 
 %prep
@@ -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
This page took 0.361163 seconds and 4 git commands to generate.