From e6ace170247b966f3d0da301363a69f683e5dcaa205627635cae605376e7af4f Mon Sep 17 00:00:00 2001 From: Enrico Belleri Date: Thu, 27 Feb 2025 09:15:26 +0100 Subject: [PATCH] Create subpackage "tools", remove cmake dep --- libdisplay-info.changes | 6 ++++++ libdisplay-info.spec | 26 ++++++++++++++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/libdisplay-info.changes b/libdisplay-info.changes index 0958a5f..d47f4b5 100644 --- a/libdisplay-info.changes +++ b/libdisplay-info.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 27 08:12:11 UTC 2025 - Enrico Belleri + +- Create package libdisplay-info-tools for di-edid-decode +- Remode BuildRequires cmake in favour of c_compiler + ------------------------------------------------------------------- Thu Jun 20 18:05:25 UTC 2024 - Jan Engelhardt diff --git a/libdisplay-info.spec b/libdisplay-info.spec index 57457cf..d605c15 100644 --- a/libdisplay-info.spec +++ b/libdisplay-info.spec @@ -1,7 +1,7 @@ # # spec file for package libdisplay-info # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,8 +27,8 @@ URL: https://gitlab.freedesktop.org/emersion/libdisplay-info Source: https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/%version/downloads/libdisplay-info-%version.tar.xz Source2: https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/%version/downloads/libdisplay-info-%version.tar.xz.sig Source3: %name.keyring -BuildRequires: cmake -BuildRequires: meson +BuildRequires: c_compiler +BuildRequires: meson >= 0.57.0 BuildRequires: pkgconfig(hwdata) %description @@ -47,6 +47,19 @@ low-level API exposing all of the details of these formats, plus a high-level API (of opinionated functions) which abstracts these details for common operations. +%package tools +Summary: Command-line tools for %name +Requires: %lname = %version +Provides: %name-devel:%_bindir/di-edid-decode + +%description tools +libdisplay-info is an EDID and DisplayID library. It provides a +low-level API exposing all of the details of these formats, plus a +high-level API (of opinionated functions) which abstracts these +details for common operations. + +This package contains a tool to parse EDID. + %package devel Summary: Header files for libdisplay-info, an EDID library Group: Development/Libraries/C and C++ @@ -70,11 +83,16 @@ This package contains headers for the library. %ldconfig_scriptlets -n %lname +%check +%meson_test + %files -n %lname %_libdir/lib*.so.[0-9]* -%files devel +%files tools %_bindir/di-edid-decode + +%files devel %_includedir/%name/ %_libdir/pkgconfig/*.pc %_libdir/*.so