From 713673c5cbd8c2c62fadcdef2acc7873ba2366b2 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 20 Apr 2022 11:28:35 +0200 Subject: [PATCH 1/1] new --- wbg.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 wbg.spec diff --git a/wbg.spec b/wbg.spec new file mode 100644 index 0000000..09f14de --- /dev/null +++ b/wbg.spec @@ -0,0 +1,51 @@ +Summary: Super simple wallpaper application for Wayland compositors +Name: wbg +Version: 1.0.2 +Release: 1 +License: MIT +Group: Applications +Source0: https://codeberg.org/dnkl/wbg/archive/%{version}.tar.gz +# Source0-md5: 776810503b3321ab85ac3a8623ae5a10 +URL: https://codeberg.org/dnkl/wbg/ +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: meson >= 0.53.0 +BuildRequires: ninja +BuildRequires: pixman-devel +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.736 +BuildRequires: tllist-devel >= 1.0.1 +BuildRequires: wayland-devel +BuildRequires: wayland-protocols +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Super simple wallpaper application for Wayland compositors +implementing the layer-shell protocol. + +Wbg takes a single command line argument: a path to an image file. +This image is displayed scaled-to-fit on all monitors. + +More display options, and/or the ability to set a per-monitor +wallpaper may be added in the future. + +%prep +%setup -q -n %{name} + +%build +%meson build + +%ninja_build -C build + +%install +rm -rf $RPM_BUILD_ROOT + +%ninja_install -C build + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.md +%attr(755,root,root) %{_bindir}/wbg -- 2.44.0