# # spec file for package netcat-openbsd # # Copyright (c) 2011 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 http://bugs.opensuse.org/ # # norootforbuild Url: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/ Name: netcat-openbsd Version: 1.105 Release: 7 License: BSD-3-Clause BuildRoot: %{_tmppath}/%{name}-%{version}-build #BuildRequires: libbsd-dev Group: Productivity/Networking/Other Summary: TCP/IP swiss army knife Source: %{name}-%{version}.tar.gz Patch0: netcat-bsd-0001-port-to-linux-with-libsd.patch Patch1: netcat-bsd-0002-connect-timeout.patch Patch2: netcat-bsd-0003-get-sev-by-name.patch Patch3: netcat-bsd-0004-poll-hup.patch Patch4: netcat-bsd-0005-send-crlf.patch Patch5: netcat-bsd-0006-quit-timer.patch Patch6: netcat-bsd-0007-udp-scan-timeout.patch Patch7: netcat-bsd-0008-verbose-numeric-port.patch Patch8: netcat-bsd-0009-dccp-support.patch Patch9: netcat-bsd-0010-serialized-handling-multiple-clients.patch Patch10: netcat-bsd-0011-misc-failures-and-features.patch Provides: nc6 = %{version} netcat = %{version} Obsoletes: nc6 <= 1.0 netcat <= 1.10 BuildArch: i486 %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 "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, 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 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %build export CFLAGS="%{optflags}" make %install mkdir -p \ ${RPM_BUILD_ROOT}%{_bindir} install nc ${RPM_BUILD_ROOT}/%{_bindir} mkdir -p \ ${RPM_BUILD_ROOT}/%{_mandir}/man1 install nc.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/ touch \ ${RPM_BUILD_ROOT}/usr/bin/netcat \ ${RPM_BUILD_ROOT}/usr/share/man/man1/netcat.1 %{__ln_s} -f %{_bindir}/nc ${RPM_BUILD_ROOT}/%{_bindir}/netcat %{__ln_s} -f nc.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/netcat.1 %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %{_bindir}/nc %{_bindir}/netcat #%ghost %{_bindir}/netcat %{_mandir}/man1/nc.1.gz %{_mandir}/man1/netcat.1.gz #%ghost %{_mandir}/man1/netcat.1.gz #%ghost /etc/alternatives/netcat #%ghost /etc/alternatives/netcat.1.gz %changelog * Sat Dec 10 2011 crrodriguez@opensuse.org - Update xbuntu patches. - Ensure we have large file support in 32 bit builds - Fix rpmlint warnings * Sat Jul 16 2011 andrea.turrini@gmail.com - Fixed typos in description of netcat-openbsd.spec * Fri Jun 25 2010 lmuelle@suse.de - Use update-alternatives to set netcat symbolic links for compatibility. - Provides and obsoltes netcat. * Fri May 28 2010 cristian.rodriguez@opensuse.org - Obsolete nc6 * Tue May 18 2010 cristian.rodriguez@opensuse.org - sync recent bugfixes from Ubuntu * Fri Feb 20 2009 crrodriguez@suse.de - sync most recent bugfixes from debian/Ubuntu * Sat Jul 5 2008 crrodriguez@suse.de - netcat-openbsd conflicts with netcat but it should not [BNC#406581] * Sun Apr 13 2008 crrodriguez@suse.de - initial version for the OBS