File fynedesk.spec of Package fynedesk
#
# spec file for package fynedesk
#
# Copyright (c) 2025 mantarimay
#
# 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: fynedesk
Version: 0.4.0
Release: 0
Summary: A desktop environment for Linux/Unix using Fyne
License: BSD-3-Clause
URL: https://github.com/FyshOS/fynedesk
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: Mesa-libGL-devel
BuildRequires: golang-packaging
BuildRequires: libX11-devel
BuildRequires: libXcursor-devel
BuildRequires: libXi-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
BuildRequires: libXxf86vm-devel
BuildRequires: zstd
%description
FyneDesk is an easy to use Linux/Unix desktop environment
following material design. It is built using the Fyne toolkit, Go language
and is designed to be easy to use as well as easy to develop.
%prep
%autosetup -p1 -a1
%build
go build \
-mod=vendor \
-buildmode=pie \
./cmd/fynedesk_runner
go build \
-mod=vendor \
-buildmode=pie \
./cmd/fynedesk
%install
install -Dm0755 %{name} -t %{buildroot}%{_bindir}
install -Dm0755 %{name}_runner -t %{buildroot}%{_bindir}
install -Dm0755 %{name}.desktop -t %{buildroot}%{_datadir}/xsessions/fynedesk.desktop
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_bindir}/%{name}_runner
%{_datadir}/xsessions/fynedesk.desktop
%changelog