📄 libusb.spec
字号:
%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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -