https://bugzilla.redhat.com/show_bug.cgi?id=1260845
--- Comment #19 from Tomasz Torcz tomek@pipebreaker.pl --- For build to succeed, -fPIC has to be added to flags. Specs changes for latest version:
--- a/sshguard.spec 2015-12-28 23:50:15.000000000 +0100 +++ b/sshguard.spec 2016-10-27 10:38:21.778660447 +0200 @@ -1,11 +1,10 @@ Name: sshguard -Version: 1.6.1 -Release: 3%{?dist} +Version: 1.7.1 +Release: 1%{?dist} Summary: Protect hosts from brute-force attacks License: ISC and BSD and Public Domain URL: http://www.sshguard.net/ Source0: http://downloads.sourceforge.net/project/sshguard/sshguard/%%7Bversion%7D/ss... -Source1: sshguard.service
BuildRequires: systemd Requires: firewalld @@ -29,12 +28,11 @@ %prep %setup -q find src ( -name '*.h' -o -name '*.c' ) -exec chmod -x {} + -cp -a %{SOURCE1} .
%build # glibc headers need POSIX_C_SOURCE: -export CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L" +export CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L -fPIC" %configure --with-firewall=iptables make %{?_smp_mflags} V=1
@@ -44,7 +42,7 @@ %make_install
mkdir -p $RPM_BUILD_ROOT%{_unitdir}/ -install -m 644 sshguard.service $RPM_BUILD_ROOT%{_unitdir}/ +install -m 644 examples/sshguard.service $RPM_BUILD_ROOT%{_unitdir}/
%post @@ -60,13 +58,17 @@
%files -%doc README.rst COPYING examples +%doc README.rst examples +%license COPYING +%{_libexecdir}/sshg-* %{_mandir}/man8/sshguard.8* %{_sbindir}/sshguard %{_unitdir}/sshguard.service