File libftdi1.spec of Package libftdi1
#
# spec file for package libftdi1
# Please submit bug reports / bug fixes to http://bugs.opensuse.org
#
# norootforbuild
#define enable_async_mode 0
Summary: Library to program and control the FTDI USB controller
Name: libftdi1
Version: 0.15
Release: 1.0
License: LGPL
Group: System Environment/Libraries
Vendor: Intra2net AG
Source: libftdi-%{version}.tar.bz2
Patch0: buildfixes.diff
Buildroot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libusb-devel, pkgconfig, doxygen
%description
A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode. The license is LGPL.
%package -n libftdi1-devel
Summary: Header files and static libraries for libftdi
Group: Development/Libraries
Requires: libftdi1 = %{version}, libusb-devel
%description -n libftdi1-devel
Header files and static libraries for libftdi.
A library to talk to FTDI chips: FT232BM/245BM, FT2232C/D and FT232/245R using libusb, including the popular bitbang mode. The license is LGPL.
%prep
%setup -q -n libftdi-%{version}
%patch0 -p1
%build
%configure
#%if %{enable_async_mode}
# --with-async-mode \
#%endif
make
%install
gzip doc/man/man3/*
make DESTDIR=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT/%{_libdir}/*so*
# Cleanup
rm -f $RPM_BUILD_ROOT/usr/bin/simple
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang2
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_ft2232
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_cbus
rm -f $RPM_BUILD_ROOT/usr/bin/find_all
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING.LIB
%{_libdir}/libftdi.so.*
%files -n libftdi1-devel
%defattr(-,root,root)
%{_libdir}/libftdi.so
%doc doc/html doc/man
%{_bindir}/libftdi-config
%{_prefix}/include/*.h
%{_libdir}/libftdi.*a
%{_libdir}/pkgconfig/*.pc
%changelog
* Sun Oct 26 2008 jblunck@suse.de
- Initial page submission