Name: wrapsrv Version: 1.0.0 Release: 1%{?dist}.tk2 Summary: DNS SRV record command line wrapper Group: Applications/Networking License: Apache 2.0 URL: https://github.com/farsightsec/wrapsrv Source0: https://dl.farsightsecurity.com/dist/wrapsrv/wrapsrv-%{version}.tar.gz Patch0: double_pct.patch BuildRequires: make gcc %description wrapsrv adds support for connecting to a network service based on DNS SRV record lookups to commands that do not support the DNS SRV record. wrapsrv implements the weighted priority client connection algorithm in RFC 2782. The specified command line will be invoked one or more times with %h and %p sequences in the command line substituted for the hostname and port elements of the selected SRV record. %prep %setup -q %patch0 -p1 -b.pct %build make %{?_smp_mflags} %install rm -rf %{buildroot} make install PREFIX=/usr DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %files /usr/bin/wrapsrv /usr/share/man/man1/wrapsrv.1.gz %changelog