File xcb.spec of Package xcb

#
# spec file for package xcb (Version 2.5)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           xcb
%define _prefix %(xft-config --prefix)
%if "%{_prefix}" == "/usr/X11R6"
%define _mandir %_prefix/man
%define _appdefdif %_prefix/lib/X11/app-defaults
%else
%define _appdefdif %_prefix/share/X11/app-defaults
%endif
BuildRequires:  xorg-x11-devel
URL:            http://www.goof.com/pcg/marc/xcb.html
License:        X11/MIT
Group:          System/X11/Utilities
Autoreqprov:    on
Version:        2.5
Release:        14
Summary:        X11 cut&paste utility
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xcb provides access to the cut buffers built into every X server. It
allows the buffers to be manipulated either via the command line or
with the mouse in a point and click manner.  The buffers can be used as
holding pens to store and retrieve arbitrary data fragments, so any
number of different pieces of data can be saved and recalled later. The
program is designed primarily for use with textual data.



Authors:
--------
    Farrell McKay <Farrell.McKay@mpx.com.au>
    Marc Lehmann <pcg@goof.com>

%prep
%setup

%build
xmkmf -a
make CCOPTIONS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make "DESTDIR=$RPM_BUILD_ROOT" install
make "DESTDIR=$RPM_BUILD_ROOT" install.man

%files
%defattr(-,root,root)
%_bindir/xcb

%_appdefdif/Xcb
%doc %_mandir/man1/xcb.1x*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog -n xcb
* Mon Jul 24 2006 - mmarek@suse.de
- fix filelist for build with modular Xorg
- use RPM_OPT_FLAGS
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Aug 03 2005 - anicka@suse.cz
- update to 2.5 from CVS
* Tue Feb 17 2004 - postadal@suse.cz
- updated to branched version 2.4 (by Marc Lehmann <pcg@goof.com>)
  * fixes and better i18n support
- added norootforbuild flag to the spec file
- replaced xf86 by x-devel-packages in neededforbuild flag
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Tue Nov 21 2000 - cihlar@suse.cz
- fixed copyright
* Fri May 19 2000 - cihlar@suse.cz
- Group sorted
* Tue Apr 11 2000 - cihlar@suse.cz
- added BuildRoot
- removed Makefile.Linux
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
openSUSE Build Service is sponsored by