1# Note that this is NOT a relocatable package 2%define ver @VERSION@ 3%define RELEASE 1 4%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} 5%define prefix /usr 6 7Summary: Application access to USB devices 8Name: libusb 9Version: %ver 10Release: %rel 11License: LGPL 12Group: Libraries 13Source: ftp://ftp.libusb.sourceforge.net/pub/libusb/libusb-%{ver}.tar.gz 14BuildRoot: /var/tmp/libusb-%{PACKAGE_VERSION}-root 15URL: http://libusb.sourceforge.net 16 17%description 18Provides a library for application access to USB devices. Development 19libs and headers are in libusb-devel 20 21%package devel 22Summary: Application USB device access library 23Group: System Environment/Libraries 24 25%description devel 26Static libraries and header files for the USB device access library 27 28 29%changelog 30 31%prep 32%setup 33 34%build 35CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} 36make 37 38%install 39rm -rf $RPM_BUILD_ROOT 40 41make DESTDIR=$RPM_BUILD_ROOT install 42 43%clean 44rm -rf $RPM_BUILD_ROOT 45 46%post -p /sbin/ldconfig 47 48%postun -p /sbin/ldconfig 49 50%files 51%defattr(-, root, root) 52 53%doc AUTHORS COPYING LICENSE NEWS README 54%{prefix}/lib/libusb-0.1.so.* 55%{prefix}/lib/libusbpp-0.1.so.* 56 57%files devel 58%defattr(-, root, root) 59 60%{prefix}/lib/*.so 61%{prefix}/lib/*a 62%{prefix}/include/* 63%{prefix}/bin/* 64%{prefix}/lib/pkgconfig/libusb.pc 65 66