## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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: %{name}.sysusers.conf Source2: %{name}.service 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 install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_sysusersdir} install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}/ install -m 755 -d %{buildroot}%{_unitdir} install -m 755 -d %{buildroot}%{_sharedstatedir}/%{name} install -m 755 backend/filebrowser %{buildroot}%{_bindir}/%{name} install -m 644 backend/config.yaml %{buildroot}%{_sysconfdir}/%{name}/config.yaml install -m 644 -p %{S:1} %{buildroot}%{_sysusersdir}/%{name}.conf install -m 644 -p %{S:2} %{buildroot}%{_unitdir}/%{name}.service %pre %sysusers_create_compat %{S:1} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_sysconfdir}/%{name}/config.yaml %dir %attr(755, %{name}, %{name}) %{_sharedstatedir}/%{name}/ %{_unitdir}/%{name}.service %{_sysusersdir}/%{name}.conf %changelog ## START: Generated by rpmautospec * Wed Jul 08 2026 Grillo del Mal - 1.4.0-2 - Clean up and fix home path * Tue Jul 07 2026 Grillo del Mal - 1.4.0-1 - Initial commit ## END: Generated by rpmautospec