File faircamp.spec of Package faircamp
#
# spec file for package faircamp
#
# 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.faircamp
Name: faircamp
Version: 1.2.0
Release: 0
Summary: A self-hostable, statically generated bandcamp alternative
License: AGPL-3.0-or-later, CC0-1.0, OFL-1.1
URL: https://codeberg.org/simonrepp/faircamp
Source: %{name}-%{version}.tar.xz
Source1: vendor.tar.zst
BuildRequires: pkgconfig
BuildRequires: rust >= 1.60
BuildRequires: ffmpeg
BuildRequires: pkgconfig(opus)
%if 0%{?suse_version} > 1600
BuildRequires: pkgconfig(vips)
%endif
ExclusiveArch: %{rust_tier1_arches}
BuildRequires: cargo-packaging
%description
Faircamp is a static site generator for audio producers.
It takes a directory on your disk - your Catalog - and
from it produces a fancy-looking (and technically simple and
completely static) website, which presents your music in a way
similar to how popular commercial service bandcamp does it.
You can upload the files faircamp generates to any webspace -
no database and no programming language support (PHP or such)
is required. If your webspace supports SSH access, faircamp
can be configured to upload your website for you automatically,
otherwise you can use FTP or whichever means you prefer to do
that manually.
%prep
%autosetup -a1
%build
%install
%if 0%{?suse_version} > 1600
%{cargo_install} --features libvips
%else
%{cargo_install} --locked --features image
%endif
%if %{with check}
%check
%cargo_test
%endif
%files
%license LICENSES/AGPL-3.0-or-later.txt
%license LICENSES/CC0-1.0.txt
%license LICENSES/OFL-1.1.txt
%{_bindir}/%{name}
%doc README.md
%doc CHANGELOG.md
%changelog