1
0

spec: create subpackage tools, remove cmake dep #1

Manually merged
jengelh merged 1 commits from iDesmI/libdisplay-info:master into master 2025-02-27 10:08:00 +01:00
2 changed files with 40 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 27 08:12:11 UTC 2025 - Enrico Belleri <kilgore.trout@idesmi.eu>
- 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 <jengelh@inai.de>

View File

@@ -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