2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package libftdi1
|
|
|
|
#
|
2021-02-03 14:27:04 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-25 13:56:20 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%define sover -2
|
|
|
|
%define libname %{name}%{sover}
|
2011-02-02 02:08:03 +01:00
|
|
|
Name: libftdi1
|
2021-09-27 16:50:25 +02:00
|
|
|
Version: 1.5.12+git.0684c1b
|
2013-01-03 01:13:10 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to program and control the FTDI USB controller
|
2021-02-03 14:27:04 +01:00
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
|
2011-02-02 02:08:03 +01:00
|
|
|
Group: Hardware/Other
|
2020-03-25 13:56:20 +01:00
|
|
|
URL: https://www.intra2net.com/en/developer/libftdi
|
2021-09-27 16:50:25 +02:00
|
|
|
Source: libftdi1-%{version}.tar.xz
|
2021-02-03 14:27:04 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- http://developer.intra2net.com/git/?p=libftdi;a=patch;h=11a50ae5b80b3e03694a19e84513345d0794e563
|
2014-10-01 16:01:22 +02:00
|
|
|
BuildRequires: cmake >= 2.8
|
2013-01-03 01:13:10 +01:00
|
|
|
BuildRequires: doxygen
|
2014-10-01 16:01:22 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-11-16 12:23:13 +01:00
|
|
|
BuildRequires: libboost_headers-devel
|
2020-03-25 13:56:20 +01:00
|
|
|
BuildRequires: libboost_test-devel
|
|
|
|
BuildRequires: pkgconfig
|
2017-11-16 12:23:13 +01:00
|
|
|
BuildRequires: python3-xml
|
2020-03-25 13:56:20 +01:00
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: pkgconfig(libconfuse)
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
BuildRequires: pkgconfig(python3)
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2016-06-14 07:31:49 +02:00
|
|
|
%description
|
|
|
|
Library to program and control the FTDI USB controller.
|
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Library to program and control the FTDI USB controller
|
2021-02-03 14:27:04 +01:00
|
|
|
License: LGPL-2.1-only
|
2017-07-12 14:19:13 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Library to program and control the FTDI USB controller.
|
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
2017-11-16 12:23:13 +01:00
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python 3 binding for libftdi1
|
2021-02-03 14:27:04 +01:00
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
|
2017-11-16 12:23:13 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-07-12 14:19:13 +02:00
|
|
|
|
2017-11-16 12:23:13 +01:00
|
|
|
%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.
|
2016-06-14 07:31:49 +02:00
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%package devel
|
2021-02-03 14:27:04 +01:00
|
|
|
Summary: Header files for libftdi1
|
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only AND GPL-2.0-with-classpath-exception
|
2011-02-02 02:08:03 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-12 14:19:13 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2020-03-25 13:56:20 +01:00
|
|
|
Requires: pkgconfig(libusb-1.0)
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%description devel
|
2010-12-21 17:30:29 +01:00
|
|
|
Header files and static libraries for libftdi.
|
|
|
|
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
|
|
|
|
|
|
|
%prep
|
2021-02-03 14:27:04 +01:00
|
|
|
%autosetup -p1
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%build
|
2018-04-08 08:43:23 +02:00
|
|
|
%cmake \
|
|
|
|
-DDOCUMENTATION=ON \
|
|
|
|
-DFTDI_EEPROM=ON \
|
2020-03-25 13:56:20 +01:00
|
|
|
-DPYTHON_BINDINGS=ON \
|
|
|
|
-DBUILD_TESTS=ON \
|
|
|
|
-DSTATICLIBS=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
%cmake_build
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%install
|
2014-12-27 13:43:15 +01:00
|
|
|
%cmake_install
|
2016-06-14 07:31:49 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}
|
2013-01-03 01:13:10 +01:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man3
|
2020-03-25 13:56:20 +01:00
|
|
|
install -pm 0644 build/doc/man/man3/[^_]*.3 \
|
|
|
|
%{buildroot}%{_mandir}/man3
|
|
|
|
|
|
|
|
%check
|
2021-02-03 14:27:04 +01:00
|
|
|
%ctest
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%files -n %{libname}
|
2018-05-11 16:26:12 +02:00
|
|
|
%license COPYING* LICENSE
|
|
|
|
%doc AUTHORS README
|
2011-01-21 23:36:03 +01:00
|
|
|
%{_libdir}/libftdi*.so.*
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2017-11-16 12:23:13 +01:00
|
|
|
%files -n python3-%{name}
|
|
|
|
%doc python/examples/*.py
|
|
|
|
%{python3_sitearch}/_ftdi1.so
|
|
|
|
%{python3_sitearch}/ftdi1.py
|
2016-06-14 07:31:49 +02:00
|
|
|
|
2017-07-12 14:19:13 +02:00
|
|
|
%files devel
|
2016-06-14 07:31:49 +02:00
|
|
|
%doc ftdi_eeprom/example.conf
|
2014-10-01 16:01:22 +02:00
|
|
|
%{_bindir}/libftdi*-config
|
2016-06-14 07:31:49 +02:00
|
|
|
%{_bindir}/ftdi_eeprom
|
2014-10-01 16:01:22 +02:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/libftdi*.so
|
2017-07-12 14:19:13 +02:00
|
|
|
%{_libdir}/pkgconfig/libftdi*.pc
|
2014-10-01 16:01:22 +02:00
|
|
|
%{_libdir}/cmake/%{name}
|
2017-07-12 14:19:13 +02:00
|
|
|
%{_mandir}/man3/*%{ext_man}
|
2013-01-03 01:13:10 +01:00
|
|
|
|
2011-02-02 02:08:03 +01:00
|
|
|
%changelog
|