Make use of %make_build macro

This commit is contained in:
Mikolaj Izdebski 2020-11-25 15:24:23 +01:00
parent 31ab35f5ae
commit 75ccc59889

View File

@ -2,7 +2,7 @@ Summary: Parser Generator with Java Extension
Name: byaccj
Epoch: 0
Version: 1.15
Release: 23%{?dist}
Release: 24%{?dist}
License: Public Domain
URL: http://byaccj.sourceforge.net/
@ -31,7 +31,7 @@ sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-versi
%build
pushd src
make yacc CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS"
%make_build yacc CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS"
popd
%install
@ -43,6 +43,9 @@ install -p -m 755 src/yacc %{buildroot}%{_bindir}/%{name}
%{_bindir}/%{name}
%changelog
* Wed Nov 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.15-24
- Use make_build RPM macro to comply with packaging guidelines
* Wed Nov 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.15-23
- Respect system-wide linker flags during build