Build with linker flags from redhat-rpm-config

This commit is contained in:
Florian Weimer 2018-02-01 17:51:10 +01:00
parent ba3f602910
commit f4abfe7ca2

View File

@ -1,7 +1,7 @@
Summary: A console-based network monitoring utility
Name: iptraf-ng
Version: 1.1.4
Release: 16%{?dist}
Release: 17%{?dist}
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
Source1: %{name}-logrotate.conf
Source2: %{name}-tmpfiles.conf
@ -40,7 +40,9 @@ on a wide variety of supported network cards.
%patch03 -p1
%build
make %{?_smp_mflags} V=1 CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}"
make %{?_smp_mflags} V=1 \
CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}" \
LDFLAGS="$RPM_LD_FLAGS"
%install
rm -rf %{buildroot}
@ -78,6 +80,9 @@ rm -rf %{buildroot}
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%changelog
* Thu Feb 1 2018 Florian Weimer <fweimer@redhat.com> - 1.1.4-17
- Build with linker flags from redhat-rpm-config
* Mon Jan 22 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-16
- Moved upstream from https://fedorahosted.org/iptraf-ng/ to
https://github.com/iptraf-ng/iptraf-ng/ with release v1.1.4