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}
|
%autosetup -p1 -n %{name}2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS='%{optflags}'
|
%configure
|
||||||
export LDFLAGS='%{build_ldflags}'
|
%make_build
|
||||||
export LIBDIR='%{_libdir}'
|
|
||||||
export IPT_LIB_DIR='/%{_lib}/xtables'
|
|
||||||
./configure
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export DESTDIR='%{buildroot}'
|
|
||||||
export SBINDIR='%{_sbindir}'
|
export SBINDIR='%{_sbindir}'
|
||||||
export MANDIR='%{_mandir}'
|
|
||||||
export LIBDIR='%{_libdir}'
|
export LIBDIR='%{_libdir}'
|
||||||
export CONFDIR='%{_sysconfdir}/iproute2'
|
%make_install
|
||||||
export DOCDIR='%{_docdir}'
|
|
||||||
make install
|
|
||||||
|
|
||||||
# libnetlink
|
# libnetlink
|
||||||
install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
|
install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
|
||||||
|
Loading…
Reference in New Issue
Block a user