Use rpm configure/build/install rpm macros
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
This commit is contained in:
parent
3e3e60bdb8
commit
495711a13b
14
iproute.spec
14
iproute.spec
@ -55,21 +55,13 @@ The libnetlink static library.
|
||||
%autosetup -p1 -n %{name}2-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS='%{optflags}'
|
||||
export LDFLAGS='%{build_ldflags}'
|
||||
export LIBDIR='%{_libdir}'
|
||||
export IPT_LIB_DIR='/%{_lib}/xtables'
|
||||
./configure
|
||||
make %{?_smp_mflags}
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
export DESTDIR='%{buildroot}'
|
||||
export SBINDIR='%{_sbindir}'
|
||||
export MANDIR='%{_mandir}'
|
||||
export LIBDIR='%{_libdir}'
|
||||
export CONFDIR='%{_sysconfdir}/iproute2'
|
||||
export DOCDIR='%{_docdir}'
|
||||
make install
|
||||
%make_install
|
||||
|
||||
# libnetlink
|
||||
install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
|
||||
|
Loading…
Reference in New Issue
Block a user