File testgart.spec of Package testgart

#
# spec file for package testgart (Version 0.1)
#
# Copyright (c) 2009 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           testgart
License:        GPL v2 or later
Group:          System/Kernel
Provides:       agpgart
Obsoletes:      agpgart
AutoReqProv:    on
Summary:        Program for Testing AGPGART Support
Version:        0.1
Release:        326
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         testgart.tar.bz2
Patch:          testgart.diff
Patch1:         testgart-offset.diff
Patch2:         testgart-buildfix.diff

%description
With 'testgart', you can check if your machine has agpgart support.



Authors:
--------
    Dave Jones <davej@suse.de>

%prep
%setup -n testgart
%patch
%patch1 -p1
%patch2

%build
gcc -o testgart $RPM_OPT_FLAGS testgart.c

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/sbin 
install -m 755 testgart $RPM_BUILD_ROOT/usr/sbin

%files -n testgart
%defattr(-,root,root)
/usr/sbin/testgart

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Aug 06 2004 sndirsch@suse.de
- testgart-buildfix.diff:
  * fixes build on AMD64 now (Bug #43531)
* Fri Aug 06 2004 sndirsch@suse.de
- testgart-buildfix.diff:
  * fixed implicit declaration warnings
* Tue May 11 2004 sndirsch@suse.de
- testgart-offset.diff:
  * The first MB in the aperture is reserved for the builtin
  graphic system. Changing it to do the tests on 2MB+.
  (see also Bug #40150)
* Fri Apr 16 2004 sndirsch@suse.de
- fixed build (serious compiler warnings)
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Mon Sep 29 2003 sndirsch@suse.de
- fixed build for ppc/ia64
* Wed Oct 30 2002 sndirsch@suse.de
- renamed agpgart --> testgart
- latest sources of Dave Jones
* Tue Jun 06 2000 sndirsch@suse.de
- removed subpackage km_agp, as there is a new patch against 2.2.X
  available
* Mon May 15 2000 sndirsch@suse.de
- created subpackage km_agp for building a kernel specific agpgart
  module
* Fri May 05 2000 sndirsch@suse.de
- created package
openSUSE Build Service is sponsored by