From bb7bb873b31665a01a584b43bd9f9af17db680dde0e279d6257caf9d1d94b926 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 14 Jun 2016 05:31:49 +0000 Subject: [PATCH] Accepting request 398381 from home:posophe:branches:hardware update OBS-URL: https://build.opensuse.org/request/show/398381 OBS-URL: https://build.opensuse.org/package/show/hardware/libftdi1?expand=0&rev=14 --- libftdi1-1.2.tar.bz2 | 3 --- libftdi1-1.3.tar.bz2 | 3 +++ libftdi1.changes | 29 +++++++++++++++++++++++++++++ libftdi1.spec | 39 ++++++++++++++++++++++++++++++++------- 4 files changed, 64 insertions(+), 10 deletions(-) delete mode 100644 libftdi1-1.2.tar.bz2 create mode 100644 libftdi1-1.3.tar.bz2 diff --git a/libftdi1-1.2.tar.bz2 b/libftdi1-1.2.tar.bz2 deleted file mode 100644 index bf04390..0000000 --- a/libftdi1-1.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6ea795c829219015eb372b03008351cee3fb39f684bff3bf8a4620b558488d6 -size 100672 diff --git a/libftdi1-1.3.tar.bz2 b/libftdi1-1.3.tar.bz2 new file mode 100644 index 0000000..31ce290 --- /dev/null +++ b/libftdi1-1.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a8c95c94bfbcf36584a0a58a6e2003d9b133213d9202b76aec76302ffaa81f4 +size 108549 diff --git a/libftdi1.changes b/libftdi1.changes index 1082117..a5f9235 100644 --- a/libftdi1.changes +++ b/libftdi1.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Fri May 27 13:56:14 UTC 2016 - p.drouand@gmail.com + +- Update to version 1.3 + * Added ftdi_usb_get_strings2() to prevent automatic device close + * Added ftdi_transfer_data_cancel() for cancellation of a submitted + transfer, avoided resubmittion of a canceled transfer in the callbacks, + replaced calls to libusb_handle_events with + libusb_handle_events_timeout_completed + * ftdi_eeprom / eeprom handling: + + Add support for arbitrary user data + + Add --build-eeprom support + + Fix use_usb_version config file option + + Ability to include other config files in EEPROM config file + + Add external oscillator enable bit + + Support channel configuration + + Added --device option to ftdi_eeprom to specify FTDI device + + Fixed EEPROM user-area space checks for FT232R and FT245R chips + * Various improvements to CBUS handling, including the EEPROM + * swig wrapper: Fix handling of binary strings in ftdi_write_data() + for python 3 + * cbus python example code + * ftdi_stream: fix timeout setting + * Fixed typo in CBUS defines: CBUSG_DRIVE1 -> CBUSH_DRIVE1 +- Build python binding + * Add a libftdi1-binding-python + * Add python-devel, python-xml and swig dependencies +- Add libconfuse-devel build dependency + ------------------------------------------------------------------- Mon Dec 15 20:18:12 UTC 2014 - mardnh@gmx.de diff --git a/libftdi1.spec b/libftdi1.spec index ee39a7c..c019164 100644 --- a/libftdi1.spec +++ b/libftdi1.spec @@ -1,7 +1,7 @@ # # spec file for package libftdi1 # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,7 +17,7 @@ Name: libftdi1 -Version: 1.2 +Version: 1.3 Release: 0 Summary: Library to program and control the FTDI USB controller License: LGPL-2.1+ and GPL-2.0-with-classpath-exception @@ -28,20 +28,36 @@ BuildRequires: boost-devel BuildRequires: cmake >= 2.8 BuildRequires: doxygen BuildRequires: gcc-c++ +BuildRequires: libconfuse-devel BuildRequires: libusb-1_0-devel BuildRequires: pkgconfig +BuildRequires: python-devel +BuildRequires: python-xml +BuildRequires: swig BuildRoot: %{_tmppath}/%{name}-%{version}-build +%description +Library to program and control the FTDI USB controller. +This library is used by many programs accessing FTDI USB-to-RS232 converters. + +%package binding-python +Summary: Python binding for libftdi +Group: Development/Languages/Python +Requires: libftdi1 = %{version} +Requires: swig + +%description binding-python +Library to program and control the FTDI USB controller. +This library is used by many programs accessing FTDI USB-to-RS232 converters. + +This package provides the python binding for libftdi. + %package -n libftdi1-devel Summary: Header files and static libraries for libftdi Group: Development/Libraries/C and C++ Requires: libftdi1 = %{version} Requires: libusb-1_0-devel -%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. @@ -55,9 +71,12 @@ make %{?_smp_mflags} %install %cmake_install +rm -rf %{buildroot}%{_datadir} mkdir -p %{buildroot}%{_mandir}/man3 cd build cp -p doc/man/man3/[^_]*.3 %{buildroot}%{_mandir}/man3 +find %{buildroot} -type f -name "*.a" -delete -print +find %{buildroot} -type f -name "*.la" -delete -print %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -67,12 +86,18 @@ cp -p doc/man/man3/[^_]*.3 %{buildroot}%{_mandir}/man3 %doc AUTHORS COPYING* LICENSE README %{_libdir}/libftdi*.so.* +%files binding-python +%defattr(-,root,root) +%doc python/examples/*.py +%{python_sitearch}/* + %files -n libftdi1-devel %defattr(-,root,root) +%doc ftdi_eeprom/example.conf %{_bindir}/libftdi*-config +%{_bindir}/ftdi_eeprom %{_includedir}/%{name} %{_libdir}/libftdi*.so -%{_libdir}/libftdi*.*a %{_libdir}/pkgconfig/*.pc %{_libdir}/cmake/%{name} %{_mandir}/man3/*