File netcat.spec of Package netcat

# spec file for package netcat (Version 1.10)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           netcat
%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
License:        PERMISSIVE-OSI-COMPLIANT ; Public domain with credit restriction.
Group:          Productivity/Networking/Other
AutoReqProv:    on
Summary:        A Simple But Powerful Network Tool
Version:        1.10
Release:        1007
Source:         netcat-1.10.tar.gz
Source1:        netcat.1
Patch0:         netcat.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.


%setup -q
cp %SOURCE1 .

make linux "CFLAGS=$RPM_OPT_FLAGS"

%{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


%doc Changelog
%doc data
%doc scripts