Репозитории ALT
Последнее обновление в Сб, 06 июня 2020, 00:52:42 +0000 | Пакетов: 9547
en ru
Исходные пакеты в ветвях
свернуть окно
Группа :: Система/Библиотеки
Исходный пакет: libftdi
Необработанный spec-файл

Summary: Library to program and control the FTDI USB serial controllers
Name: libftdi
Version: 0.16
Release: alt2
Copyright: LGPL
Group: System/Libraries
Vendor: Intra2net AG
URL: http://www.intra2net.com/opensource/ftdi/
Packager: Evgeny Sinelnikov <sin at altlinux.ru>

Source: %name-%version.tar
Requires: libusb
BuildRequires: libusb-compat-devel, pkg-config, doxygen
BuildRequires: gcc-c++ boost-devel

Patch: %name-%version-%release.patch

%package -n libftdipp
Summary: C++ interface for libftdi library
Group: System/Libraries

%package devel
Summary: Header files and libraries for libftdi
Group: Development/C
Requires: libftdi = %version, libusb-devel

%package -n libftdipp-devel
Summary: Header files and libraries for libftdipp
Group: Development/C
Requires: libftdi-devel = %version
Requires: boost-devel

%package devel-static
Summary: Static libraries for libftdi
Group: Development/C
Requires: libftdi-devel = %version

%package -n libftdipp-devel-static
Summary: Static libraries for libftdipp
Group: Development/C
Requires: libftdipp-devel = %version

%package docs
Summary: Documentation files for libftdi
Group: Development/C

%description
Userspace library to program and control the FTDI
USB controllers, using libusb, including the popular
bitbang mode. This library talks to next FTDI chips:
FT232BM/245BM, FT2232C/D and FT232/245R.

%description -n libftdipp
Full C++ wrapper for libftdi library

%description devel
Header files for userspace libftdi library

%description -n libftdipp-devel
Header files for full libftdi library C++ wrapper

%description devel-static
Static libraries for userspace libftdi library

%description -n libftdipp-devel-static
Static libraries for full libftdi library C++ wrapper

%description docs
Documentation files for userspace libftdi library

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
--with-async-mode

%make_build

%install
%makeinstall

# Cleanup examples

rm -f %buildroot/usr/bin/simple
rm -f %buildroot/usr/bin/bitbang
rm -f %buildroot/usr/bin/bitbang2
rm -f %buildroot/usr/bin/bitbang_ft2232
rm -f %buildroot/usr/bin/bitbang_cbus
rm -f %buildroot/usr/bin/find_all
rm -f %buildroot/usr/bin/find_all_pp

# Install man pages

mkdir -p %buildroot%_mandir
cp -a doc/man/* %buildroot%_mandir/

%files
%_libdir/libftdi.so.*

%files -n libftdipp
%_libdir/libftdipp.so.*

%files devel
%_bindir/libftdi-config
%_libdir/lib*.so
%_libdir/pkgconfig/libftdi.pc
%_includedir/*.h

%files -n libftdipp-devel
%_libdir/pkgconfig/libftdipp.pc
%_includedir/*.hpp

%files devel-static
%_libdir/libftdi.a

%files -n libftdipp-devel-static
%_libdir/libftdipp.a

%files docs
%doc doc/html
%_man3dir/*

%changelog
* Sun Jun 28 2009 Evgeny Sinelnikov <sin at altlinux.ru> 0.16-alt2
- Build with new scheme from original git
- Replace manpages to system directory man3

* Sun Jun 28 2009 Evgeny Sinelnikov <sin at altlinux.ru> 0.16-alt1
- Update to 0.16
- Rebuild with boost-1.39.0

* Thu Apr 16 2009 Evgeny Sinelnikov <sin at altlinux.ru> 0.15-alt2
- Rebuild with compat wrapper library for libusb-1.0

* Mon Jan 05 2009 Evgeny Sinelnikov <sin at altlinux.ru> 0.15-alt1
- Update to 0.15
- Add new libftdipp subpackages for C++ wrapper

* Fri Nov 21 2008 Evgeny Sinelnikov <sin at altlinux.ru> 0.14-alt1
- Update to 0.14

* Wed Mar 12 2008 Evgeny Sinelnikov <sin at altlinux.ru> 0.11-alt1
- Update to 0.11

* Mon Jul 02 2007 Evgeny Sinelnikov <sin at altlinux.ru> 0.10-alt1
- Update to 0.10

* Mon Jun 20 2005 Evgeny Sinelnikov <sin at altlinux.ru> 0.6-alt1
- Update to next version
+ Set library version on .so file again
+ Configurable serial line parameters
+ Improved filtering of status bytes - Fix small flow bug
+ Extended FT2232C support
+ Small improvement to the baudrate calculation code
+ Error handling cleanup

* Thu Sep 30 2004 Evgeny Sinelnikov <sin at altlinux.ru> 0.5-alt1
- Update to next version

* Mon Aug 09 2004 Evgeny Sinelnikov <sin at altlinux.ru> 0.4-alt5
- add ftdi_usb_reopen() function for testing

* Sat Aug 07 2004 Evgeny Sinelnikov <sin at altlinux.ru> 0.4-alt4
- add ignore status bytes with chunk sizes above than 64

* Mon Jul 26 2004 Evgeny Sinelnikov <sin at altlinux.ru> 0.4-alt3
- merge changes to upstream
+ some cosmetic changes

* Fri Jul 23 2004 Evgeny Sinelnikov <sin at altlinux.ru> 0.4-alt2
- add function to open device by description or serial

* Fri Jul 23 2004 Evgeny Sinelnikov <sin at altlinux.ru> 0.4-alt1
- initial release
+ add patch: ftdi_read_data() lose usb errors
ftdi_write_data() lose usb errors

 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT