2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package libftdi1
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-12-21 17:30:29 +01:00
|
|
|
%define enable_async_mode 0
|
|
|
|
|
2011-02-02 02:08:03 +01:00
|
|
|
Summary: Library to program and control the FTDI USB controller
|
|
|
|
|
|
|
|
Name: libftdi1
|
|
|
|
Version: 0.18
|
|
|
|
Release: 1
|
|
|
|
License: LGPL for libftdi and GPLv2+linking exception for the C++ wrapper
|
|
|
|
Group: Hardware/Other
|
|
|
|
Url: http://www.intra2net.com/en/developer/libftdi
|
|
|
|
Source: libftdi-%{version}.tar.bz2
|
|
|
|
Source100: %{name}-rpmlintrc
|
|
|
|
Patch0: buildfixes.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
AutoReqProv: libusb
|
|
|
|
BuildRequires: doxygen libusb-devel pkgconfig
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%package -n libftdi1-devel
|
2011-02-02 02:08:03 +01:00
|
|
|
License: LGPL for libftdi and GPLv2+linking exception for the C++ wrapper
|
|
|
|
Summary: Header files and static libraries for libftdi
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libftdi1 = %{version}, libusb-devel
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Library to program and control the FTDI USB controller.
|
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
|
|
|
%description -n libftdi1-devel
|
|
|
|
Header files and static libraries for libftdi.
|
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libftdi-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%configure --disable-dependency-tracking CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
%if %{enable_async_mode}
|
|
|
|
--with-async-mode \
|
|
|
|
%endif
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
# 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
|
2011-01-21 23:36:03 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/find_all_pp
|
2010-12-21 17:30:29 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/serial_read
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/baud_test
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT//usr/share/man/man3
|
|
|
|
gzip -9 doc/man/man3/*.3
|
|
|
|
cp doc/man/man3/*.3.gz $RPM_BUILD_ROOT//usr/share/man/man3
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-01-21 23:36:03 +01:00
|
|
|
%{_libdir}/libftdi*.so.*
|
|
|
|
%doc COPYING.LIB COPYING.GPL LICENSE
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%files -n libftdi1-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/html
|
|
|
|
%{_mandir}/man3/*.3.gz
|
|
|
|
%{_bindir}/libftdi-config
|
|
|
|
%{_prefix}/include/*.h
|
|
|
|
%{_libdir}/libftdi.so
|
2011-01-21 23:36:03 +01:00
|
|
|
%{_libdir}/libftdi*.*a
|
2010-12-21 17:30:29 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-02-02 02:08:03 +01:00
|
|
|
%changelog
|