File read-edid.spec of Package read-edid

#
# spec file for package read-edid
#
# Copyright (c) 2012-2015 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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/
#


Name:           read-edid
Version:        3.0.2
Release:        0
License:        BSD-3-Clause
Summary:        Tool for reading EDID information 
Url:            http://polypux.org/projects/read-edid/
Group:          System/X11/Utilities
Source0:        http://polypux.org/projects/read-edid/read-edid-3.0.2.tar.gz
#PATCH-FIX-OPENSUSE read-edid-fix-cmakelists.patch malcolmlewis@opensuse.org -- Fix renamed doc file and doc install path.
Patch0:         read-edid-fix-cmakelists.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libx86-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A pair of tools (originally by John Fremlin) for reading the EDID from a monitor.
It should work with most monitors made since 1996 (except for newer ones with
256-byte EDID's - WiP), assuming the video card supports the standard read commands
(most do).

- get-edid, which gets the raw edid information from the monitor.
- parse-edid, which turns the raw binary information into an
  XF86Config-compatible monitor section.

%prep
%setup -q
%patch0 -p1

%build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
make

%install
%makeinstall

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README
%{_bindir}/get-edid
%{_bindir}/parse-edid
%{_mandir}/man1/get-edid.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by