File xcolors.spec of Package xcolors
#
# spec file for package xcolors (Version 91.10.4 )
#
# 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: xcolors
BuildRequires: xorg-x11 xorg-x11-devel
License: Public Domain, Freeware
Group: System/X11/Utilities
AutoReqProv: on
Version: 91.10.4
Release: 1216
Summary: Displays colors defined in rgb.txt
Source: xcolors-04oct91.tar.bz2
Patch: xcolors-04oct91.patch
Patch1: xcolors-04oct91-xorg7_rgbtxt.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
%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/
%endif
%description
Xcolorsel displays colors defined in rgb.txt. You can create an RGB
file by redirecting the output of showrgb to a file.
Authors:
--------
Stephen Gildea <gildea@intouchsys.com>
%prep
%setup -n xcolors-04oct91
%patch
%if "%(xft-config --prefix)" == "/usr"
%patch1
%endif
%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
%files
%defattr(-,root,root)
/usr/%{_xorg7bin}/xcolors
%config /usr/%{_xorg7libshare}/X11/app-defaults/Xcolors
%doc %{_xorg7_mandir}/man1/xcolors.1x.gz
%changelog
* Tue Aug 15 2006 lmichnovic@suse.cz
- changed path of file rgb.txt in X.org 7.x (xorg7_rgbtxt.patch)
* Tue Aug 08 2006 lmichnovic@suse.cz
- compiling with RPM_OPT_FLAGS
* Fri Jul 28 2006 lmichnovic@suse.cz
- builds also with new X.org 7.x, detecting prefix in X.org
- building with icecream
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Apr 22 2005 coolo@suse.de
- fix build
* Tue Jun 01 2004 hmacht@suse.de
- added # norootforbuild in specfile
* Wed May 19 2004 ro@suse.de
- added return value to non-void functions
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Thu Aug 09 2001 dan@suse.cz
- use bzip instead of gzip
* Thu May 11 2000 nadvornik@suse.cz
- added BuildRoot
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Nov 24 1997 ro@suse.de
- ignore all lines starting with ! or # in rgb.txt
* Sun Jun 01 1997 bs@suse.de
- moved var/X11R6/lib/app-defaults to usr/X11R6/lib/X11/app-defaults