libusb.spec

来自「usb user mode lib」· SPEC 代码 · 共 63 行

SPEC
63
字号
# Note that this is NOT a relocatable package%define ver      0.1.8%define RELEASE  1%define rel      %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}%define prefix   /usrSummary: Application access to USB devicesName: libusbVersion: %verRelease: %relCopyright: LGPLGroup: LibrariesSource: ftp://ftp.libusb.sourceforge.net/pub/libusb/libusb-%{ver}.tar.gzBuildRoot: /var/tmp/libusb-%{PACKAGE_VERSION}-rootURL: http://libusb.sourceforge.net%descriptionProvides a library for application access to USB devices. Developmentlibs and headers are in libusb-devel%package develSummary: Application USB device access libraryGroup: System Environment/Libraries%description develStatic libraries and header files for the USB device access library%changelog%prep%setup%buildCFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefixmake%installrm -rf $RPM_BUILD_ROOTmake prefix=$RPM_BUILD_ROOT%{prefix} install%cleanrm -rf $RPM_BUILD_ROOT%post -p /sbin/ldconfig%postun -p /sbin/ldconfig%files%defattr(-, root, root)%doc AUTHORS COPYING LICENSE ChangeLog NEWS README%{prefix}/lib/libusb-0.1.so.*%files devel%defattr(-, root, root)%{prefix}/lib/*.so%{prefix}/lib/*a%{prefix}/include/*%{prefix}/bin/*

⌨️ 快捷键说明

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