File golang-github-filebrowser-filebrowser.spec of Package golang-github-filebrowser-filebrowser
%define debug_package %{nil}
Name: golang-github-filebrowser-filebrowser
Version: 2.44.2
Release: 0
Summary: Web File Browser
License: License-2-Clause
Group: Productivity/Networking/Instant Messenger
URL: https://github.com/filebrowser/filebrowser
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/filebrowser-%{version}.tar.gz
BuildRequires: golang
%description
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview and edit your files. It is a create-your-own-cloud-kind of software where you can just install it on your server, direct it to a path and access your files through a nice web interface.
%prep
%autosetup -n filebrowser-%{version} -p1
%build
go build \
-mod=vendor \
-buildmode=pie
%install
install -D -m0755 filebrowser %{buildroot}%{_bindir}/filebrowser
%files
%license LICENSE
%doc README.md
%{_bindir}/filebrowser
%changelog