# # spec file for package snapx, and snapx-ui # # Copyright (c) 2024 Brycen Granville # # 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://github.com/BrycensRanch/SnapX/issues # This spec requires internet access! This is only meant to be built on Fedora COPR at the moment! %global version 0.1.0 %bcond check 0 Name: snapx Version: %{version} Release: 7%{?dist} Summary: Screenshot tool that handles images, text, and video. License: GPL-3.0-or-later URL: https://github.com/BrycensRanch/SnapX Source: %{url}/archive/refs/heads/develop.tar.gz BuildRequires: (dotnet-sdk-aot-9.0 OR dotnet-sdk-9.0) Recommends: /usr/bin/ffmpeg # Generic Avalonia Dependencies Requires: libcurl, fontconfig, freetype, openssl, glibc, libicu, at, sudo, libXrandr, libxcb, dbus # Required for opening browser tabs across Linux desktops Requires: xdg-utils # .NET architecture support is rather lacking. ExclusiveArch: x86_64 aarch64 # .NET is not supported by either of these. %define _debugsource_template %{nil} %global debug_package %{nil} %description This is a port of the original ShareX application to Linux. It is not an official release and is not affiliated with the original ShareX project. Specifically, it is the CLI tool. %package ui Summary: SnapX Avalonia-based UI Requires: snapx Requires: (vlc-libs or pkgconfig(libvlc) or vlc-devel) %description ui This is a port of the original ShareX application to Linux. It is not an official release and is not affiliated with the original ShareX project. SnapX but with Avalonia. Works best on X11. %prep %autosetup -n SnapX-develop %build # Setup the correct compilation flags for the environment # Not all distributions do this automatically %if 0%{?fedora} # Do nothing, since Fedora 33 the build flags are already set %else %set_build_flags %endif export PATH=$PATH:/usr/local/bin export VERSION=%{version} ./build.sh --configuration Release %check Output/snapx/snapx --version %install ./build.sh install --prefix %{_prefix} --lib-dir %{_libdir} --dest-dir %{buildroot} --skip compile %files %{_bindir}/%{name} %{_libdir}/%{name} %{_datadir}/SnapX %license LICENSE.md %files ui %{_bindir}/%{name}-ui %license LICENSE.md %if 0%{?fedora} %changelog %autochangelog %else %changelog * Thu Nov 18 2024 Brycen G 0.0.0-1 - Initial package %endif