Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 632c59ff00c9f5853fa34928131ab34b > files > 29

xsane-0.995-2mdv2008.1.x86_64.rpm

%define name xsane
%define version @VERSION@
%define release 1
%define prefix /usr

Name: %{name}
Version: %{version}
Release: %{release}
Summary: Xsane is a graphical frontend for the scanner library SANE
Group: Graphics
URL: http://www.xsane.org
Buildroot: /var/tmp/%{name}-buildroot
Requires: sane
Source: ftp://ftp.mostang.com/pub/sane/xsane/%{name}-%{version}.tar.gz
Copyright: GPL
BuildRequires: gtk+ >= 1.2.0 libsane1-devel >= 1.0.2

%description
Xsane is a grahical frontend for sane. Install this if you want a grahpical
frontend for sane for use in the X Windowing System.

%prep
%setup -q -n %{name}-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
uname -a | grep -qi SMP && make -j 2 || make

%install
rm -rf %{buildroot}  
mkdir -p %{buildroot}%{prefix}
make prefix=%{buildroot}%{prefix} install
strip %{buildroot}%{prefix}/bin/* || :

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc xsane*
/usr/share/*
/usr/bin/xsane
/usr/man/man1/xsane.1*