File hyper8.spec of Package hyper8
#
# spec file for package hyper8
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 edogawa@aon.at
#
# 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/
#
%global uuid com.codeberg.simonrepp.hyper8
Name: hyper8
Version: 0.18.0
Release: 0
Summary: A static site generator for video
License: AGPL-3.0-or-later and OFL-1.1 and CC0-1.0 and CC-BY-4.0
URL: https://codeberg.org/simonrepp/hyper8
Source: %{name}-%{version}.tar.xz
Source1: vendor.tar.zst
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(libsoup-3.0)
BuildRequires: pkgconfig(javascriptcoregtk-4.1)
BuildRequires: rust
ExclusiveArch: %{rust_tier1_arches}
BuildRequires: cargo-packaging
%description
Hyper 8 lets you create video sites - from single videos to playlists to entire
video archives. Use the graphical user interface to build and deploy your site,
or do it all from your text editor and terminal, or both. Hyper 8 generates
fast, maintenance-free, static sites, compatible with every webhost - no
database, no php required.
%prep
%autosetup -a1
%build
%install
%if 0%{?suse_version} > 1600
%{cargo_install -p cli}
# %%{cargo_install -p core}
%{cargo_install -p desktop}
%{cargo_install -p docs}
# %%{cargo_install -p icons}
# %%{cargo_install -p translations}
# %%{cargo_install -p version}
# %%{cargo_install -p web}
%else
%{cargo_install -p cli} --locked
%{cargo_install -p desktop} --locked
%{cargo_install -p docs} --locked
%endif
%if %{with check}
%check
%cargo_test
%endif
%files
%license LICENSES/*
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-docs
%doc README.md
%doc CHANGELOG.md
%changelog