File xselection.spec of Package xselection
#
# spec file for package xselection (Version 1.6.1)
#
# Copyright (c) 2009 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xselection
Url: http://sunsite.mff.cuni.cz/MIRRORS/ftp.xfree86.org/pub/mirror/X.Org/R5contrib/
BuildRequires: xorg-x11 xorg-x11-devel
License: X11/MIT
Group: System/X11/Utilities
Provides: xselect
Obsoletes: xselect
AutoReqProv: on
Summary: Manipulate the XSelection
Version: 1.6.1
Release: 787
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}.patch
Patch1: %{name}-%{version}-qt.patch
Patch2: %{name}-%{version}-help.patch
Patch3: %{name}-%{version}-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
#%define _xorg7_config /usr/share/X11/config #use libshare macro
%define _xorg7_prefix /usr
%else
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
%define _xorg7_prefix /usr/X11R6
%endif
%description
With this little tool, pipe the currently selected text under X into a
file or vice versa.
Help can be found by reading the man page with
man xselection
Authors:
--------
Richard Hesketh <rlh2@ukc.ac.uk
%prep
%setup
%patch0
%patch1
%patch2
%patch3
%build
xmkmf -a
make %{?jobs:-j%jobs} CCOPTIONS="$RPM_OPT_FLAGS"
%install
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.man
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/%{_xorg7bin}/xselection
%doc %{_xorg7_mandir}/man1/xselection.1x.gz
%changelog
* Fri Jul 28 2006 lmichnovic@suse.cz
- builds also with new X.org 7.x, detecting prefix in X.org
- building with icecream
- using RPM_OPT_FLAGS
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Apr 18 2005 ro@suse.de
- build with gcc-4
* Fri May 07 2004 hmacht@suse.de
- building as non-root user
* Fri Apr 16 2004 pmladek@suse.cz
- fixed some compiler warnings
* Fri Aug 09 2002 pmladek@suse.cz
- added help option which will be used by less mouse support
* Fri May 31 2002 pmladek@suse.cz
- fixed for qt (kde) applications where TARGETS request must be
answered before the request on selected data
* Wed Oct 10 2001 pmladek@suse.cz
- renamed from xselect to xselection
- bzippped sources
- fixed copyright tag
- added BuildRoot
- cleaned up spec file
* Thu Mar 08 2001 uli@suse.de
- added # neededforbuild xf86
- added proper Group tag
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Oct 29 1997 kgw@suse.de
- ready for autobuild
* Thu Jan 02 1997 maddin@suse.de
first SuSE version