%define pfx /opt/freescale/rootfs/%{_target_cpu} Summary : JSON C Parser Name : json-c Version : 0.8 Release : 0 License : MIT Vendor : Freescale Packager : Robert P. J. Day Group : xxxx URL : http://oss.metaparadigm.com/json-c/ Source : %{name}-%{version}.tar.gz BuildRoot : %{_tmppath}/%{name} Prefix : %{pfx} %Description %{summary} %Prep %setup %Build ac_cv_func_malloc_0_nonnull='yes' \ jm_cv_func_working_malloc='yes' \ ac_cv_func_realloc_0_nonnull='yes' \ jm_cv_func_working_realloc='yes' \ ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} make %Install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT/%{pfx} %Clean rm -rf $RPM_BUILD_ROOT %Files %defattr(-,root,root) %{pfx}/*