File cross-sh4-netcat.spec of Package cross-sh4-netcat
#
# spec file for package netcat (Version 1.10)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cross-sh4-netcat
%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
License: distributable, Other License(s), see package
Group: Productivity/Networking/Other
Autoreqprov: off
Summary: A Simple But Powerful Network Tool
Version: 1.10
Release: 883
Source: netcat-1.10.tar.gz
Source1: netcat.1
Patch0: netcat.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildi/opt/cross/sh4-linux/sys-root
%description
Netcat is a simple Unix utility that reads and writes data across
network connections using TCP or UDP protocols. It is designed to be a
reliable back-end tool that can be used directly or easily driven by
other programs and scripts. At the same time, it is a feature-rich
network debugging and exploration tool, because it can create almost
any kind of connection you may need and has several interesting
built-in capabilities.
Find the documentation in /usr/share/doc/packages/netcat/README.
Authors:
--------
hobbit@avian.org
%prep
%setup -q -n netcat-%{version}
%patch0
cp %SOURCE1 .
%build
make linux
#make linux "CFLAGS=$RPM_OPT_FLAGS"
%install
%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/bin
%{INSTALL_DIR} $RPM_BUILD_ROOT/%_mandir/man1
%{INSTALL} nc $RPM_BUILD_ROOT/usr/bin/netcat
%{INSTALL} -m 0644 netcat.1 $RPM_BUILD_ROOT/usr/share/man/man1
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin/netcat
%_mandir/man1/*
%doc Changelog
%doc README
%doc data
%doc scripts
%changelog -n cross-sh4-netcat