File xsel.spec of Package xsel

# spec file for package xsel
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Guido Berhoerster.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           xsel
Summary:        Command-line Program for Getting and Setting the Contents of the X Selection
Version:        1.2.0
Release:        1
License:        MIT
Group:          System/X11/Utilities
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1000
BuildRequires:  XFree86-devel
BuildRequires:  xorg-x11-devel

XSel is a command-line program for getting and setting the contents of the X
selection. Normally this is only accessible by manually highlighting
information and pasting it with the middle mouse button.

%setup -q

%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1100
export CFLAGS="%{optflags} -L%{_usr}/X11R6/%{_lib} -lX11"
%configure \
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1100

make %{?_smp_mflags}

make DESTDIR="%{buildroot}" install

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc %{_mandir}/man1/xsel.1x*