From bdf3a2fd308619756d95fc05f5565a45d5b2be6ecbc7706df6b5d305c5d4b53e Mon Sep 17 00:00:00 2001 From: Enrico Belleri Date: Thu, 27 Feb 2025 09:15:26 +0100 Subject: [PATCH] spec: create subpackage tools, remove cmake dep Signed-off-by: Enrico Belleri --- libdisplay-info.changes | 6 +++++ libdisplay-info.spec | 50 ++++++++++++++++++++++++++++------------- 2 files changed, 40 insertions(+), 16 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..c074d61 100644 --- a/libdisplay-info.spec +++ b/libdisplay-info.spec @@ -24,11 +24,11 @@ Summary: EDID and DisplayID library License: MIT Group: Development/Libraries/C and C++ 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 +Source: https://gitlab.freedesktop.org/emersion/%{name}/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz +Source2: https://gitlab.freedesktop.org/emersion/%{name}/-/releases/%version/downloads/%{name}-%{version}.tar.xz.sig +Source3: %{name}.keyring +BuildRequires: c_compiler +BuildRequires: meson >= 0.57.0 BuildRequires: pkgconfig(hwdata) %description @@ -37,20 +37,33 @@ 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 -n %lname +%package -n %{lname} Summary: EDID and DisplayID library Group: System/Libraries -%description -n %lname +%description -n %{lname} 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. +%package tools +Summary: Command-line tools for %{name} +Requires: %{lname} = %{version} +Provides: 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++ -Requires: %lname = %version +Requires: %{lname} = %{version} %description devel The library provides a set of low- and high-level functions @@ -62,22 +75,27 @@ This package contains headers for the library. %autosetup -p1 %build -%meson --includedir="%_includedir/%name" +%meson %meson_build %install %meson_install -%ldconfig_scriptlets -n %lname +%ldconfig_scriptlets -n %{lname} -%files -n %lname -%_libdir/lib*.so.[0-9]* +%check +%meson_test + +%files -n %{lname} +%{_libdir}/lib*.so.[0-9]* + +%files tools +%{_bindir}/di-edid-decode %files devel -%_bindir/di-edid-decode -%_includedir/%name/ -%_libdir/pkgconfig/*.pc -%_libdir/*.so +%{_includedir}/%{name}/ +%{_libdir}/pkgconfig/*.pc +%{_libdir}/*.so %license LICENSE %changelog -- 2.51.1