File mingw64-libusb-1_0.spec of Package mingw64-libusb-1_0

#
# spec file for package mingw64-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:           mingw64-%{realname}
Version:        1.0.28
Release:        0
Summary:        USB Library
License:        LGPL-2.1-or-later
Group:          System/Libraries
Url:            https://libusb.info/
Source:         https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
%_mingw64_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.

%_mingw64_debug_package

%prep
%setup -q -n libusb-%{version}

%build
%{_mingw64_configure} --enable-shared --disable-static
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print

%files
%{_mingw64_bindir}/libusb-1.0.dll

%files devel
%{_mingw64_includedir}/libusb-1.0/
%{_mingw64_libdir}/libusb-1.0.dll.a
%{_mingw64_libdir}/pkgconfig/libusb-1.0.pc

%changelog
openSUSE Build Service is sponsored by