Blame SPECS/sane-airscan.spec

1a3e64
# the package gets input from scanner devices from network
1a3e64
# can be possibly dangerous if an attacker camouflages himself
1a3e64
# as a scanner
1a3e64
%global _hardened_build 1
1a3e64
1a3e64
Name:           sane-airscan
1a3e64
Version:        0.99.24
1a3e64
Release:        3%{?dist}
1a3e64
Summary:        SANE backend for AirScan (eSCL) and WSD document scanners
1a3e64
# the exception is defined in LICENSE, meant for SANE project in most cases
1a3e64
License:        GPLv2+ with exceptions
1a3e64
URL:            https://github.com/alexpevzner/sane-airscan
1a3e64
Source:         %{URL}/archive/%{version}/%{name}-%{version}.tar.gz
1a3e64
1a3e64
# backported from upstream
1a3e64
1a3e64
1a3e64
# needed for querying and getting mDNS messages from local network
1a3e64
BuildRequires:  avahi-devel
1a3e64
# project is written in C
1a3e64
BuildRequires:  gcc
1a3e64
# git is used during autosetup
1a3e64
BuildRequires:  git-core
1a3e64
# creating credentials and SHA256 for UUID
1a3e64
BuildRequires:  gnutls-devel
1a3e64
# needed for creating output image
1a3e64
BuildRequires:  libjpeg-turbo-devel, libpng-devel
1a3e64
# XML data are carried on HTTP protocol, we need to create them and parse them
1a3e64
BuildRequires:  libxml2-devel
1a3e64
# uses make
1a3e64
BuildRequires: make
1a3e64
# used in Makefile to get the correct compile and link flags
1a3e64
BuildRequires:  pkgconf-pkg-config
1a3e64
# package is meant to be as one of SANE backends - it uses SANE API for handling
1a3e64
# devices, strings, words (bytes) and backend itself
1a3e64
BuildRequires:  sane-backends-devel
1a3e64
1a3e64
# needs shared library implementing the backend
1a3e64
Requires: libsane-airscan%{?_isa} = %{version}-%{release}
1a3e64
1a3e64
%description
1a3e64
This package contains a tool for discovering scanning devices in cases
1a3e64
when automatic discovery fails - airscan-discover.
1a3e64
1a3e64
%package -n libsane-airscan
1a3e64
Summary: SANE backend for eSCL or WSD
1a3e64
1a3e64
%description -n libsane-airscan
1a3e64
This package contain a SANE backend for MFP and document scanners that
1a3e64
implements either eSCL (AirScan/AirPrint scanning) or WSD "driverless"
1a3e64
scanning protocol.
1a3e64
1a3e64
1a3e64
%prep
1a3e64
%autosetup -S git
1a3e64
1a3e64
%build
1a3e64
# we need to set default CFLAGS, CPPFLAGS and LDFLAGS to get flags
1a3e64
# from build system into the build, otherwise project's default
1a3e64
# are used
1a3e64
%set_build_flags
1a3e64
%make_build
1a3e64
1a3e64
1a3e64
%install
1a3e64
mkdir -p %{buildroot}/
1a3e64
%make_install STRIP=''
1a3e64
1a3e64
%files
1a3e64
%license COPYING LICENSE
1a3e64
%{_bindir}/airscan-discover
1a3e64
# I'm not fond of wildcards in %%files, but FPG demands it for manpages
1a3e64
%{_mandir}/man1/airscan-discover.1*
1a3e64
1a3e64
%files -n libsane-airscan
1a3e64
%license COPYING LICENSE
1a3e64
%dir %{_sysconfdir}/sane.d
1a3e64
%config(noreplace) %{_sysconfdir}/sane.d/airscan.conf
1a3e64
%dir %{_sysconfdir}/sane.d/dll.d
1a3e64
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/airscan
1a3e64
%dir %{_libdir}/sane
1a3e64
%{_libdir}/sane/libsane-airscan.so.1
1a3e64
# I'm not fond of wildcards in %%files, but FPG demands it for manpages
1a3e64
%{_mandir}/man5/sane-airscan.5*
1a3e64
1a3e64
1a3e64
%changelog
1a3e64
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.99.24-3
1a3e64
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
1a3e64
  Related: rhbz#1991688
1a3e64
1a3e64
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.99.24-2
1a3e64
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
1a3e64
1a3e64
* Thu Feb 04 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.24-1
1a3e64
- 1922563 - sane-airscan-0.99.24 is available
1a3e64
1a3e64
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.23-2
1a3e64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1a3e64
1a3e64
* Mon Jan 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.23-1
1a3e64
- 1914565 - sane-airscan-0.99.23 is available
1a3e64
1a3e64
* Tue Dec 15 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.22-1
1a3e64
- 1906510 - sane-airscan-0.99.22 is available
1a3e64
1a3e64
* Tue Nov 24 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.21-1
1a3e64
- 0.99.21
1a3e64
1a3e64
* Mon Nov 23 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.20-1
1a3e64
- 1900160 - sane-airscan-0.99.20 is available
1a3e64
- 1897935 - Crash on libsane-airscan when trying to activate scanner
1a3e64
1a3e64
* Wed Nov 18 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.19-1
1a3e64
- 1890866 - sane-airscan-0.99.19 is available
1a3e64
1a3e64
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.18-2
1a3e64
- make is no longer in buildroot by default
1a3e64
- use smaller git-core instead of git
1a3e64
1a3e64
* Tue Oct 20 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.18-1
1a3e64
- 1887870 - sane-airscan-0.99.18 is available
1a3e64
1a3e64
* Fri Oct 09 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.17-1
1a3e64
- 1886593 - sane-airscan-0.99.17 is available
1a3e64
1a3e64
* Mon Oct 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.16-2
1a3e64
- 1882520 - Crash on libsane-airscan when trying to activate scanner
1a3e64
1a3e64
* Tue Sep 01 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.16-1
1a3e64
- 0.99.16
1a3e64
1a3e64
* Mon Aug 24 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.15-1
1a3e64
- 0.99.15
1a3e64
1a3e64
* Mon Aug 17 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.14-1
1a3e64
- 0.99.14 - fixing 1867126
1a3e64
1a3e64
* Thu Aug 13 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.13-2
1a3e64
- 1867692 - airscan driver crashes in mock during wsdd_cleanup()
1a3e64
1a3e64
* Mon Aug 10 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.13-1
1a3e64
- 0.99.13
1a3e64
1a3e64
* Wed Aug 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.12-1
1a3e64
- 0.99.12
1a3e64
- removed dependency to glib and libsoup - HTTP parser is implemented inside,
1a3e64
  bringing gnutls dependency
1a3e64
- sort buildrequires alphabetically
1a3e64
1a3e64
* Wed Jul 29 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.99.11-1
1a3e64
- Initial import (#1859207)