⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpm.spec

📁 coldfire MCF5445X基于unix平台的BSP
💻 SPEC
字号:
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary         : The RPM package management system.Name            : rpmVersion         : 4.0.4Release         : 1License         : GPLVendor          : FreescalePackager        : Stuart HughesGroup           : System Environment/BaseSource          : %{name}-%{version}.tar.gzPatch0          : rpm_lfs.patchPatch1          : rpm-4.0.4-python-configure.patchPatch2          : rpm-4.0.4-no-static.patchPatch3          : rpm-4.0.4-rpmio_h.patchPatch4          : rpm-4.0.4-arm-gas.patchBuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}BuildRequires   : zlib%Description%{summary}Modifications:  * Allow short circuited builds to produce binary rpms for incremental deploy%Prep%setup %patch0 -p1%patch1 -p1%patch2 -p1%patch3 -p1%patch4 -p1%Buildcase "$LINTARCH" in    arm*)        mutex_type="POSIX/pthreads/library"        ;;    i386)        mutex_type="x86/gcc-assembly"        ;;    m68k)        mutex_type="68K/gcc-assembly"        ;;    ppc)        mutex_type="PPC/gcc-assembly"        ;;    ppc64)        mutex_type="POSIX/pthreads/library"        ;;    *)       echo "dont know how to handle mutexes for $LINTARCH"       exit 1       ;;esac# obviously these need to be fixed for 64bit machinesac_cv_have_working_aio=yes \ac_cv_sizeof_char=1 \ac_cv_sizeof_unsigned_char=1 \ac_cv_sizeof_short=2 \ac_cv_sizeof_unsigned_short=2 \ac_cv_sizeof_int=4 \ac_cv_sizeof_unsigned_int=4 \ac_cv_sizeof_long=4 \ac_cv_sizeof_unsigned_long=4 \ac_cv_sizeof_long_long=8 \ac_cv_sizeof_unsigned_long_long=8 \ac_cv_sizeof_float=4 \ac_cv_sizeof_double=8 \db_cv_alignp_t="unsigned long" \db_cv_mutex="$mutex_type" \db_cv_fcntl_f_setfd="yes" \db_cv_sprintf_count="yes" \ac_cv_header_libintl_h="no" \gt_cv_func_gnugettext1_libintl="no" \./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --localstatedir=/var --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --without-python --without-javaglue --disable-static# popt ignore the --disable static for it's test programsmake test1_LDFLAGS= test2_LDFLAGS=%Installrm -rf $RPM_BUILD_ROOTmake -j1 install DESTDIR=$RPM_BUILD_ROOT/%{pfx}rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/*.la%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -