libdisplay-info/libdisplay-info.spec
Troy Dawson 2687cb2f37 Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 08:40:36 -07:00

103 lines
2.7 KiB
RPMSpec

# See https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/149
# for library versioning explanation.
%global sover 1
# Tests currently require exact revision of edid-decode
# https://gitlab.freedesktop.org/emersion/libdisplay-info/-/issues/35
%bcond_with check
Name: libdisplay-info
Version: 0.1.1
Release: 6%{?dist}
Summary: EDID and DisplayID library
# Main license: MIT
# test/data: CC-BY-4.0, MIT (see test/data/README.md).
License: MIT
URL: https://gitlab.freedesktop.org/emersion/libdisplay-info
Source0: %{url}/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz
Source1: %{url}/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz.sig
# 0FDE7BE0E88F5E48: emersion <contact@emersion.fr>
Source2: https://emersion.fr/.well-known/openpgpkey/hu/dj3498u4hyyarh35rkjfnghbjxug6b19#/gpgkey-0FDE7BE0E88F5E48.gpg
BuildRequires: gcc
BuildRequires: gnupg2
BuildRequires: meson >= 0.57
BuildRequires: pkgconfig(hwdata)
%if %{with check}
BuildRequires: edid-decode
%endif
%description
%{summary}.
%package tools
Summary: Command-line tools for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tools
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup
%build
%meson
%meson_build
%install
%meson_install
%if %{with check}
%check
%meson_test
%endif
%files
%license LICENSE
%doc README.md
%{_libdir}/%{name}.so.%{sover}
%{_libdir}/%{name}.so.%{version}
%files tools
%{_bindir}/di-edid-decode
%files devel
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.1.1-6
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.1.1-5
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Feb 16 2023 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.1.1-1
- Initial import (#2170328)