File sane-airscan.spec of Package sane-airscan

#
# spec file for package sane-airscan
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define libname libsane-airscan
Name:           sane-airscan
Version:        0.99.29
Release:        0
Summary:        Scanner Access Now Easy - universal driver for eSCL and WSD
License:        GPL-2.0-or-later
URL:            https://github.com/alexpevzner/sane-airscan
Source:         %{url}/archive/%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(avahi-core)
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(libtiff-4)
BuildRequires:  pkgconfig(sane-backends)

%description
Similar to how most modern network printers support "driverless" printing,
using the universal vendor-neutral printing protocol,
many modern network scanners and MFPs support "driverless" scanning.


%prep
%autosetup

%build
%make_build

%install
%make_install

%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

%files
%license LICENSE COPYING
%doc README.md
%{_sysconfdir}/sane.d/dll.d
%config(noreplace) %{_sysconfdir}/sane.d/airscan.conf
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/airscan
%{_bindir}/airscan-discover
%{_mandir}/man1/airscan-discover.1%{?ext_man}
%{_mandir}/man5/sane-airscan.5%{?ext_man}
%{_libdir}/sane/libsane-airscan.so.1

%changelog
openSUSE Build Service is sponsored by