File wzmach.spec of Package wzmach-noudev
Name: wzmach-noudev
Version: 1.2.0
Release: 1%{?dist}
Summary: Btrfs automated snapshot manager.
License: Apache-2.0
URL: https://github.com/maurges/wzmach
Source0: wzmach-%{version}.tar
BuildRequires: cargo
BuildRequires: dbus-1-devel
BuildRequires: libinput-devel
Requires: bash >= 4.0
Requires: dbus-1
Requires: dbus-1-common
Requires: dbus-1-tools
Requires: libdbus-1
Recommends: dbus-1-x11
Requires: libinput10
Requires: libdbus-1
%description
Yet another touchpad gesture engine. Supporting X and wayland.
%prep
%setup -n wzmach-%{version}
%build
cargo build --release --manifest-path ./Cargo.toml --offline --all-targets --all-features -v
%install
install -d -m 755 %{buildroot}%{_datadir}/applications
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/wzmach
install -p -m 6755 target/release/wzmach %{buildroot}%{_bindir}/wzmach
install -p -m 644 config.ron %{buildroot}%{_sysconfdir}/wzmach/config.ron
install -p -m 644 wzmach.desktop %{buildroot}%{_datadir}/applications/wzmach.desktop
%files
%dir %{_sysconfdir}/wzmach
%{_bindir}/wzmach
%{_datadir}/applications/wzmach.desktop
%{_sysconfdir}/wzmach/config.ron
%changelog