summaryrefslogtreecommitdiff
path: root/xsane.spec.in.old
diff options
context:
space:
mode:
authorAurelien Jarno <aurel32@debian.org>2005-02-03 16:24:20 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:06 +0000
commit825ef604db05e42ea267a86187bf62d54670c98c (patch)
treec41b8addd68e573fcf6ef599ec777e251a130b8e /xsane.spec.in.old
parentac8459519a9ef2a1ee635509b52a653da1bfe9d5 (diff)
parent817e6294b42b3e4435f1b99728afc1dca84a6445 (diff)
Imported Debian patch 0.97-3debian/0.97-3
Diffstat (limited to 'xsane.spec.in.old')
-rw-r--r--xsane.spec.in.old43
1 files changed, 43 insertions, 0 deletions
diff --git a/xsane.spec.in.old b/xsane.spec.in.old
new file mode 100644
index 0000000..a12e97c
--- /dev/null
+++ b/xsane.spec.in.old
@@ -0,0 +1,43 @@
+%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*