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 http://bugs.opensuse.org/
#



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
Source:         http://www.kfish.org/software/xsel/download/xsel-%{version}.tar.gz
Url:            http://www.kfish.org/software/xsel/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1000
BuildRequires:  XFree86-devel
%else
BuildRequires:  xorg-x11-devel
%endif

%description
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.

%prep
%setup -q

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

make %{?_smp_mflags}

%install
make DESTDIR="%{buildroot}" install

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

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README
%doc %{_mandir}/man1/xsel.1x*
%{_bindir}/xsel

%changelog
openSUSE Build Service is sponsored by