File radeontool.spec of Package radeontool
#
# spec file for package radeontool (Version 1.5)
#
# 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: radeontool
BuildRequires: pciutils pciutils-devel
Version: 1.5
Release: 22
Summary: A Tool To Change Settings On radeon Graphics Cards.
License: X11/MIT
URL: http://fdd.com/software/radeon/
Group: System/Console
Source: %{name}-%{version}.tar.gz
Patch1: %{name}-%{version}.diff
Patch2: radeontool-get-rid-of-lspci.diff
Patch3: radeontool-fix-option-handling.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: pciutils
%description
A tool to change settings on radeon graphics cards. Especially useful
on some notebooks to switch off unused parts of the card to save power.
Some machines need this to switch off the backlight on suspend.
Authors:
--------
Frederick Dean <software@fdd.com>
%prep
%setup -q
%patch1
%patch2
%patch3
%build
export CFLAGS="$RPM_OPT_FLAGS"
gcc $CFLAGS radeontool.c -o radeontool -lpci -lz
%install
mkdir -p $RPM_BUILD_ROOT/usr/sbin
cp radeontool $RPM_BUILD_ROOT/usr/sbin/
chmod 555 $RPM_BUILD_ROOT/usr/sbin/radeontool
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root)
/usr/sbin/radeontool
%doc CHANGES
%doc lightwatch.pl
%changelog -n radeontool
* Mon Oct 16 2006 - ro@suse.de
- fix build (link against libz)
* Wed Mar 08 2006 - seife@suse.de
- Use libpci instead of "lspci" output parsing, check if the found
ATI chip is actually a VGA device (class 0x0300).
This prevents us from accidentally poking around in other ATI
chips.
- Fix --skip option
- Fix segfault with "--debug" or "--skip" without further options
* Mon Feb 20 2006 - schwab@suse.de
- Fix use of volatile.
- Remove use of kernel header.
* Sun Feb 19 2006 - seife@suse.de
- initial package submission, version 1.5