File mingw32-libftdi.spec of Package mingw32-libftdi
#
# spec file for package mingw32-libftdi
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define soname 1
%define realname libftdi
Name: mingw32-%{realname}
Version: 1.5
Release: 0
Summary: Library to program and control the FTDI USB controller
License: LGPL-2.1-or-later and GPL-2.0-with-classpath-exception
Group: Hardware/Other
Url: http://www.intra2net.com/de/produkte/opensource/ftdi/
Source: %{realname}%{soname}-%{version}.tar.bz2
Source1: mingw32-libftdi.keyring
BuildRequires: mingw32-boost-devel
BuildRequires: mingw32-confuse-devel
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-libintl-devel
BuildRequires: mingw32-libusb-1_0-devel
BuildArch: noarch
%_mingw32_package_header_debug
%description
A library (using libusb) to talk to FTDI's FT2232C,
FT232BM and FT245BM type chips including the popular bitbang mode.
%package -n mingw32-%{realname}%{soname}
Summary: Library to program and control the FTDI USB controller
Group: System/Libraries
%description -n mingw32-%{realname}%{soname}
Library to program and control the FTDI USB controller.
This library is used by many programs accessing FTDI USB-to-RS232 converters.
%package -n mingw32-%{realname}%{soname}-devel
Summary: Header files and static libraries for libftdi
Group: Development/Libraries/C and C++
Requires: mingw32-%{realname}%{soname} = %{version}
%description -n mingw32-%{realname}%{soname}-devel
Header files and static libraries for libftdi.
This library is used by many programs accessing FTDI USB-to-RS232 converters.
%_mingw32_debug_package
%prep
%setup -q -n %{realname}%{soname}-%{version}
%build
%{_mingw32_cmake} -DEXAMPLES=OFF
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
# remove uneeded files
rm %buildroot/%{_mingw32_libdir}/libftdi1.a
%files -n mingw32-%{realname}%{soname}
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING.GPL COPYING.LIB README
%{_mingw32_bindir}/libftdi1-config
%{_mingw32_bindir}/libftdi1.dll
%files -n mingw32-%{realname}%{soname}-devel
%defattr(-,root,root)
%dir %{_mingw32_includedir}/libftdi1
%{_mingw32_includedir}/libftdi1/ftdi.h
%{_mingw32_libdir}/libftdi1.dll.a
%{_mingw32_libdir}/pkgconfig/libftdi1.pc
%{_mingw32_libdir}/pkgconfig/libftdipp1.pc
%dir %{_mingw32_libdir}/cmake
%dir %{_mingw32_libdir}/cmake/libftdi1
%{_mingw32_libdir}/cmake/libftdi1/*.cmake
%{_mingw32_bindir}/ftdi_eeprom.exe
%dir %{_mingw32_datadir}/doc/libftdi1
%{_mingw32_datadir}/doc/libftdi1/example.conf
%changelog