2011-02-02 02:08:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package libftdi1
|
|
|
|
#
|
2017-02-21 20:12:32 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libftdi1
|
2016-06-14 07:31:49 +02:00
|
|
|
Version: 1.3
|
2013-01-03 01:13:10 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to program and control the FTDI USB controller
|
2012-05-03 20:59:17 +02:00
|
|
|
License: LGPL-2.1+ and GPL-2.0-with-classpath-exception
|
2011-02-02 02:08:03 +01:00
|
|
|
Group: Hardware/Other
|
|
|
|
Url: http://www.intra2net.com/en/developer/libftdi
|
2014-10-01 16:01:22 +02:00
|
|
|
Source: http://www.intra2net.com/en/developer/libftdi/download/libftdi1-%{version}.tar.bz2
|
2017-02-21 20:12:32 +01:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
2014-10-01 16:01:22 +02:00
|
|
|
BuildRequires: boost-devel
|
2017-02-21 20:12:32 +01:00
|
|
|
%endif
|
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++
|
2016-06-14 07:31:49 +02:00
|
|
|
BuildRequires: libconfuse-devel
|
2014-10-01 16:01:22 +02:00
|
|
|
BuildRequires: libusb-1_0-devel
|
2013-01-03 01:13:10 +01:00
|
|
|
BuildRequires: pkgconfig
|
2016-06-14 07:31:49 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-xml
|
|
|
|
BuildRequires: swig
|
2011-02-02 02:08:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-12-21 17:30:29 +01:00
|
|
|
%package -n libftdi1-devel
|
2011-02-02 02:08:03 +01:00
|
|
|
Summary: Header files and static libraries for libftdi
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-01-03 01:13:10 +01:00
|
|
|
Requires: libftdi1 = %{version}
|
2014-10-01 16:01:22 +02:00
|
|
|
Requires: libusb-1_0-devel
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%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
|
2014-10-01 16:01:22 +02:00
|
|
|
%setup -q
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%build
|
2014-12-27 13:43:15 +01:00
|
|
|
%cmake
|
2013-01-03 01:13:10 +01:00
|
|
|
make %{?_smp_mflags}
|
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
|
2014-12-27 13:43:15 +01:00
|
|
|
cd build
|
2014-10-01 16:01:22 +02:00
|
|
|
cp -p doc/man/man3/[^_]*.3 %{buildroot}%{_mandir}/man3
|
2016-06-14 07:31:49 +02:00
|
|
|
find %{buildroot} -type f -name "*.a" -delete -print
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2013-01-03 01:13:10 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2010-12-21 17:30:29 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-01-03 01:13:10 +01:00
|
|
|
%doc AUTHORS COPYING* LICENSE README
|
2011-01-21 23:36:03 +01:00
|
|
|
%{_libdir}/libftdi*.so.*
|
2010-12-21 17:30:29 +01:00
|
|
|
|
2016-06-14 07:31:49 +02:00
|
|
|
%files binding-python
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc python/examples/*.py
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2010-12-21 17:30:29 +01:00
|
|
|
%files -n libftdi1-devel
|
|
|
|
%defattr(-,root,root)
|
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
|
2010-12-21 17:30:29 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2014-10-01 16:01:22 +02:00
|
|
|
%{_libdir}/cmake/%{name}
|
2013-01-03 01:13:10 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
2011-02-02 02:08:03 +01:00
|
|
|
%changelog
|