%global commit d4656ad8a32d694723da49e6f31d33e0c47e22c7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: masscan Version: 1.0.3 Release: 7%{?dist} Summary: This is the fastest Internet port scanner License: BSD URL: https://github.com/robertdavidgraham/%{name} Source0: https://github.com/robertdavidgraham/%{name}/archive/%{commit}/%{commit}.tar.gz Patch0: %{name}-%{version}-secondary.patch Patch1: %{name}-1.0.3-gcc5.patch BuildRequires: libpcap-devel %description It is a faster port scan that produces results similar to nmap, the most famous port scanner. Internally, it operates more like scanrand, unicornscan, and ZMap, using asynchronous transmission. %prep %setup -q -n %{name}-%{commit} %patch0 -p1 -b .secondary %patch1 -p1 sed -i 's/\r$//' VULNINFO.md %build make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %install make install DESTDIR=%{buildroot} mkdir -p %{buildroot}%{_bindir}/ install -pm 0755 bin/masscan %{buildroot}%{_bindir}/%{name} %files %license LICENSE %doc VULNINFO.md README.md %{_bindir}/masscan %changelog * Thu Feb 16 2017 Ralf Corsépius - 1.0.3-7 - Extend masscan-1.0.3-gcc5.patch to treat gcc <= 7 as GCC4 (Fix F25FTBFS, F26FTBFS). * Thu Feb 04 2016 Fedora Release Engineering - 1.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jul 15 2015 Ralf Corsépius - 1.0.3-4 - Add support for gcc-5/Add masscan-1.0.3-gcc5.patch (Fix F23FTBFS, RHBZ#1239667). - Add %%license. * Wed Jun 17 2015 Fedora Release Engineering - 1.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Jun 23 2014 Rino Rondan - 1.0.3-1 - Rebuilt for version 1.0.3 and fix Source0 * Sat Jun 07 2014 Fedora Release Engineering - 1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Jan 21 2014 Dan Horák - 1.0-8 - fix build on secondary arches * Wed Jan 01 2014 Rino Rondan - 1.0-7 - Change the description * Mon Nov 04 2013 Rino Rondan - 1.0-6 - Change the version macro, and all relationship with it * Thu Oct 31 2013 Rino Rondan - 1.0-5 - Change summary and description * Thu Oct 31 2013 Rino Rondan - 1.0-4 - Add some variables to build * Thu Oct 31 2013 Rino Rondan - 1.0-3 - Add the correct info on changelog - Fix the problem with doc * Thu Oct 31 2013 Rino Rondan - 1.0-2 - Add the correct tag for pre-release on Version and Release - Add global variable for checkout * Wed Sep 11 2013 Rino Rondan - 1.0-1 - Initial Package