55 lines
2.0 KiB
RPMSpec
55 lines
2.0 KiB
RPMSpec
%define majver %(echo %version | cut -d_ -f1)
|
|
%define pkgver %(echo %version | tr _ -)
|
|
Name: netcat-openbsd
|
|
Version: 1.226_1
|
|
Release: 1mamba
|
|
Summary: A simple Unix utility which reads and writes data across network connections using TCP or UDP protocol
|
|
Group: Applications/Networking
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://packages.debian.org/sid/netcat-openbsd
|
|
Source: http://ftp.de.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_%{majver}.orig.tar.gz
|
|
Source1: http://ftp.de.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_%{pkgver}.debian.tar.xz
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libbsd-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{majver} -a1
|
|
cat debian/patches/series | while read line; do
|
|
patch -p1 < debian/patches/$line
|
|
done
|
|
|
|
%build
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
install -D -m0755 nc %{buildroot}%{_bindir}/nc
|
|
install -D -m0644 nc.1 %{buildroot}%{_mandir}/man1/nc.1
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/nc
|
|
%{_mandir}/man1/nc.1*
|
|
%doc debian/copyright
|
|
|
|
%changelog
|
|
* Tue Dec 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.226_1-1mamba
|
|
- update to 1.226_1
|
|
|
|
* Tue Oct 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.105_7-1mamba
|
|
- package created using the webbuild interface
|