File xless.spec of Package xless

# spec file for package xless (Version 1.7)
# 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

# norootforbuild

Name:           xless
BuildRequires:  xorg-x11 xorg-x11-devel
License:        Any permissive
Group:          Productivity/Text/Utilities
Provides:       xless17 
AutoReqProv:    on
Version:        1.7
Release:        1233
Summary:        Text browser
Source:         xless-1.7.tar.bz2
Patch0:         xless-1.7.diff
Patch1:         xless-1.7-fonts.diff
Patch2:         xless-1.7-bindir.diff
Patch3:         xless-1.7-exit.diff
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
%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

xless 1.7 -- the well-known text browser. Necessary for displaying the
various HOWTOs.

    Dave Glowacki <>

%setup -q

xmkmf -a

install -d -m 755 ${RPM_BUILD_ROOT}/usr/%{_xorg7bin}/
install -d -m 755 ${RPM_BUILD_ROOT}/%{_xorg7_mandir}/man1
install -d -m 755 ${RPM_BUILD_ROOT}/usr/%{_xorg7libshare}/X11/app-defaults
install -m 755 xless ${RPM_BUILD_ROOT}/usr/%{_xorg7bin}/
install -m 644 ${RPM_BUILD_ROOT}/usr/%{_xorg7libshare}/X11/
install -m 644  ${RPM_BUILD_ROOT}/usr/%{_xorg7libshare}/X11/app-defaults/XLess
install -m 644 ${RPM_BUILD_ROOT}/usr/%{_xorg7libshare}/X11/app-defaults/XLess-color
install -m 644 ${RPM_BUILD_ROOT}/%{_xorg7_mandir}/man1/xless.1x

rm -rf ${RPM_BUILD_ROOT}

%docdir %{_xorg7_mandir}
%docdir /usr/openwin/man
%config /usr/%{_xorg7libshare}/X11/app-defaults/XLess
%config /usr/%{_xorg7libshare}/X11/app-defaults/XLess-color
%doc /usr/%{_xorg7libshare}/X11/
%doc %{_xorg7_mandir}/man1/xless.1x.gz

* Thu Aug 03 2006
- fixed wrong install directory for pixmaps
- fixed implicit declaration of exit function (exit.diff)
- don't use icecream, build fails in most cases
* Wed Aug 02 2006
- fixing defines where to find binary vi and lpr (bindir.diff)
* Wed Aug 02 2006
- builds also with new 7.x, detecting prefix in
- building with icecream
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Jun 02 2004
- remove xmore symlink (file present in xorg-x11 now)
* Fri May 07 2004
- added # norootforbuild in specfile
* Fri Jun 13 2003
- /usr/X11R6/lib/X11/app-defaults is part of the filesystem
* Thu Mar 27 2003
- fixed to use iso8859-2 fonts for related locales (fonts.diff)
- bzipped sources
* Wed Sep 18 2002
- removed bogus self-provides
* Wed Jun 07 2000
- sorted
* Tue Apr 25 2000
- buildroot added
* Mon Sep 13 1999
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Mar 03 1999
- don't redeclare strchr
* Fri Sep 04 1998
- catch macro strncpy for glibc
* Sun Feb 16 1997
- add symlink xmore
openSUSE Build Service is sponsored by