%define pfx /opt/freescale/rootfs/%{_target_cpu} Summary : gimp Name : gutenprint Version : 5.2.8 Release : 0 License : xxxx Vendor : Hongjet Packager : xxxx Group : xxxx URL : http://www.hongjet.com.my/ Source : %{name}-%{version}-pre1.tar.bz2 BuildRoot : %{_tmppath}/%{name} Prefix : %{pfx} %Description %{summary} %Prep %setup -n %{name}-%{version}-pre1 %Build ORIG_PATH=$PATH OPT_CFGHOST=`echo ${TOOLCHAIN_PREFIX} | perl -n -e 's,-$,,;print'` export PATH=$UNSPOOF_PATH ./configure --prefix=%{_prefix} --target=$CFGHOST --disable-nls --without-cups --without-libiconv-prefix --without-readline --without-foomatic --without-foomatic3 --disable-shared make -C src/xml extract-strings mkdir hostbin cp -a src/xml/extract-strings hostbin/extract-strings export PATH=$ORIG_PATH make distclean sed -i 's/xmli18n-tmp.h: xml-stamp extract-strings/xmli18n-tmp.h: xml-stamp/' src/xml/Makefile.in ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --disable-nls --without-cups --without-libiconv-prefix --without-readline --without-foomatic --without-foomatic3 echo '#!/bin/sh' > src/xml/extract-strings echo "exec $PWD/hostbin/extract-strings \"address@hidden"" >> src/xml/extract-strings chmod a+x src/xml/extract-strings 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}/*