File coolmail.spec of Package coolmail
Name: coolmail
URL: http://packages.debian.org/sid/coolmail
BuildRequires: xorg-x11-util-devel xorg-x11-libX11-devel xorg-x11-libXt-devel xorg-x11-libXext-devel
Version: 1.3
Release: 1
License: GPL v2 or later
Source: coolmail-1.3.tar.gz
Patch0: coolmail-1.3.dif
Group: Productivity/Networking/Email/Utilities
Summary: Coolmail - Mail notifier with 3d graphics
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Coolmail is like xbiff -- it watches your inbox mail file and lets
you know when you have mail. But unlike xbiff, it can launch your
favorite mail utility when you click on it, and it has cool animated
3D graphics.
%prep
%setup
%patch0 -p0 -b .0
%build
CC=gcc
CFLAGS="-Wall $RPM_OPT_FLAGS -D_GNU_SOURCE"
make CC="$CC" CFLAGS="$CFLAGS"
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
make MANDIR=%{buildroot}/%{_mandir}/man1 BINDIR=%{buildroot}/%{_bindir} install
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc README README.changes
%{_bindir}/coolmail
%{_mandir}/man1/coolmail.1.gz
%changelog