File xengine.spec of Package xengine

#
# spec file for package xengine (Version 1.11)
#
# 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:           xengine
BuildRequires:  xorg-x11 xorg-x11-devel
License:        Other License(s), see package
Group:          Productivity/Scientific/Physics
Autoreqprov:    on
Summary:        Reciprocating engine for X
Version:        1.11
Release:        896
Source:         %{name}-%{version}.tar.gz
Patch:          %{name}-%{version}-pi.patch
Patch1:         %{name}-%{version}-warnings-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
#%define _xorg7_config /usr/share/X11/config #use libshare macro
%define _xorg7_prefix /usr
%else
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
%define _xorg7_prefix /usr/X11R6
%endif

%description
Xengine displays a reciprocating engine in a window and is a benchmark
for X.



Authors:
--------
    Kazuhiko Shutoh <shutoh@isl.yamama.co.jp>

%prep
%setup
%patch
%patch1

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

%install
make "DESTDIR=$RPM_BUILD_ROOT" install install.man

%files
%defattr(-,root,root)
/usr/%{_xorg7bin}/xengine
%doc %{_xorg7_mandir}/man1/xengine.1x*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog -n xengine
* Tue Aug 08 2006 - lmichnovic@suse.cz
- compiling with RPM_OPT_FLAGS
- patch *.dif renamed to xengine-1.11-pi.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
* Tue May 04 2004 - postadal@suse.cz
- fixed gcc warnings
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Tue Nov 21 2000 - cihlar@suse.cz
- fixed copyright
- clean up spec file
* Fri May 19 2000 - cihlar@suse.cz
- Group sorted
* Tue Apr 11 2000 - cihlar@suse.cz
- added BuildRoot
* Wed Jan 26 2000 - ro@suse.de
- update to 1.11
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Sep 09 1999 - bs@suse.de
- fixed call of Check at the end of %%install section
* Fri Sep 12 1997 - ro@suse.de
- first suse version