centpkg import

Resolves: RHELPLAN-169789
This commit is contained in:
Sebastian Wick 2024-05-02 22:34:28 +02:00
parent ca2e0a0e38
commit 8f96c9d045
3 changed files with 101 additions and 0 deletions

3
.gitignore vendored
View File

@ -0,0 +1,3 @@
/gpgkey-0FDE7BE0E88F5E48.gpg
/libdisplay-info-0.1.1.tar.xz
/libdisplay-info-0.1.1.tar.xz.sig

95
libdisplay-info.spec Normal file
View File

@ -0,0 +1,95 @@
# 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: 4%{?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
* 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)

3
sources Normal file
View File

@ -0,0 +1,3 @@
SHA512 (gpgkey-0FDE7BE0E88F5E48.gpg) = 51a43446ffaab497b92f1591cd5e2777f30a05bf297290f681f9ee3a4545d92be8540fb83c708ca80142f120eca076fef03e1e98130efa7af534bec005e55168
SHA512 (libdisplay-info-0.1.1.tar.xz) = 95c199211504af96816d92ec8e531bea993dd5d4a2935f1977f1e665b924b1628df25b81cd20da29543d008a8e6d757bdbceb09c74e031c0c213d60be9a10d7a
SHA512 (libdisplay-info-0.1.1.tar.xz.sig) = 339f915a93e13f9d961b9571d0583d35b214539a0bdd10c454ca1ff9d5ab31298d46b8be92fe79918873710572e3a8606a1f8d782a4c73e08a6afadfdaf79057