File mingw32-libusb-1_0.spec of Package mingw32-libusb-1_0
#
# spec file for package mingw32-libusb-1_0
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 realname libusb-1_0
Name: mingw32-%{realname}
Version: 1.0.27
Release: 0
Summary: USB Library
License: LGPL-2.1-or-later
Group: System/Libraries
Url: http://www.libusb.org/
Source: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
#!BuildIgnore: post-build-checks
%_mingw32_package_header_debug
BuildArch: noarch
%description
Libusb is a library that allows userspace access to USB devices.
%package devel
Summary: Development files for the libusb-1_0 library
Group: Development/Libraries
%description devel
Libusb is a library that allows userspace access to USB devices.
%_mingw32_debug_package
%prep
%setup -q -n libusb-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} --enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw32_bindir}/libusb-1.0.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/libusb-1.0/
%{_mingw32_libdir}/libusb-1.0.dll.a
%{_mingw32_libdir}/pkgconfig/libusb-1.0.pc
%changelog