%bcond_without boost Summary: A library to talk to FTDI chips Name: libftdi Version: 0.16 Release: 7_1%{?dist} License: LGPLv2 Group: System Environment/Libraries URL: http://www.intra2net.com/en/developer/libftdi/index.php Source0: http://www.intra2net.com/en/developer/libftdi/download/libftdi-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ BuildRequires: python-devel BuildRequires: libusb-devel %{?with_boost:BuildRequires: boost-devel >= 1.33} %lib_package ftdi 1 %lib_package ftdipp 1 %devel_extra_Requires libusb-devel %description A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode. This library is linked with your program in userspace, no kernel driver required. %prep %setup -q %build %configure --disable-static make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README LICENSE COPYING* AUTHORS ChangeLog %{_bindir}/bitbang %{_bindir}/bitbang2 %{_bindir}/bitbang_cbus %{_bindir}/bitbang_ft2232 %{_bindir}/find_all %if %{with boost} %{_bindir}/find_all_pp %endif %{_bindir}/libftdi-config %{_bindir}/simple %changelog * Sat Aug 29 2009 Axel Thimm - 0.16-1 - Initial build.