File xbanner.spec of Package xbanner

#
# spec file for package xbanner
#
# Copyright (c) 2012 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/
#


Name:           xbanner
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
Version:        1.31
Release:        0
Summary:        X Window System background writings and images
License:        GPL-2.0+
Group:          Amusements/Toys/Background
Url:            http://www.hijinks.com/~spade/linux/XBanner/
Source:         XBanner%{version}.tar.bz2
Patch:          XBanner%{version}.dif
Patch1:         xbanner-%{version}-gets.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
How about your company's name in the background of the login screen? Or
your company's logo? It will work with xbanner which is designed for
use with, for example, XDM login screens.

Many example configurations may be found in /usr/share/xbanner and its
subdirectories.

Documentation lies in /usr/share/doc/packages/xbanner. There you can
find an HTML version of the documents.

%prep
%setup -n XBanner%{version}
%patch
%patch1

%build
xmkmf -a
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
#
# examples
#
BINDIR=../../../bin
DEMODIR=$RPM_BUILD_ROOT/usr/share/xbanner
APPDEF=$RPM_BUILD_ROOT/usr/share/X11/app-defaults/
install -d $DEMODIR
(cd samples/ && cp -a * $DEMODIR)
(cd $DEMODIR/Demo
cat Demo.bash | sed -e "s:\.\./\.::g" >Demo
rm Demo.bash
ln -s $BINDIR/xbanner
ln -s $BINDIR/freetemp
cd ..
rm README.Demo XBanner.sample
install -d $APPDEF
mv XBanner.ad $APPDEF/XBanner
)
#
# docs
#
DOCDIR=$RPM_BUILD_ROOT/$RPM_DOC_DIR/xbanner
install -d $DOCDIR
install -m 644 *.xpm $DEMODIR
install -m 644 docs/{C*,*.html,*.gif} $DOCDIR

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/share/xbanner/
%doc %{_docdir}/xbanner/
/usr/bin/*
%config /usr/share/X11/app-defaults/XBanner

%changelog