File wpaperd.spec of Package wpaperd
#
# spec file for package wpaperd
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: wpaperd
Version: 1.0.1~git66.62af439
Release: 0
Summary: Modern wallpaper manager for Wayland
License: GPL-3.0-or-later
URL: https://github.com/danyspin97/%{name}
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
BuildRequires: cargo-packaging
BuildRequires: rinstall
BuildRequires: scdoc
BuildRequires: pkgconfig
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(wayland-client)
%description
An helper tool that installs software and additional data into the system.
%package bash-completion
Summary: Bash completion for %{name}
Requires: %{name}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
bash command line completion support for %{name}.
%prep
%autosetup -a1 -p1
%build
%{cargo_build}
scdoc < man/%{name}-output.5.scd > man/%{name}-output.5
%install
%define rinstall_install(-) \
%{shrink:\
%{_bindir}/rinstall \
install \
--packaging \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--includedir=%{_includedir} \
--mandir=%{_mandir} \
--systemd-unitsdir=%{_unitdir} \
--yes \
%*
}
%rinstall_install --completions bash
%check
%{cargo_test}
%files
%doc README.md CHANGELOG.md
%license LICENSE.md
%{_bindir}/%{name}
%{_bindir}/wpaperctl
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/wpaperctl.1%{?ext_man}
%{_mandir}/man5/%{name}-output.5%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion/completions/%{name}.bash
%{_datadir}/bash-completion/completions/wpaperctl.bash
%changelog