libusb.spec
来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 46 行
SPEC
46 行
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : A library which allows userspace access to USB devices Name : libusbVersion : 0.1.8Release : 1License : LGPLVendor : FreescalePackager : Stuart HughesGroup : System Environment/LibrariesSource : %{name}-%{version}.tar.gzBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}%Prep%setup libtoolize --copy --force%Build# note: I tried version 0.1.10a buy this requires a c++ compiler# configure can't figure this out in my environment (cross)ENDIAN=${ENDIAN:-big}case $ENDIAN in big) conf_opts="ac_cv_c_bigendian=yes" ;; *) conf_opts="ac_cv_c_bigendian=no" ;;esacCC=${TOOLCHAIN_PREFIX}gcc ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --disable-build-docs $conf_optsmake%Installrm -rf $RPM_BUILD_ROOTmake 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 + =
减小字号Ctrl + -
显示快捷键?