## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} Name: filebrowser-quantum Version: 1.4.0 Release: %autorelease Summary: Web file managing interface to manage files within a specified directory License: Apache-2.0 URL: https://github.com/gtsteffaniak/filebrowser/ Source0: https://github.com/gtsteffaniak/filebrowser/archive/refs/tags/v%{version}-stable.tar.gz Source1: filebrowser-quantum.service Source2: filebrowser-quantum.sysusers.conf BuildRequires: golang BuildRequires: /usr/bin/node BuildRequires: /usr/bin/npm BuildRequires: systemd-rpm-macros %{?sysusers_requires_compat} %description FileBrowser Quantum provides an easy way to access and manage your files from the web. It has a modern responsive interface that has many advanced features to manage users, access, sharing, and file preview and editing. %prep %setup -q -n filebrowser-%{version}-stable pushd frontend npm update popd %build make build-frontend make build-backend %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sysusersdir} mkdir -p %{buildroot}%{_sysconfdir}/filebrowser-quantum/ install -m 755 backend/filebrowser %{buildroot}%{_bindir}/filebrowser-quantum install -m 644 backend/config.yaml %{buildroot}%{_sysconfdir}/filebrowser-quantum/config.yaml install -m 644 -p %{S:1} %{buildroot}%{_unitdir}/filebrowser-quantum.service install -m 644 -p %{S:2} %{buildroot}%{_sysusersdir}/filebrowser-quantum.conf %pre %sysusers_create_compat %{S:2} %post %systemd_post filebrowser-quantum.service %preun %systemd_preun filebrowser-quantum.service %postun %systemd_postun_with_restart filebrowser-quantum.service %files %license LICENSE %doc README.md %{_bindir}/filebrowser-quantum %{_sysconfdir}/filebrowser-quantum/config.yaml %{_unitdir}/filebrowser-quantum.service %{_sysusersdir}/filebrowser-quantum.conf %changelog ## START: Generated by rpmautospec * Tue Jul 07 2026 Grillo del Mal - 1.4.0-1 - Initial commit ## END: Generated by rpmautospec