File monitor-edid.spec of Package monitor-edid
%define realname monitor-edid
%define realver 3.0
%define srcext tar.bz2
# turn off the generation of debuginfo rpm (RH9) ??
%global debug_package %{nil}
# Common info
Name: %{realname}
Version: %{realver}
Release: wiz%{?extraver:0.}1
License: GPL
Group: Hardware/Other
URL: http://wiki.mandriva.com/en/Tools/monitor-edid
Summary: Tool for probing and parsing monitor EDID
# Install-time parameters
Requires: perl
# Build-time parameters
BuildRequires: libx86-devel
BuildRoot: %{_tmppath}/%{name}-root
Source: %{realname}-%{realver}%{?extraver}.%{srcext}
%description
Monitor-edid is a tool for probing and parsing Extended display
identification data (EDID) from monitors.
For more information about EDID, see http://en.wikipedia.org/wiki/EDID
# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n %{realname}-%{realver}%{?extraver}
%build
export SUSE_ASNEEDED=0
%{__make} %{?_smp_mflags} CFLAGS="%{optflags}"
%install
%{__make} install DESTDIR=%{buildroot}
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING NEWS README README.cvt
%{_bindir}/*
%{_sbindir}/*
%changelog