
%define name sane
%define version 1.0.3
%define release 1
%define prefix /usr
Summary : Scanner interface.
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Distribution : Build for Red Hat 6.2
Vendor: Boubouline Software
Packager: Okki <okki@wanadoo.fr>
URL: http://www.mostang.com/sane/
Group: Applications/Publishing
Source: %{name}-%{version}-%{release}.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
Prefix: %{prefix}
Docdir: %{prefix}/doc

%description
SANE stands for "Scanner Access Now Easy" and is an application programming interface
(API) that provides standardized access to any raster image scanner hardware
(flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.).
The SANE standard is free and its discussion and developement is open to everybody.
The current source code is written for UNIX (including Linux) and is available
under the GNU public license (commercial application and backends are welcome, too, however).


%package devel
Summary : Development files for applications that use Sane
Group: Development/Libraries

%description devel
Development files for applications that use Sane

%prep
rm -rf $RPM_BUILD_ROOT

%setup
./configure

%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/*

%files
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog LEVEL2 LICENSE NEWS PROBLEMS PROJECTS README* TODO

/usr/man/*
/usr/share/*
/usr/sbin/*
/usr/bin/*
/usr/etc/*
/usr/lib/*.so.*
/usr/lib/sane/*.so.*


%files devel
%defattr(-,root,root)

/usr/include/*
/usr/lib/*.a
/usr/lib/*.la
/usr/lib/*.so
/usr/lib/sane/*.a
/usr/lib/sane/*.la
/usr/lib/sane/*.so


%changelog

* Sun Aug 13 2000 Georges Seguin okki@wanadoo.fr 
- Sane 1.0.3
- RPM specification file has been improved

* Thu Jun 1 2000 Georges Seguin crow@planete.net 
- First RPM
