File xfishtank.spec of Package xfishtank

#
# spec file for package xfishtank (Version 2.2)
#
# 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:           xfishtank
BuildRequires:  xorg-x11 xorg-x11-devel
License:        GPL
Group:          Amusements/Toys/Background
Provides:       fishtank
Obsoletes:      fishtank
Autoreqprov:    on
Version:        2.2
Release:        743
Summary:        An aquarium in the root window
Source:         %{name}-%{version}.tar.bz2
Source1:        README.KDE
Patch:          %{name}-%{version}-orig.patch
Patch1:         %{name}-%{version}-implicit_decl.patch
Patch2:         %{name}-%{version}-random_retval.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%else
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%endif

%description
A nice little aquarium with funny fish -- yet another background
screen.



Authors:
--------
    Patrick J. Naughton <naughton@wind.sun.com>
    Eric Bina <ebina@ncsa.uiuc.edu>

%prep
%setup -n %{name}-%{version}
%patch
%patch1
%patch2
install -m 0644 %{S:1} .

%build
xmkmf -a
make %{?jobs:-j%jobs} CCOPTIONS="$RPM_OPT_FLAGS"

%install
make DESTDIR="$RPM_BUILD_ROOT" install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README*
/usr/%{_xorg7bin}/xfishtank

%changelog -n xfishtank
* Tue Aug 08 2006 - lmichnovic@suse.cz
- compiling with RPM_OPT_FLAGS
- fixed non void functions (random_retval.patch)
* 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
* Mon Dec 19 2005 - lmichnovic@suse.cz
- added missing include (implicit_decl.patch)
- repacked tarball: renamed xfishtank-2.2.orig to xfishtank-2.2, because ".orig" is not allowed string
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Tue Dec 18 2001 - vinil@suse.cz
- README.KDE added
* Wed Jun 20 2001 - ro@suse.de
- use ComplexProgramTargetNoMan
* Wed Nov 29 2000 - vinil@suse.cz
- renamed from fishtank to xfishtank
- source bzip2ed
* Tue Jun 20 2000 - schwab@suse.de
- Fix missing declarations.
* Thu May 25 2000 - vinil@suse.cz
- sorted in group
* Fri Apr 07 2000 - vinil@suse.cz
- buildroot added
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Dec 09 1998 - ro@suse.de
- update to 2.2 to fix segfault
openSUSE Build Service is sponsored by