Some days ago I created a .spec file for ethereal. You'll find it attached to this mail.
Regards
Martin "FastJack" Maciaszek
--
Unix soit qui mal y pense
[Unix to him who evil thinks?]
# Note that this is NOT a relocatable package
%define ver 0.5.0
%define rel 1
%define prefix /usr/X11R6
Summary: Network traffic analyzer
Name: ethereal
Version: %ver
Release: %rel
Copyright: GPL
Group: Networking/Utilities
Source: ethereal-%{PACKAGE_VERSION}.tar.gz
URL: http://ethereal.zing.org/
BuildRoot: /tmp/ethereal-%PACKAGE_VERSION}-root
Packager: FastJack <fastjack@xxxxxxxxx>
Requires: gtk+10
Requires: libpcap
%description
Ethereal is a network traffic analyzer for Unix-ish operating systems.
%prep
%setup
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=/etc
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/{etc,usr/X11R6/bin,usr/X11R6/man/man1}
# can't use make install here. It would put manuf directly into /etc
cp ethereal $RPM_BUILD_ROOT/usr/X11R6/bin
cp ethereal.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1
cp manuf $RPM_BUILD_ROOT/etc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%config /etc/manuf
/usr/X11R6/bin/ethereal
/usr/X11R6/man/man1/ethereal.1
%changelog
* Fri Nov 20 1998 FastJack <fastjack@xxxxxxxxx>
- updated to 0.5.0
* Sun Nov 15 1998 FastJack <fastjack@xxxxxxxxx>
- created .spec file