File xsnow.spec of Package xsnow

#
# spec file for package xsnow
#
# 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:           xsnow
Version:        1.42
Release:        0
License:        SUSE-Public-Domain
Group:          Amusements/Toys/Graphics
Summary:        A Christmas Animation
URL:            http://www.euronet.nl/~rja/Xsnow/
Source:         xsnow-1.42.tar.gz
Source1:        xsnow.sh
Patch:          xsnow-1.42.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  xorg-x11-devel

%description
A nice animation. Santa Claus drives across the screen, pulled by his
reindeer. It snows and the snow accumulates on top of the windows.

Authors:
--------
    Rick Jansen <rick@sara.nl>

%prep
%setup
%patch
xmkmf -a

%build
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=/usr/bin
make install.man DESTDIR=$RPM_BUILD_ROOT MANDIR=%_mandir/man1
mv $RPM_BUILD_ROOT/usr/bin/xsnow \
  $RPM_BUILD_ROOT/usr/bin/xsnow.bin
install -m 755 $RPM_SOURCE_DIR/xsnow.sh \
  $RPM_BUILD_ROOT/usr/bin/xsnow

%files
%defattr(-,root,root)
%docdir /usr/share/man
%docdir /usr/openwin/man
%doc README
%doc /usr/share/man/man1/xsnow.1x.gz
/usr/bin/xsnow
/usr/bin/xsnow.bin

%changelog
* Wed Dec 27 2006 - sndirsch@suse.de
- fixed kroot path (Bug #230787)
* Sun Jul 23 2006 - sndirsch@suse.de
- fixed build for X.Org 7
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jul 04 2005 - sndirsch@suse.de
- use RPM_OPT_FLAGS
* Wed Jan 19 2005 - sndirsch@suse.de
- xsnow-1.42.diff:
  * fixed "'variable' is used uninitialized" warning (gcc 4)
* Wed Dec 01 2004 - sndirsch@suse.de
- use wrapper to fix the KDE root window problem (Bug #48572)
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Wed Apr 23 2003 - coolo@suse.de
- use BuildRoot
* Tue Feb 04 2003 - fehr@suse.de
- update to version 1.42 for KDE compatibility
* Wed Sep 18 2002 - ro@suse.de
- removed bogus self-provides
* Mon May 29 2000 - fehr@suse.de
- moved content of Makefile.Linux to spec file
* 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