Dominique Leuenberger 2017-11-19 10:09:08 +00:00 committed by Git OBS Bridge
commit c32174485d
4 changed files with 58 additions and 24 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a8c95c94bfbcf36584a0a58a6e2003d9b133213d9202b76aec76302ffaa81f4
size 108549

3
libftdi1-1.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681cb31b74
size 109521

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Nov 7 13:39:39 UTC 2017 - mpluskal@suse.com
- Update to version 1.4:
* New ftdi_usb_open_bus_addr() open function
* Use BM/R series baud rate computation for FT230X
* ftdi_get_error_string() now returns const char*
* C++ API: Ability to open devices with empty descriptor strings
* C++ API: Fix enumerations for buffer purge and modem controls
* small build fixes and improvements in the python examples
* ftdi_eeprom / eeprom handling:
+ New API function: ftdi_eeprom_get_strings()
+ Fix USE_SERIAL handling for 230X type chips
+ Make ftdi_read_eeprom_location() endianness independent
+ Fix flashing of FT245R
- Build python3 version of bindings on Factory
- Rename python bindings subpackage to match singlespec conventions
- Run spec-cleaner
-------------------------------------------------------------------
Thu Jul 6 18:17:15 UTC 2017 - mardnh@gmx.de

View File

@ -18,30 +18,30 @@
%define sover -2
%define libname %{name}%{sover}
Name: libftdi1
Version: 1.3
Version: 1.4
Release: 0
Summary: Library to program and control the FTDI USB controller
License: LGPL-2.1+ and GPL-2.0-with-classpath-exception
License: LGPL-2.1+ AND GPL-2.0-with-classpath-exception
Group: Hardware/Other
Url: http://www.intra2net.com/en/developer/libftdi
Source: http://www.intra2net.com/en/developer/libftdi/download/libftdi1-%{version}.tar.bz2
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: cmake >= 2.8
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libconfuse-devel
BuildRequires: libusb-1_0-devel
BuildRequires: pkgconfig
BuildRequires: swig
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
BuildRequires: python3-devel
BuildRequires: python3-xml
%else
BuildRequires: boost-devel
BuildRequires: python-devel
BuildRequires: python-xml
BuildRequires: swig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%endif
%description
Library to program and control the FTDI USB controller.
@ -55,18 +55,29 @@ Group: System/Libraries
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
%if 0%{?suse_version} > 1325
%package -n python3-%{name}
Summary: Python 3 binding for libftdi1
Group: Development/Languages/Python
Requires: %{libname} = %{version}
Requires: swig
%description binding-python
%description -n python3-%{name}
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.
%else
%package -n python2-%{name}
Summary: Python 2 binding for libftdi1
Group: Development/Languages/Python
Provides: binding-python = %{version}
Obsoletes: binding-python < %{version}
%description -n python2-%{name}
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.
%endif
%package devel
Summary: Header files and static libraries for libftdi
@ -83,7 +94,7 @@ This library is used by many programs accessing FTDI USB-to-RS232 converters.
%build
%cmake
make %{?_smp_mflags}
%make_jobs
%install
%cmake_install
@ -98,18 +109,22 @@ find %{buildroot} -type f -name "*.la" -delete -print
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS COPYING* LICENSE README
%{_libdir}/libftdi*.so.*
%files binding-python
%defattr(-,root,root)
%if 0%{?suse_version} > 1325
%files -n python3-%{name}
%doc python/examples/*.py
%{python3_sitearch}/_ftdi1.so
%{python3_sitearch}/ftdi1.py
%else
%files -n python2-%{name}
%doc python/examples/*.py
%{python_sitearch}/_ftdi1.so
%{python_sitearch}/ftdi1.py
%endif
%files devel
%defattr(-,root,root)
%doc ftdi_eeprom/example.conf
%{_bindir}/libftdi*-config
%{_bindir}/ftdi_eeprom