summaryrefslogtreecommitdiff
path: root/xsane.spec
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:01 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:01 +0000
commite7e90b72fd3161c5d55fed49e100781dfa3e9408 (patch)
tree67cfcfae6b9a9e15701a332dfacbe0ca6440f16c /xsane.spec
parent2d113e8792747151bf5d830f1a1485f2f951f940 (diff)
Imported Upstream version 0.84upstream/0.84
Diffstat (limited to 'xsane.spec')
-rw-r--r--xsane.spec43
1 files changed, 43 insertions, 0 deletions
diff --git a/xsane.spec b/xsane.spec
new file mode 100644
index 0000000..79ce06a
--- /dev/null
+++ b/xsane.spec
@@ -0,0 +1,43 @@
+%define name xsane
+%define version 0.84
+%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*