File xjig.spec of Package xjig

#
# spec file for package xjig (Version 2.4)
#
# Copyright (c) 2003 SuSE Linux AG, 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://www.suse.de/feedback/
#

# norootforbuild
# usedforbuild    aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libstdc++ libxcrypt m4 make man mktemp modutils ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-devel pam-modules patch permissions popt ps rcs readline sed sendmail shadow strace syslogd sysvinit tar texinfo timezone unzip util-linux vim zlib zlib-devel XFree86-devel XFree86-libs autoconf automake binutils cracklib fontconfig fontconfig-devel gcc gcc-c++ gdbm gettext libstdc++-devel libtool perl rpm

Name:         xjig
BuildRequires: gcc-c++ xorg-x11-devel
License:      distributable
Group:        Amusements/Games/Board/Puzzle
Autoreqprov:  on
Version:      2.4
Release:      455
Summary:      jigsaw puzzle
URL:          ftp://ftp.ac-grenoble.fr/ge/educational_games/
Source:       xjig-%{version}.tar.bz2
Patch:        xjig-%{version}.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
XJig is a puzzle, that tries to replicate a jigsaw puzzle on the screen
as close as possible. Gif-images can be loaded and sliced into pieces
and as in every jigsaw puzzle, the goal is to set the parts together
again.



Authors:
--------
    Helmut Hoenig <Helmut.Hoenig@hub.de>

%prep
%setup
%patch

%build
xmkmf
make depend
make xjig

%install
rm -rf $RPM_BUILD_ROOT
make \
    DESTDIR=$RPM_BUILD_ROOT \
    BINDIR=%_prefix/games \
    MANPATH=%_mandir \
    install install.man
install -m 755 -d $RPM_BUILD_ROOT/%_prefix/share/games/xjig
install -m 644 tina.gif $RPM_BUILD_ROOT/%_prefix/share/games/xjig/

%files
%defattr(-,root,root)
%doc COPYRIGHT README
%_prefix/games/xjig
%_mandir/man1/*
%_prefix/share/games/xjig

%clean
rm -rf $RPM_BUILD_ROOT

%changelog -n xjig
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Oct 17 2003 - mcihar@suse.cz
- fix path to default image
* Thu Oct 16 2003 - mcihar@suse.cz
- do not build as root
- do not install to /usr/X11R6
* Thu Oct 25 2001 - cihlar@suse.cz
- initial version 2.4
openSUSE Build Service is sponsored by