%define with_pspell 1 %{?_with_pspell: %{expand: %%define with_pspell 1}} %{?_without_pspell: %{expand: %%define with_pspell 0}} Summary: The Pan newsreader Name: pan Version: 0.13.3.93 Release: 1mdk90 Epoch: 1 License: GPL Group: Networking/News URL: http://pan.rebelbase.com/ Vendor: ChimPanXi Source0: http://pan.rebelbase.com/download/releases/%{version}/SOURCE/%{name}-%{version}.tar.bz2 Source2: %{name}-32.png Source3: %{name}-16.png Source4: %{name}-48.png BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %if %{with_pspell} BuildRequires: libgtkspell-devel >= 2.0.2 %endif BuildRequires: libgtk+2.0-devel >= 2.0.5 BuildRequires: libxml2-devel >= 2.4.22 BuildRequires: libgnet1.1-devel >= 1.1.5 Requires: libgnet >= 1.1.5 %if %{with_pspell} Requires: aspell Requires: libgtkspell0 >= 2.0.2 %endif Provides: %{name} %description Pan is a newsreader, loosely based on Agent and Gravity, which attempts to be pleasant to use for new and advanced users alike. It has all the typical features found in newsreaders and also supports offline newsreading, sophisticated filtering, multiple connections, and a number of extra features for power users and alt.binaries fans. It's also the only Unix newsreader to get a perfect score on the Good Net-Keeping Seal of Approval evalutions. See http://pan.rebelbase.com/features/ for the whole sales pitch. %prep rm -rf $RPM_BUILD_ROOT %setup -q %build %configure2_5x \ %if %{with_pspell} --enable-gtkspell %else --disable-gtkspell %endif %make %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %makeinstall_std %{find_lang} %{name} # Menu mkdir -p $RPM_BUILD_ROOT%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/%{name} < 0.13.3.93-1mdk90 - Release 0.13.3.93 * Mon Feb 10 2003 Torstein Sunde 0.13.3.92-1mdk90 - Release 0.13.3.92 built for Mandrake 9.0. - Merged spec files from Mandrakesoft and pan.rebelbase.com.