File walker.spec of Package walker

# spec file for package walker

Name:           walker
Version:        0.13.26
Release:        0
Summary:        Walker - A lightweight application launcher
License:        MIT
Group:          System/GUI/Other
URL:            https://github.com/abenz1267/walker
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  go >= 1.16
BuildRequires:  gtk4-devel
BuildRequires:  gtk4-layer-shell-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  libvips-devel
BuildRequires:  libgraphene-devel
Requires:       gtk4
Requires:       libgtk4-layer-shell0
Requires:       gobject-introspection
Requires:       libvips42
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Walker is a lightweight application launcher built with GTK4 and Go. It provides a fast and minimalistic interface for launching applications.

%prep
%autosetup -a 1

%build
%ifarch x86_64 aarch64
# Build from source
cd cmd
%{_bindir}/go build -mod=vendor -x -o walker
%endif

%install
install -Dm755 cmd/walker %{buildroot}%{_bindir}/walker

%files
%defattr(-,root,root)
%{_bindir}/walker
%doc README.md
%license LICENSE

%changelog
%autochangelog
openSUSE Build Service is sponsored by