File xengine.spec of Package xengine

# spec file for package xengine (Version 1.11)
# Copyright (c) 2010 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

# norootforbuild

Name:           xengine
BuildRequires:  xorg-x11 xorg-x11-devel
License:        ISC
Group:          Productivity/Scientific/Physics
AutoReqProv:    on
Summary:        Reciprocating engine for X
Version:        1.11
Release:        1100
Source:         %{name}-%{version}.tar.gz
Patch:          %{name}-%{version}-pi.patch
Patch1:         %{name}-%{version}-warnings-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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

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


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

make "DESTDIR=$RPM_BUILD_ROOT" install

%doc %{_xorg7_mandir}/man1/xengine.1x*