File sselp.spec of Package sselp

#
# spec file for package sselp (Version 0.2)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

Summary: Simple X selection printer to stdout
Name: sselp
Version: 0.2
Release: 1
Source0: %{name}-%{version}.tar.gz
Source1: http://code.suckless.org/dl/tools/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-defs.patch
Patch1: %{name}-%{version}-defs64.patch
Vendor: %{vendor}
URL: http://tools.suckless.ora/%{name}
License: X11/MIT
Group: System/GUI/Other
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-util-devel
BuildRoot: %{_builddir}/%{name}-%{version}-build

%description
Simple X selection printer. Prints the X
selection to stdout. If there is no X client
owning the selection it just exits.

Useful for scripts where you can query the X
selection without pressing mouse Button2 in
cumbersome ways.

%prep
%setup -q
if [ "`arch`" = "x86_64" ]
then
%patch1 -p1
else
%patch0 -p1
fi

%build

%install
%{__make} DESTDIR=$RPM_BUILD_ROOT clean install 
install -d -m 0755 %{buildroot}/%{_docdir}/%{name}
install -m 0644 README %{buildroot}/%{_docdir}/%{name}
install -m 0644 LICENSE %{buildroot}/%{_docdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%doc README LICENSE


%changelog
* Thu Jul 9 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 0.2
- Initial package.
openSUSE Build Service is sponsored by