%define ver 1.4 %define rel 2sunshine%{?dist} %define commit 418c9e96b24b832615921daa6a0ab58f745fe44c Summary: Test for the existence of an X11 display Name: testdisp Version: %{ver} Release: %{rel} License: GPLv2+ Group: Utilities Source0: https://raw.githubusercontent.com/barsnick/%{name}/%{commit}/%{name}.c Source1: https://raw.githubusercontent.com/barsnick/%{name}/%{commit}/README Source2: https://raw.githubusercontent.com/barsnick/%{name}/%{commit}/LICENSE URL: https://github.com/barsnick/%{name} BuildRequires: gcc BuildRequires: libX11-devel %description testdisp tests for the existence of an X11 display, i.e. whether it is defined and can properly be used. %prep cp -p %{SOURCE1} . cp -p %{SOURCE2} . %build ${CC:-gcc} %{optflags} %{SOURCE0} -o %{name} -lX11 %install mkdir -p %{buildroot}%{_bindir} install %{name} %{buildroot}%{_bindir} %files %doc README %{!?_licensedir:%global license %%doc} %license LICENSE %{_bindir}/%{name} %changelog * Sun Jan 01 2023 Moritz Barsnick 1.4-2sunshine - update to latest commit - package LICENSE and new README * Sun Jan 01 2023 Moritz Barsnick 1.4-1sunshine - initial RPM