Build with linker flags from redhat-rpm-config
This commit is contained in:
parent
5921ed20e4
commit
e1435c2fd9
@ -1,6 +1,6 @@
|
||||
Name: ipcalc
|
||||
Version: 0.2.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: IP network address calculator
|
||||
|
||||
# This is an updated version of ipcalc originally found
|
||||
@ -31,7 +31,8 @@ or check the validity of an address.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
CFLAGS="${CFLAGS:-%optflags}" LIBPATH=%{_libdir} make %{?_smp_mflags}
|
||||
CFLAGS="${CFLAGS:-%optflags}" LDFLAGS="$RPM_LD_FLAGS" \
|
||||
LIBPATH=%{_libdir} make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
@ -50,6 +51,9 @@ make check
|
||||
%{_mandir}/man1/ipcalc.1*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 1 2018 Florian Weimer <fweimer@redhat.com> - 0.2.2-2
|
||||
- Build with linker flags from redhat-rpm-config
|
||||
|
||||
* Tue Jan 02 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.2-1
|
||||
- New upstream release
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user