File mingw32-wxia.spec of Package mingw32-wxia

#
# spec file for package mingw32-wxia
#
# Copyright (c) 2015 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/
#


Name:           mingw32-wxia
%define lname	mingw32-libwxia-0-0-3
Version:        0.0.3
Release:        0
Summary:        Cross-platform image acquisition using wxWidgets
License:        GPL-2.0-or-later
Group:          Hardware/Scanner
Url:            http://gitub.com/versable/wxia/

#Git-Clone:     git://github.com/versable/wxia
Source:         https://github.com/versable/wxia/releases/download/v0.0.3/wxia-%version.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool >= 2
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-wxWidgets-3_0-devel
#!BuildIgnore: post-build-checks
BuildArch:      noarch
%_mingw32_package_header_debug

%description
wxIA is a collection of cross-platform image acquisition classes for
the wxWidgets GUI class library providing access to native image
acquisition APIs. Supports TWAIN and SANE.

%package -n %lname
Summary:        Cross-platform image acquisition using wxWidgets
Group:          System/Libraries

%description -n %lname
wxIA is a collection of cross-platform image acquisition classes for
the wxWidgets GUI class library providing access to native image
acquisition APIs. Supports TWAIN and SANE.

%package devel
Summary:        Development files for wxIA Cross-platform image acquisition using wxWidgets
Group:          Development/Libraries/C and C++

%description devel
wxIA is a collection of cross-platform image acquisition classes for
the wxWidgets GUI class library providing access to native image
acquisition APIs. Supports TWAIN and SANE.

%_mingw32_debug_package

%prep
%setup -qn wxia-%version

%build
autoreconf -fi
%_mingw32_configure --with-wx-config="%_mingw32_prefix/bin/wx-config"
make %{?_smp_mflags}

%install
%make_install
find "%buildroot/%_mingw32_libdir" -type f -name "*.la" -delete

%files -n %lname
%defattr(-,root,root)
%_mingw32_bindir/libwxia-*.dll

%files devel
%defattr(-,root,root)
%_mingw32_includedir/wx/
%_mingw32_libdir/libwxia.dll.a
%_mingw32_libdir/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by