0c5260e
Name:		libftdi
8fee773
Version:	0.15
3f30e6d
Release:	4%{?dist}
0c5260e
Summary:	Library to program and control the FTDI USB controller
0c5260e
0c5260e
Group:		System Environment/Libraries
0c5260e
License:	LGPLv2
0c5260e
URL:		http://www.intra2net.com/de/produkte/opensource/ftdi/
0c5260e
Source0:	http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/%{name}-%{version}.tar.gz
0c5260e
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0c5260e
ef5a0c2
BuildRequires:	libusb-devel, doxygen, boost-devel
0c5260e
Requires:	pkgconfig
0c5260e
0c5260e
%package devel
0c5260e
Summary:	Header files and static libraries for libftdi
0c5260e
Group:		Development/Libraries
0c5260e
Requires:	libftdi = %{version}-%{release}
8fee773
Requires:	libusb-devel
0c5260e
0c5260e
%description
0c5260e
A library (using libusb) to talk to FTDI's FT2232C,
0c5260e
FT232BM and FT245BM type chips including the popular bitbang mode.
0c5260e
0c5260e
%description devel
0c5260e
Header files and static libraries for libftdi
0c5260e
0c5260e
0c5260e
%prep
0c5260e
%setup -q
0c5260e
0c5260e
0c5260e
%build
0c5260e
%configure
0c5260e
make %{?_smp_mflags}
0c5260e
0c5260e
0c5260e
%install
0c5260e
rm -rf $RPM_BUILD_ROOT
0c5260e
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
0c5260e
find %{buildroot} -name \*\.la -print | xargs rm -f
0c5260e
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
0c5260e
#no man install
0c5260e
install -p -m 644 doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
0c5260e
0c5260e
0c5260e
# Cleanup examples
0c5260e
rm -f $RPM_BUILD_ROOT/%{_bindir}/simple
0c5260e
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang
0c5260e
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang2
0c5260e
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_ft2232
0c5260e
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_cbus
0c5260e
rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all
8fee773
rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all_pp
0c5260e
0c5260e
%clean
0c5260e
rm -rf $RPM_BUILD_ROOT
0c5260e
0c5260e
%files
0c5260e
%defattr(-,root,root,-)
0c5260e
%doc AUTHORS ChangeLog COPYING.LIB README
0c5260e
%{_libdir}/*.so.*
0c5260e
0c5260e
0c5260e
%files devel
0c5260e
%defattr(-,root,root,-)
0c5260e
%doc doc/html
0c5260e
%{_bindir}/libftdi-config
0c5260e
%{_libdir}/libftdi.a
8fee773
%{_libdir}/libftdipp.a
0c5260e
%{_libdir}/*.so
0c5260e
%{_includedir}/*.h
8fee773
%{_includedir}/*.hpp
0c5260e
%{_libdir}/pkgconfig/*.pc
0c5260e
%{_mandir}/man3/*
0c5260e
0c5260e
0c5260e
%post -p /sbin/ldconfig
0c5260e
%postun -p /sbin/ldconfig
0c5260e
0c5260e
%changelog
3f30e6d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
3f30e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3f30e6d
787646c
* Mon Feb 16 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-3
787646c
- fix tag
787646c
ef5a0c2
* Sun Feb 15 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-2
ef5a0c2
- add new BR boost-devel
ef5a0c2
8fee773
* Sun Feb 15 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-1
8fee773
- fix for bug #485600: pick libusb-devel for -devel subpackage
8fee773
- new upstream release
8fee773
0c5260e
* Fri Sep 26 2008 Lucian Langa <cooly@gnome.eu.org> - 0.14-2
0c5260e
- require pkgconfig for devel
0c5260e
0c5260e
* Tue Sep 23 2008 Lucian Langa <cooly@gnome.eu.org> - 0.14-1
0c5260e
- new upstream
0c5260e
0c5260e
* Wed Sep 03 2008 Lucian Langa <cooly@gnome.eu.org> - 0.13-1
0c5260e
- initial specfile