File libxcvt.spec of Package libxcvt-0.1.3-12.2

#
# spec file for package libxcvt
#
# Copyright (c) 2024 SUSE LLC
#
# 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:           libxcvt
%define lname   libxcvt0
Version:        0.1.3
Release:        12.2
Summary:        CVT standard timing modeline generator
License:        MIT
Group:          Development/Libraries/C and C++
URL:            https://gitlab.freedesktop.org/xorg/lib/libxcvt
Source:         https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.xz
BuildRequires:  meson

%description
libxcvt is a library providing a standalone version of the X server
implementation of the VESA Coordinated Video Timings (CVT) standard
timing modelines generator. libxcvt also provides a standalone
version of the command line tool cvt copied from the Xorg
implementation and is meant to be a direct replacement to the version
provided by the Xorg server.

%package -n %lname
Summary:        CVT standard timing modeline generator
Group:          System/Libraries

%description -n %lname
libxcvt is a library providing a standalone version of the X server
implementation of the VESA Coordinated Video Timings (CVT) standard
timing modelines generator.

%package devel
Summary:        Development files for the CVT library
Group:          Development/Libraries/C and C++
Requires:       %lname = %version

%description devel
libxcvt is a library providing a standalone version of the X server
implementation of the VESA Coordinated Video Timings (CVT) standard
timing modelines generator.

This package contains the development headers for the library found
in %lname.

%prep
%autosetup -p1

%build
%{meson}
%{meson_build}

%install
%{meson_install}

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files
%doc COPYING README.md
%{_bindir}/cvt
%{_mandir}/man1/cvt.1.gz

%files -n %lname
%_libdir/libxcvt.so.0*

%files devel
%_includedir/libxcvt/
%_libdir/libxcvt.so
%_libdir/pkgconfig/libxcvt.pc

%changelog
* Sat Dec 14 2024 Stefan Dirsch <sndirsch@suse.com>
- Update to version 0.1.3
  * cvt: fix -Wmissing-prototypes warning for cvt_is_standard
  * ci: Update CI and enable static analysis
  * README: remove double dollar sign
  * Fix hsync_start computation
  * Fix too-small back porch at very low resolutions
  * Rename constant to CVT_MIN_V_PORCH_RND
* Tue Jul 19 2022 Stefan Dirsch <sndirsch@suse.com>
- Update to version 0.1.2
  * make xrandr report 1366x768 instead of 1360x768
  * meson: Add initial darwin_versions
* Thu Oct 28 2021 Bjørn Lie <bjorn.lie@gmail.com>
- Use full URL for source tarball.
* Thu Oct 28 2021 Jan Engelhardt <jengelh@inai.de>
- Update descriptions.
* Thu Oct 28 2021 Stefan Dirsch <sndirsch@suse.com>
- moved cvt binary and cvt manual page to main package, since it
  violates the SLPP to have non-library files in a library package
* Wed Oct 27 2021 Stefan Dirsch <sndirsch@suse.com>
- created package (needed since xorg-server 21.1.0)
openSUSE Build Service is sponsored by