File mingw64-wxia.spec of Package mingw64-wxia

#
# spec file for package mingw64-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:           mingw64-wxia
%define lname	mingw64-libxwia-0-0-3
Version:        0.0.3
Release:        0
Summary:        Cross-platform image acquisition using wxWidgets
License:        GPL-2.0+
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool >= 2
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-wxWidgets-3_0-devel
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%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.

%prep
%setup -qn wxia-%version

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

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

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

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

%changelog
openSUSE Build Service is sponsored by