File eggdrop.spec of Package eggdrop
%define distversion %( perl -e '$_=\<\>;/(\\d+)\\.(\\d)\\.?(\\d)?/; print "$1$2".($3||0)' /etc/*-release)
%define smptag %(uname -a|awk '{print $5}')
Summary: eggdrop - IRC Bot
Name: eggdrop
Version: 1.6.18
Release: 1
License: GPL
Vendor: Eggheads Development Team
Url: http://www.eggheads.org/
Packager: Carsten Schoene <cs@linux-administrator.com>
Group: TCL
Source: %{name}%{version}.tar.gz
BuildRoot: /tmp/%{name}-%{version}/
BuildRequires: openssl-devel zlib-devel tcl-devel glibc-devel libgcc gcc gcc-c++
Requires: tcl tclx zlib openssl
%description
Eggdrop is the world's most popular Open Source IRC bot,
designed for flexibility and ease of use,
and is freely distributable under the GNU General Public License (GPL).
%prep
%setup -q -n %{name}%{version}
%build
%configure
%{__make} config
if [ %{smptag} = SMP ]; then
%{__make} -j2
else
%{__make}
fi
%install
install -d -m 755 $RPM_BUILD_ROOT/usr/eggdrop
%{__make} DEST=$RPM_BUILD_ROOT/usr/eggdrop install
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/%{name}*
rm -rf ../file.list.%{name}
%files -f ../file.list.%{name}
%changelog
* Thu Dec 21 2006 Carsten Schoene <cs@linux-administrator.com>
- initial build of version 1.6.18