File wxia.spec of Package wxia

#
# spec file for package 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:           wxia
%define lname	libwxia-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/%name-%version.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool >= 2
BuildRequires:  pkg-config
BuildRequires:  wxWidgets-3_0-devel
BuildRequires:  pkgconfig(sane-backends)

%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++
Requires:       %lname = %version

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

%build
autoreconf -fi
%configure
make %{?_smp_mflags}

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

%files -n %lname
%defattr(-,root,root)
%doc COPYING COPYING.LIB
%_libdir/libwxia-0.0.3.so

%files devel
%defattr(-,root,root)
%_includedir/wx/
%_libdir/libwxia.so
%_libdir/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by