--- gaim.spec.in 2003-11-30 12:31:17.000000000 -0500 +++ gaim.spec.in.stu 2003-11-30 12:40:29.000000000 -0500 @@ -9,12 +9,29 @@ Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root +%{!?_without_audio:Requires: audiofile, libao} +%{!?_without_gtkspell:Requires: gtkspell} + +BuildRequires: pkgconfig, libtool +%{!?_without_audio:BuildRequires: audiofile-devel, libao-devel} +%{!?_without_gtkspell:BuildRequires: gtkspell-devel} +%{!?_without_perl:BuildRequires: perl} +%{!?_without_tcl:BuildRequires: tcl %{!?_without_tk:, tk}} +%{?_with_nas:BuildRequires: nas-devel} + %if "%{_vendor}" != "MandrakeSoft" -Requires: gtk2 >= 2.0.0, mozilla-nss, gtkspell, audiofile, libao -BuildRequires: libao-devel, gtk2-devel, gtkspell-devel, libtool, audiofile-devel, pkgconfig, mozilla-nss-devel + # non-Mandrake + Requires: gtk2 >= 2.0.0 + %{!?_without_ssl:Requires: mozilla-nss} + BuildRequires: gtk2-devel + %{!?_without_ssl:BuildRequires: mozilla-nss-devel} %else -Requires: gtk+2.0 >= 2.0.0, libnss3 -BuildRequires: libao-devel, libgtk+2.0_0-devel, gtkspell-devel, libtool, audiofile-devel, pkgconfig, libnss3-devel, perl-devel + # Mandrake + Requires: gtk+2.0 >= 2.0.0 + %{!?_without_ssl:Requires: libnss3} + BuildRequires: libgtk+2.0_0-devel + %{!?_without_ssl:BuildRequires: libnss3-devel} + %{!?_without_perl:BuildRequires: perl-devel} %endif %package devel @@ -51,7 +68,15 @@ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir} \ - --with-perl-lib=%{buildroot}%{_prefix} + %{!?_without_perl:--with-perl-lib=%{buildroot}%{_prefix}} \ + %{?_without_audio:--disable-audio} \ + %{?_without_gtkspell:--disable-gtkspell} \ + %{?_without_ssl:--enable-nss=no --enable-gnutls=no} \ + %{!?_without_ssl:--enable-nss=yes} \ + %{?_without_perl:--disable-perl} \ + %{?_without_tcl:--disable-tcl} \ + %{?_without_tk:--disable-tk} \ + %{?_with_nas:--enable-nas} make %{?_smp_mflags} %install @@ -75,12 +100,12 @@ %doc doc/the_penguin.txt doc/CREDITS doc/FAQ NEWS COPYING AUTHORS %doc README ChangeLog %doc %{_mandir}/man1/* -%doc %{_mandir}/man3*/* +%{!?_without_perl:%doc %{_mandir}/man3*/*} %dir %{_libdir}/gaim %attr(755, root, root) %{_libdir}/gaim/* %attr(755, root, root) %{_libdir}/libgaim-remote.so.* -%attr(755, root, root) %{_libdir}/perl5 +%{!?_without_perl:%attr(755, root, root) %{_libdir}/perl5} %{_bindir}/* %{_datadir}/locale/*/*/*