File: xsane.spec.in

package info (click to toggle)
xsane 0.998-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,508 kB
  • ctags: 7,713
  • sloc: ansic: 46,136; makefile: 714; sh: 197; sed: 50
file content (43 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 scanners. It uses the library SANE.
Group: Graphics
URL: http://www.xsane.org
Buildroot: /var/tmp/%{name}-buildroot
Requires: sane-backends
Source: ftp://ftp.mostang.com/pub/sane/xsane/%{name}-%{version}.tar.gz
Copyright: GPL
BuildRequires: gtk+ >= 1.2.0 sane-backends-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*