File cvt12.spec of Package cvt12
#
# spec file for package cvt12
#
# Copyright (c) 2022 kevincs
#
# 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 https://bugs.opensuse.org/
#
Name: cvt12
Version: 1.01
Release: 0
Summary: CVT (Coordinated Video Timings) modeline calculator with CVT v1.2 timings
License: BSD-3-clause
URL: https://github.com/kevinlekiller/cvt_modeline_calculator_12
Source: cvt_modeline_calculator_12-master.zip
BuildRequires: automake
BuildRequires: unzip
Obsoletes: %{name} < %{version}
Provides: %{name} = %{version}
%define __dirname cvt_modeline_calculator_12-master
%description
This is a modified CVT modeline calculator based on cvt
by erich@uruk.org, which is based on GTF modeline calculator by Andy Ritger.
This modified version adds support for CVT v1.2 (VESA-2013-3 v1.2).
Changes:
Add support for CVT v1.2 reduced blanking timings.
Add support for 1000/1001 reducing of refresh rate for better movie support (ie 24hz * 1000 / 1001 = 23.976hz).
Add check for reduce blanking on CVT v1.1 for refresh rates not a multiple of 60hz.
Add checks for bad x y and refresh values.
Display 3 digits after decimal point on CLI output for the commented out part of the xf86 modeline. (ie 23.98hz -> 23.976hz)
Change xf86 modeline printout to be similar to x.org's cvt.
Fix some default timing values on v1.1 to be in line with the Vesa Public Standards CVT Generator.
Various minor changes.
%prep
%setup -q -n %{__dirname}
%build
%make_build
strip -s %{_builddir}/%{__dirname}/cvt12
%install
install -D -m 0755 cvt12 %{buildroot}%{_bindir}/cvt12
%files
%{_bindir}/cvt12
%changelog