File xbanner.spec of Package xbanner

#
# spec file for package xbanner (Version 1.31)
#
# 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:           xbanner
BuildRequires:  xorg-x11-devel
License:        GPL v2 or later
Group:          Amusements/Toys/Background
AutoReqProv:    on
Version:        1.31
Release:        1038
Summary:        X Window System background writings and images
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.



Authors:
--------
    Amit Margalit <amitm@netvision.net.il>

%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
* Thu Nov 16 2006 anosek@suse.cz
- replaced dangerous gets() function by fgets()
  [#219044] (gets.patch)
* Mon Aug 07 2006 mmarek@suse.cz
- moved from /usr/X11R6 to /usr to build with new Xorg
* Sat May 27 2006 schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Oct 10 2004 schwab@suse.de
- Fix requires.
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Wed Sep 13 2000 vinil@suse.cz
- upgrade to 1.31
- major file relocation
- description fixed
* Wed Jul 19 2000 vinil@suse.cz
- no more requires xpm
* Thu May 04 2000 vinil@suse.cz
- buildroot added
- bugs in demos fixed
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jan 02 1997 maddin@suse.de
  first S.u.S.E. version
  copy all sample files to /usr/X11R6/lib/X11/xbanner
  copy all doc files (including html) to /usr/doc/packages/xbanner
openSUSE Build Service is sponsored by