From 0c5260ed78b1f5b7ab3075a49cfec3780398c15d Mon Sep 17 00:00:00 2001 From: Lucian Langa Date: Mon, 29 Sep 2008 04:25:05 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + libftdi.spec | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 87 insertions(+) create mode 100644 libftdi.spec diff --git a/.cvsignore b/.cvsignore index e69de29..f660d9e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libftdi-0.14.tar.gz diff --git a/libftdi.spec b/libftdi.spec new file mode 100644 index 0000000..4cc06a6 --- /dev/null +++ b/libftdi.spec @@ -0,0 +1,85 @@ +Name: libftdi +Version: 0.14 +Release: 2%{?dist} +Summary: Library to program and control the FTDI USB controller + +Group: System Environment/Libraries +License: LGPLv2 +URL: http://www.intra2net.com/de/produkte/opensource/ftdi/ +Source0: http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libusb-devel, doxygen +Requires: pkgconfig + +%package devel +Summary: Header files and static libraries for libftdi +Group: Development/Libraries +Requires: libftdi = %{version}-%{release} + +%description +A library (using libusb) to talk to FTDI's FT2232C, +FT232BM and FT245BM type chips including the popular bitbang mode. + +%description devel +Header files and static libraries for libftdi + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +find %{buildroot} -name \*\.la -print | xargs rm -f +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 +#no man install +install -p -m 644 doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3 + + +# Cleanup examples +rm -f $RPM_BUILD_ROOT/%{_bindir}/simple +rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang +rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang2 +rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_ft2232 +rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_cbus +rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING.LIB README +%{_libdir}/*.so.* + + +%files devel +%defattr(-,root,root,-) +%doc doc/html +%{_bindir}/libftdi-config +%{_libdir}/libftdi.a +%{_libdir}/*.so +%{_includedir}/*.h +%{_libdir}/pkgconfig/*.pc +%{_mandir}/man3/* + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Fri Sep 26 2008 Lucian Langa - 0.14-2 +- require pkgconfig for devel + +* Tue Sep 23 2008 Lucian Langa - 0.14-1 +- new upstream + +* Wed Sep 03 2008 Lucian Langa - 0.13-1 +- initial specfile diff --git a/sources b/sources index e69de29..40e1089 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +43f20478e725aa5ba6cdae311ca0593d libftdi-0.14.tar.gz