# # spec file for package netcat-openbsd (Version 1.89) # # Copyright (c) 2008 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 Url: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/ Name: netcat-openbsd Version: 1.89 Release: 2 License: BSD 3-Clause BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake glib2-devel quilt Conflicts: netcat Group: Productivity/Networking/Other Summary: TCP/IP swiss army knife Source: %{name}-%{version}.tar.bz2 Source1: CMakeLists.txt Patch0: netcat-openbsd_1.89-2ubuntu1.diff.bz2 %description A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol. It is designed to be a reliable "bac k-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 debuggin g and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities. This package contains the OpenBSD rewrite of netcat, including support for IPv6, proxies, and Unix sockets. Authors: -------- Eric Jackson %prep %setup -q %patch0 -p1 %{__sed} -i -e 's@Debian patchlevel " DEBIAN_VERSION "@SUSE Linux@g' debian/patches/help-version-exit.patch QUILT_PATCHES=debian/patches quilt push -a %{__cp} %{S:1} . %build export CFLAGS="%{optflags}" cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} . make %install %makeinstall %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %{_bindir}/nc %{_mandir}/man1/nc.1.gz %changelog * Sun Apr 13 2008 crrodriguez@suse.de - initial version for the OBS