# spec file
#

#===============================================================================
# defines

%define MY_PACKAGE	Xeznet
%define MY_BIN_PACKAGE	xeznet
%define MY_REQUIREMENTS	eznet >= 1.11.1
%define	MY_VERSION	1.8
%define MY_RELEASE	1
%define MY_GROUP	Networking/Utilities

#===============================================================================
# Preamble

#===
# Package Name Tags

Name: %{MY_PACKAGE}
Version: %{MY_VERSION}
Release: %{MY_RELEASE}

#===
# Descriptive Tags

Summary: XEZnet is a Tcl/Tk shell interface for EZnet
Copyright: GPL
Distribution: Unix/Linux
#Icon:
URL: http://www.hwaci.com/sw/eznet
Group: %{MY_GROUP}
Vendor: Mark Hall <mghall@interact.com>
Packager: John W. Woznack <jwoznack@concentric.net>
Source0: %{MY_PACKAGE}-%{MY_VERSION}.tar.gz

%description
XEZNET is a Tcl/Tk front end GUI for the EZnet program

#===
# Dependancy Tags

Provides: %{MY_PACKAGE}
Requires: %{MY_REQUIREMENTS}
Serial: %{MY_RELEASE}
#Conflicts:
AutoReqProv: Yes

#===
# Arch/OS Tags

#ExcludeArch:
#ExclusiveArch:
ExcludeOS: Win95 Win98 WinNT
#ExclusiveOS:

#===
# Directory Tags

#Prefix:
#BuildRoot:

#===
# Source/Patch Tags

#NoSource:
#Patch:
#NoPatch:

#==
# Sub Package(s) 
#  (including the binary ones we want!)
#  (don't forget to add the %files line for it!)

%package -n %{MY_BIN_PACKAGE}
Summary: XEZnet GUI for EZnet
Group: %{MY_GROUP}
Provides: %{MY_BIN_PACKAGE}
Requires: %{MY_REQUIREMENTS}
%description -n %{MY_BIN_PACKAGE}
XEZNET is a Tcl/Tk front end GUI for the EZnet program

#===============================================================================
# Scripts

#===
# Prep

%prep
%setup -c

#cd %{MY_PACKAGE}-%{MY_VERSION}
# patch, if needed
#cd ..

#===
# Build

%build

# make the libraries reentrant
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_REENTRANT"

cd %{MY_PACKAGE}-%{MY_VERSION}

#%configure --enable-shared --enable-gcc
make
cd ..

#===
# Pre-Install

%pre

#===
# Install

%install

cd %{MY_PACKAGE}-%{MY_VERSION}
make install
cd ..

#===
# Post-Install

%post

#===
# Pre-UnInstall

%preun

#===
# Post-UnInstall

%postun

#===
# Verify
%verifyscript

#===
# Clean

%clean
rm -rf $RPM_BUILD_ROOT

#===============================================================================
# Files

%files -n %{MY_BIN_PACKAGE}
/usr/bin/xeznet

#===============================================================================
# Change Log

%changelog
* Tue Feb 19 1999 Mark Hall <mghall@interact.com>
- Created version 1.8
