cvsdist 1c36363
Name: sane-frontends
cvsdist 1c36363
Version: 1.0.5
cvsdist de5f4cc
Release: 2
cvsdist 1c36363
Summary: Graphical frontend to SANE
cvsdist 1c36363
URL:       http://www.mostang.com/sane/
cvsdist 1c36363
#Source:    ftp://ftp.mostang.com/pub/sane/%{name}-%{version}.tar.bz2
cvsdist 1c36363
Source:    ftp://ftp.mostang.com/pub/sane/sane-%{version}/%{name}-%{version}.tar.gz
cvsdist 1c36363
License: GPL
cvsdist 1c36363
Group: Applications/System
cvsdist 1c36363
BuildRequires: XFree86-devel gimp-devel libjpeg-devel sane-backends-devel
cvsdist 1c36363
Requires:  gtk+ >= 0.99.13, gimp >= 1.1.25, sane-backends = %{version}
cvsdist 1c36363
Buildroot: %{_tmppath}/%{name}-root
cvsdist 1c36363
Obsoletes: sane
cvsdist 1c36363
Provides: sane
cvsdist de5f4cc
ExcludeArch: s390 s390x
cvsdist 1c36363
cvsdist 1c36363
%description
cvsdist 1c36363
This is the xscanimage program, used to scan images using SANE, either
cvsdist 1c36363
standalone or as a gimp plugin. Also includes xcam.
cvsdist 1c36363
cvsdist 1c36363
%prep
cvsdist 1c36363
%setup -q
cvsdist 1c36363
cvsdist 1c36363
%build
cvsdist 1c36363
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s \
cvsdist 1c36363
./configure --with-gnu-ld --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir}
cvsdist 1c36363
cvsdist 1c36363
# glibc 2.1 has stpcpy, but sane's configure is apparently unable to detect it.
cvsdist 1c36363
perl -p -i -e "s|\/\* #undef HAVE_STPCPY \*\/|#define HAVE_STPCPY 1|" include/sane/config.h
cvsdist 1c36363
cvsdist 1c36363
make
cvsdist 1c36363
cvsdist 1c36363
%install
cvsdist 1c36363
rm -rf $RPM_BUILD_ROOT
cvsdist 1c36363
%makeinstall
cvsdist 1c36363
cvsdist 1c36363
%clean
cvsdist 1c36363
rm -R $RPM_BUILD_ROOT
cvsdist 1c36363
cvsdist 1c36363
%files
cvsdist 1c36363
%defattr(-,root,root,755)
cvsdist 1c36363
%{_bindir}/*
cvsdist 1c36363
%config(noreplace) %{_datadir}/sane-style.rc
cvsdist 1c36363
%{_mandir}/man1/*
cvsdist 1c36363
cvsdist 1c36363
cvsdist 1c36363
%changelog
cvsdist 1c36363
* Sun Jul  1 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-1
cvsdist 1c36363
- 1.0.5.
cvsdist 1c36363
- Change Copyright: to License:.
cvsdist 1c36363
cvsdist 1c36363
* Thu Jun  7 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010605
cvsdist 1c36363
- CVS snapshot 2001-06-05.
cvsdist 1c36363
- Don't install xscanimage plug-in symlinks.  The old sane package never
cvsdist 1c36363
  used to do this, and it looks confusing in gimp if you also have
cvsdist 1c36363
  xsane-gimp (which is better) installed.  xscanimage works stand-alone
cvsdist 1c36363
  anyhow.
cvsdist 1c36363
cvsdist 1c36363
* Sun Jun  3 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010603.1000
cvsdist 1c36363
- CVS snapshot 2001-06-03 10:00.
cvsdist 1c36363
cvsdist 1c36363
* Sat Jun  2 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010530
cvsdist 1c36363
- Built for Red Hat Linux.
cvsdist 1c36363
- CVS snapshot 2001-05-30.
cvsdist 1c36363
cvsdist 1c36363
* Mon Jan 08 2001 Francis Galiegue <fg@mandrakesoft.com> 1.0.4-2mdk
cvsdist 1c36363
cvsdist 1c36363
- Summary now capitalised
cvsdist 1c36363
- BuildRequires: sane (for sane-config)
cvsdist 1c36363