File whatmask.spec of Package whatmask

Summary: Whatmask - Convert netmasks, display helpful network information
Name: whatmask
Version: 1.2
Release: 1.mh.0
License: GNU Public License
Group: Utilities/Network
Source: http://downloads.laffeycomputer.com/current_builds/whatmask/whatmask-1.2.tar.bz2
URL: http://www.laffeycomputer.com/whatmask.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Packager: Mathias Homann <admin@eregion.de>

%description
Whatmask is a small C program that will help you with network settings.

It can analyze CIDR, netmask, netmask (hex), and wildcard bit notations to give useful
information about the network block in question.

%prep
%setup
./configure

%debug_package

%build
make

%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 644 man/whatmask.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 755 whatmask $RPM_BUILD_ROOT/%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README

%{_bindir}/whatmask
%{_mandir}/man1/whatmask.1.gz

%changelog
* Fri Jul 18 2008 Mathias Homann <admin@eregion.de>
- trying to fix build errors

* Fri Mar 30 2007 Mathias Homann <admin@eregion.de>
- imported into suse build service

* Wed Dec 10 2003 Joe Laffey <software@laffeycomputer.com>
- Upgraded to version 1.2 with incorporated manpage.

* Sat Nov 30 2002 Tim Jackson <tim@timj.co.uk>
- Adjusted packaging; can build as non-root and does not overwrite
  system files whilst building

* Thu Sep 13 2001 Joe Laffey <software@laffeycomputer.com>
- Upgraded to version 1.1.

* Thu Jul 05 2001 Joe Laffey <software@laffeycomputer.com>
- Initial RPM packaging