File ike-scan.spec of Package ike-scan
%define realname ike-scan
%define srcext tar.bz2
# Common info
Name: %{realname}
Version: 1.9
Release: wiz%{?extraver:0.}1
License: GPL-3.0
Group: Productivity/Networking/Security
URL: https://github.com/royhills/ike-scan
Summary: IPsec VPN scanning, fingerprinting and testing tool
# Build-time parameters
BuildRequires: autoconf automake libtool
BuildRequires: openssl-devel
BuildRoot: %{_tmppath}/%{name}-root
Source: %{realname}-%{version}%{?extraver}.%{srcext}
%description
ike-scan is a command-line tool that uses the IKE protocol to discover,
fingerprint and test IPsec VPN servers. It is available for Linux, Unix,
MacOS and Windows under the GPL license.
# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n %{realname}-%{version}%{?extraver}
if [ ! -x configure ]
then
if [ -x autogen.sh ]
then
./autogen.sh
else
autoreconf --force --install
fi
fi
%build
%configure \
--disable-static \
--with-openssl \
LDFLAGS="-Wl,--as-needed -Wl,--strip-all"
%{__make} %{?_smp_mflags}
%install
%{__make} install DESTDIR=%{buildroot}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%doc %{_mandir}/man1/*
%changelog