File libdisplay-info.spec of Package A_15.x-libdisplay-info

84
 
1
#
2
# spec file for package libdisplay-info
3
#
4
# Copyright (c) 2023 SUSE LLC
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16
#
17
18
19
Name:           libdisplay-info
20
%define lname libdisplay-info1
21
Version:        0.1.1
22
Release:        0
23
Summary:        EDID and DisplayID library
24
License:        MIT
25
Group:          Development/Libraries/C and C++
26
URL:            https://gitlab.freedesktop.org/emersion/libdisplay-info
27
Source:         https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/%version/downloads/libdisplay-info-%version.tar.xz
28
Source2:        https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/%version/downloads/libdisplay-info-%version.tar.xz.sig
29
BuildRequires:  cmake
30
BuildRequires:  meson
31
BuildRequires:  pkgconfig(hwdata)
32
33
%description
34
libdisplay-info is an EDID and DisplayID library. It provides a
35
low-level API exposing all of the details of these formats, plus a
36
high-level API (of opinionated functions) which abstracts these
37
details for common operations.
38
39
%package -n %lname
40
Summary:        EDID and DisplayID library
41
Group:          System/Libraries
42
43
%description -n %lname
44
libdisplay-info is an EDID and DisplayID library. It provides a
45
low-level API exposing all of the details of these formats, plus a
46
high-level API (of opinionated functions) which abstracts these
47
details for common operations.
48
49
%package devel
50
Summary:        Header files for libdisplay-info, an EDID library
51
Group:          Development/Libraries/C and C++
52
Requires:       %lname = %version
53
54
%description devel
55
The library provides a set of low- and high-level functions
56
for EDID and DisplayID.
57
58
This package contains headers for the library.
59
60
%prep
61
%autosetup -p1
62
63
%build
64
%meson --includedir="%_includedir/%name"
65
%meson_build
66
67
%install
68
%meson_install
69
70
%post   -n %lname -p /sbin/ldconfig
71
%postun -n %lname -p /sbin/ldconfig
72
73
%files -n %lname
74
%_libdir/lib*.so.[0-9]*
75
76
%files devel
77
%_bindir/di-edid-decode
78
%_includedir/%name/
79
%_libdir/pkgconfig/*.pc
80
%_libdir/*.so
81
%license LICENSE
82
83
%changelog
84