%define pfx /opt/freescale/rootfs/%{_target_cpu} Summary : The libnl suite is a collection of libraries providing APIs to netlink protocol based Linux kernel interfaces Name : libnl Version : 2.0 Release : 1 License : GPL Vendor : Satcom System Packager : Michel Laporte Group : System Environment/Libraries Source : %{name}-%{version}.tar.gz Patch1 : libnl-2.0-pktloc_syntax.patch Patch2 : libnl-2.0-limits.patch Patch3 : libnl-2.0-vlan_flag_reorder_hdr.patch Patch4 : libnl-2.0-relink.patch BuildRoot : %{_tmppath}/%{name} Prefix : %{pfx} %define CFLAGS_append CFLAGS+="-DYY_BUF_SIZE=16384" %Description %{summary} %Prep %setup %{name}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %Build # configure can't figure this out in my environment (cross) ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} make %{CFLAGS_append} %Install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT/%{pfx} rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/*.la %Clean rm -rf $RPM_BUILD_ROOT %Files %defattr(-,root,root) %{pfx}/*