2c54ff
Name: sane-frontends
2c54ff
Version: 1.0.14
2c54ff
Release: 30%{?dist}
2c54ff
Summary: Graphical frontend to SANE
2c54ff
URL: http://www.sane-project.org
2c54ff
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
2c54ff
# Fix array subscript out of bounds errors (#133121).
2c54ff
# Upstream commit 5113e3de39846a8226909088ad5c1aa4969f3030 and commit
2c54ff
# 7336b064653026171a715dfaf803693b638c67a5 (partial)
2c54ff
Patch0: sane-frontends-1.0.14-array-out-of-bounds.patch
2c54ff
# Fix building with sane-backends >= 1.0.20.
2c54ff
# Upstream commit 5e96223e497538d06e18d8e84b774c4a35f654b4 (partial) and commit
2c54ff
# c554cfce37e37a33f94a9051afe2062c4759072b
2c54ff
Patch1: sane-frontends-1.0.14-sane-backends-1.0.20.patch
2c54ff
# Describe correct option names in xcam man page.
2c54ff
# Upstream commit 7e079e377174826453a1041719fb347d69d3ba5f
2c54ff
Patch2: sane-frontends-1.0.14-xcam-man.patch
2c54ff
# Update lib/snprintf.c to current version from LPRng to resolve license issue (#1102522)
2c54ff
Patch3: sane-frontends-1.0.14-update-to-current-lprng-plp_snprintf.patch
2c54ff
2c54ff
License: GPLv2+ and LGPLv2+ and GPLv2+ with exceptions
2c54ff
# gcc is no longer in buildroot by default
2c54ff
BuildRequires: gcc
2c54ff
2c54ff
BuildRequires: gtk2-devel
2c54ff
BuildRequires: sane-backends-devel >= 1.0.19-15
2c54ff
2c54ff
%description
2c54ff
This packages includes the scanadf and xcam programs.
2c54ff
2c54ff
%prep
2c54ff
%setup -q
2c54ff
%patch0 -p1 -b .array-out-of-bounds
2c54ff
%patch1 -p1 -b .sane-backends-1.0.20
2c54ff
%patch2 -p1 -b .xcam-man
2c54ff
%patch3 -p1 -b .snprintf
2c54ff
2c54ff
%build
2c54ff
%configure --with-gnu-ld --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir}
2c54ff
make %{?_smp_mflags}
2c54ff
2c54ff
%install
2c54ff
make DESTDIR=%{buildroot} install
2c54ff
2c54ff
# Not xscanimage; use xsane instead.
2c54ff
rm -f %{buildroot}%{_bindir}/xscanimage
2c54ff
rm -f %{buildroot}%{_mandir}/man1/xscanimage*
2c54ff
rm -f %{buildroot}%{_datadir}/sane/sane-style.rc
2c54ff
2c54ff
%files
2c54ff
%doc AUTHORS COPYING README
2c54ff
%{_bindir}/*
2c54ff
%{_mandir}/man1/*
2c54ff
# there is no desktop file for xcam because while it is a GUI program it is
2c54ff
# intended to be used from the command line
2c54ff
2c54ff
%changelog
2c54ff
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.14-30
2c54ff
- correcting license
2c54ff
2c54ff
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.14-29
2c54ff
- gcc is no longer in buildroot by default
2c54ff
2c54ff
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-28
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2c54ff
2c54ff
* Thu Feb 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.14-27
2c54ff
- remove old stuff
2c54ff
2c54ff
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-26
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2c54ff
2c54ff
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-25
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2c54ff
2c54ff
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-24
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2c54ff
2c54ff
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-23
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2c54ff
2c54ff
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-22
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2c54ff
2c54ff
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-21
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2c54ff
2c54ff
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-20
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2c54ff
2c54ff
* Thu May 29 2014 Tom Callaway <spot@fedoraproject.org> - 1.0.14-19
2c54ff
- update lib/snprintf.c to resolve licensing issue (#1102522)
2c54ff
2c54ff
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-18
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2c54ff
2c54ff
* Mon Jul 08 2013 Nils Philippsen <nils@redhat.com> - 1.0.14-17
2c54ff
- add comments to patches
2c54ff
- describe correct option names in xcam man page
2c54ff
2c54ff
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-16
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2c54ff
2c54ff
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-15
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2c54ff
2c54ff
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 1.0.14-14
2c54ff
- clean up:
2c54ff
  - don't BR: gimp-devel, R: sane-backends
2c54ff
  - get rid of buildroot, %%makeinstall and %%clean section
2c54ff
  - dont obsolete/provide "sane" (ancient)
2c54ff
2c54ff
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 1.0.14-13
2c54ff
- rebuild for gcc 4.7
2c54ff
2c54ff
* Mon Nov 07 2011 Nils Philippsen <nils@redhat.com> - 1.0.14-12
2c54ff
- rebuild (libpng)
2c54ff
2c54ff
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-11
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2c54ff
2c54ff
* Fri Feb 26 2010 Nils Philippsen <nils@redhat.com> - 1.0.14-10
2c54ff
- add missing documentation files AUTHORS, COPYING, README
2c54ff
- don't distribute sane-style.rc
2c54ff
- use %%buildroot consistently
2c54ff
- explain missing xcam.desktop file
2c54ff
2c54ff
* Mon Aug 03 2009 Nils Philippsen <nils@redhat.com> 1.0.14-9
2c54ff
- remove ExcludeArch: s390 s390x
2c54ff
2c54ff
* Fri Jul 31 2009 Nils Philippsen <nils@redhat.com> 1.0.14-8
2c54ff
- replace badcode with array-out-of-bounds patch
2c54ff
- fix compilation with sane-backends-1.0.20
2c54ff
2c54ff
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-7
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2c54ff
2c54ff
* Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> 1.0.14-6
2c54ff
- don't require libieee2384-devel, libjpeg-devel but require fixed
2c54ff
  sane-backends-devel for building
2c54ff
2c54ff
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
2c54ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2c54ff
2c54ff
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.14-5
2c54ff
- fix license tag
2c54ff
2c54ff
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.14-4
2c54ff
- Autorebuild for GCC 4.3
2c54ff
2c54ff
* Tue Apr 24 2007 Nils Philippsen <nphilipp@redhat.com> 1.0.14-3
2c54ff
- merge review (#226389):
2c54ff
  - add version info to obsoletes/provides
2c54ff
  - no config files in /usr
2c54ff
  - use %%configure macro
2c54ff
- add dist tag
2c54ff
2c54ff
* Thu Mar 15 2007 Karsten Hopp <karsten@redhat.com> 1.0.14-2
2c54ff
- rebuild with current gtk2 to add png support (#232013)
2c54ff
2c54ff
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.14-1.2.2
2c54ff
- rebuild
2c54ff
2c54ff
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.14-1.2.1
2c54ff
- bump again for double-long bug on ppc(64)
2c54ff
2c54ff
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.14-1.2
2c54ff
- rebuilt for new gcc4.1 snapshot and glibc changes
2c54ff
2c54ff
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
2c54ff
- rebuilt
2c54ff
2c54ff
* Mon Nov 21 2005 Nils Philippsen <nphilipp@redhat.com> 1.0.14-1
2c54ff
- version 1.0.14
2c54ff
- fix build requires
2c54ff
- update badcode patch
2c54ff
2c54ff
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 1.0.13-2
2c54ff
- Rebuild for new GCC.
2c54ff
2c54ff
* Mon Nov  8 2004 Tim Waugh <twaugh@redhat.com> 1.0.13-1
2c54ff
- 1.0.13.
2c54ff
2c54ff
* Mon Sep 27 2004 Tim Waugh <twaugh@redhat.com> 1.0.12-4
2c54ff
- Fixed mistaken array op (bug #133121).
2c54ff
2c54ff
* Sat Jun 19 2004 Jeremy Katz <katzj@redhat.com> - 1.0.12-3
2c54ff
- remove no longer valid requires on old gtk+ and gimp
2c54ff
2c54ff
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
2c54ff
- rebuilt
2c54ff
2c54ff
* Wed Jun  2 2004 Tim Waugh <twaugh@redhat.com> 1.0.12-1
2c54ff
- 1.0.12.
2c54ff
2c54ff
* Wed May 12 2004 Tim Waugh <twaugh@redhat.com>
2c54ff
- s/ftp.mostang.com/ftp.sane-project.org/.
2c54ff
2c54ff
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
2c54ff
- rebuilt
2c54ff
2c54ff
* Tue Oct 21 2003 Florian La Roche <Florian.LaRoche@redhat.de>
2c54ff
- BuildReq: libieee1284-devel, it seems to get picked up if available
2c54ff
2c54ff
* Mon Sep 29 2003 Tim Waugh <twaugh@redhat.com>
2c54ff
- Updated URL.
2c54ff
2c54ff
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
2c54ff
- rebuilt
2c54ff
2c54ff
* Tue Apr 29 2003 Tim Waugh <twaugh@redhat.com> 1.0.11-1
2c54ff
- 1.0.11.
2c54ff
2c54ff
* Mon Mar 24 2003 Tim Waugh <twaugh@redhat.com> 1.0.10-2
2c54ff
- Don't require a specific version of sane-backends.
2c54ff
2c54ff
* Thu Mar 20 2003 Tim Waugh <twaugh@redhat.com> 1.0.10-1
2c54ff
- 1.0.10.
2c54ff
2c54ff
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
2c54ff
- rebuilt
2c54ff
2c54ff
* Fri Oct 25 2002 Tim Waugh <twaugh@redhat.com> 1.0.9-1
2c54ff
- 1.0.9.
2c54ff
2c54ff
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
2c54ff
- automated rebuild
2c54ff
2c54ff
* Thu Jun 20 2002 Tim Waugh <twaugh@redhat.com> 1.0.8-3
2c54ff
- Don't explicitly strip binaries (bug #62565).
2c54ff
2c54ff
* Wed Jun 12 2002 Tim Waugh <twaugh@redhat.com> 1.0.8-2
2c54ff
- Rebuild to fix bug #66129.
2c54ff
2c54ff
* Tue May 28 2002 Tim Waugh <twaugh@redhat.com> 1.0.8-1
2c54ff
- 1.0.8.
2c54ff
2c54ff
* Sun May 26 2002 Tim Powers <timp@redhat.com>
2c54ff
- automated rebuild
2c54ff
2c54ff
* Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.0.8-0.20020522.1
2c54ff
- Update to CVS.  Release expected before the end of the month.
2c54ff
- Don't ship xscanimage any longer.
2c54ff
2c54ff
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 1.0.7-2
2c54ff
- Rebuild in new environment.
2c54ff
2c54ff
* Mon Feb  4 2002 Tim Waugh <twaugh@redhat.com> 1.0.7-1
2c54ff
- 1.0.7.
2c54ff
2c54ff
* Sun Jan 27 2002 Tim Waugh <twaugh@redhat.com> 1.0.7-0.beta2.1
2c54ff
- 1.0.7-beta2.
2c54ff
2c54ff
* Wed Jan 23 2002 Tim Waugh <twaugh@redhat.com> 1.0.7-0.beta1.1
2c54ff
- 1.0.7-beta1.
2c54ff
- No longer need the fpe patch.
2c54ff
2c54ff
* Fri Nov 30 2001 Tim Waugh <twaugh@redhat.com> 1.0.6-2
2c54ff
- Fix a floating point exception (bug #56536).
2c54ff
2c54ff
* Mon Nov  5 2001 Tim Waugh <twaugh@redhat.com> 1.0.6-1
2c54ff
- 1.0.6.
2c54ff
2c54ff
* Sun Jul  1 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-1
2c54ff
- 1.0.5.
2c54ff
- Change Copyright: to License:.
2c54ff
2c54ff
* Thu Jun  7 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010605
2c54ff
- CVS snapshot 2001-06-05.
2c54ff
- Don't install xscanimage plug-in symlinks.  The old sane package never
2c54ff
  used to do this, and it looks confusing in gimp if you also have
2c54ff
  xsane-gimp (which is better) installed.  xscanimage works stand-alone
2c54ff
  anyhow.
2c54ff
2c54ff
* Sun Jun  3 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010603.1000
2c54ff
- CVS snapshot 2001-06-03 10:00.
2c54ff
2c54ff
* Sat Jun  2 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010530
2c54ff
- Built for Red Hat Linux.
2c54ff
- CVS snapshot 2001-05-30.
2c54ff
2c54ff
* Mon Jan 08 2001 Francis Galiegue <fg@mandrakesoft.com> 1.0.4-2mdk
2c54ff
2c54ff
- Summary now capitalised
2c54ff
- BuildRequires: sane (for sane-config)
2c54ff