Blame wl-mirror.spec

cdcbb71
Name:           wl-mirror
355f53e
Version:        0.16.3
cdcbb71
Release:        %autorelease
cdcbb71
Summary:        Simple Wayland output mirror client
cdcbb71
247b4be
License:        GPL-3.0-or-later
cdcbb71
URL:            https://github.com/Ferdi265/%{name}
cdcbb71
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
247b4be
Source1:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
247b4be
# Ferdinand Bachmann <ferdinand.bachmann@yrlf.at> at keys.openpgp.org
247b4be
Source2:        gpgkey-BC1D9BD570235175.asc
cdcbb71
cdcbb71
BuildRequires:  cmake
cdcbb71
BuildRequires:  gcc
247b4be
BuildRequires:  gnupg2
5b2ca16
BuildRequires:  pkgconfig(egl)
5b2ca16
BuildRequires:  pkgconfig(glesv2)
5b2ca16
BuildRequires:  pkgconfig(wayland-client)
5b2ca16
BuildRequires:  pkgconfig(wayland-egl)
4f6c6f5
BuildRequires:  pkgconfig(wayland-scanner)
4f6c6f5
BuildRequires:  pkgconfig(scdoc)
6b2f414
BuildRequires:  wayland-protocols-devel >= 1.31
cdcbb71
cdcbb71
# wlr-protocols may have different licenses, but it does not affect
cdcbb71
# the generated code or the binary file license
59a4047
Provides:       bundled(wlr-protocols) = 0^20220905g4264185
cdcbb71
cdcbb71
%description
cdcbb71
Simple output mirror client for Wlroots-based compositors.
cdcbb71
cdcbb71
wl-mirror attempts to provide a solution to sway's lack of output
cdcbb71
mirroring by mirroring an output onto a client surface.
cdcbb71
cdcbb71
%prep
247b4be
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
cdcbb71
%autosetup
cdcbb71
# remove bundled wayland-protocols, just in case
cdcbb71
rm -rf proto/wayland-protocols
cdcbb71
cdcbb71
cdcbb71
%build
cdcbb71
%cmake \
765416b
    -DFORCE_SYSTEM_WL_PROTOCOLS:BOOL=ON \
b25bccf
    -DINSTALL_DOCUMENTATION:BOOL=ON \
b25bccf
    -DINSTALL_EXAMPLE_SCRIPTS:BOOL=ON
cdcbb71
%cmake_build
cdcbb71
cdcbb71
cdcbb71
%install
cdcbb71
%cmake_install
cdcbb71
cdcbb71
cdcbb71
%files
cdcbb71
%license LICENSE
cdcbb71
%doc README.md
b25bccf
%{_bindir}/wl-mirror
b25bccf
%{_bindir}/wl-present
b25bccf
%{_mandir}/man1/wl-mirror.1*
b25bccf
%{_mandir}/man1/wl-present.1*
cdcbb71
cdcbb71
cdcbb71
%changelog
cdcbb71
%autochangelog