## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 # This builds from a fork of the project # Interested in the original source? check https://appflowy.com/ Name: appflowy-cloud Version: 0.9.64 Release: %autorelease Summary: Bring projects, wikis, and teams together. License: AGPL-3.0 URL: https://codeberg.org/grillo-delmal/AppFlowy-Cloud Source0: https://codeberg.org/grillo-delmal/AppFlowy-Cloud/archive/refs/tags/%{version}.tar.gz Source1: appflowy-cloud.sysusers.conf Source2: appflowy-cloud.service Source3: appflowy-admin_frontend.service Source4: appflowy-worker.service Source5: appflowy-cloud.sysconfig Source6: appflowy-admin_frontend.sysconfig Source7: appflowy-worker.sysconfig Source8: appflowy-cloud-nginx-conf BuildRequires: cargo BuildRequires: protobuf-compiler BuildRequires: lld BuildRequires: clang BuildRequires: openssl-devel BuildRequires: curl BuildRequires: git BuildRequires: protobuf-devel BuildRequires: rustfmt BuildRequires: systemd-rpm-macros Requires: nginx-filesystem %description Bring projects, wikis, and teams together. AppFlowy is the collaborative workspace where you achieve more without losing control of your data. %prep %setup -q -n appflowy-cloud %build CARGO_NET_GIT_FETCH_WITH_CLI=true \ CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \ cargo build --release --features "" --bin appflowy_cloud pushd admin_frontend cargo build --release --bin admin_frontend popd pushd services/appflowy-worker cargo build --release --bin appflowy_worker popd %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/ mkdir -p %{buildroot}%{_sharedstatedir}/appflowy/cloud/ mkdir -p %{buildroot}%{_sharedstatedir}/appflowy/admin_frontend/ mkdir -p %{buildroot}%{_sharedstatedir}/appflowy/worker/ mkdir -p %{buildroot}%{_datadir}/appflowy-cloud/ install -m 755 target/release/appflowy_cloud %{buildroot}%{_bindir}/appflowy_cloud install -m 755 target/release/admin_frontend %{buildroot}%{_bindir}/appflowy_admin_frontend install -m 755 target/release/appflowy_worker %{buildroot}%{_bindir}/appflowy_worker install -m 644 %{S:2} %{buildroot}%{_unitdir}/appflowy-cloud.service install -m 644 %{S:3} %{buildroot}%{_unitdir}/appflowy-admin_frontend.service install -m 644 %{S:4} %{buildroot}%{_unitdir}/appflowy-worker.service install -m 644 %{S:5} -D %{buildroot}%{_sysconfdir}/sysconfig/appflowy-cloud install -m 644 %{S:6} -D %{buildroot}%{_sysconfdir}/sysconfig/appflowy-admin_frontend install -m 644 %{S:7} -D %{buildroot}%{_sysconfdir}/sysconfig/appflowy-worker install -m 644 %{S:8} -D ${RPM_BUILD_ROOT}%{_sysconfdir}/nginx/default.d/0001-appflowy-cloud.conf install -m 644 dev.env -D %{buildroot}%{_datadir}/appflowy-cloud/dev.env install -m 644 deploy.env -D %{buildroot}%{_datadir}/appflowy-cloud/deploy.env %pre %sysusers_create_compat %{S:1} %post %systemd_post appflowy-cloud.service %systemd_post appflowy-admin_frontend.service %systemd_post appflowy-worker.service %preun %systemd_preun appflowy-cloud.service %systemd_preun appflowy-admin_frontend.service %systemd_preun appflowy-worker.service %postun %systemd_postun_with_restart appflowy-cloud.service %systemd_postun_with_restart appflowy-admin_frontend.service %systemd_postun_with_restart appflowy-worker.service %files %license LICENSE %doc README.md %attr(755, root, root) %{_bindir}/appflowy_cloud %attr(755, root, root) %{_bindir}/appflowy_admin_frontend %attr(755, root, root) %{_bindir}/appflowy_worker %config(noreplace,missingok) %attr(750, root, appflowy) %{_sysconfdir}/sysconfig/appflowy-cloud %config(noreplace,missingok) %attr(750, root, appflowy) %{_sysconfdir}/sysconfig/appflowy-admin_frontend %config(noreplace,missingok) %attr(750, root, appflowy) %{_sysconfdir}/sysconfig/appflowy-worker %config(noreplace) %{_sysconfdir}/nginx/default.d/0001-appflowy-cloud.conf %attr(755, appflowy, appflowy) %{_sharedstatedir}/appflowy/ %{_unitdir}/appflowy-cloud.service %{_unitdir}/appflowy-admin_frontend.service %{_unitdir}/appflowy-worker.service %{_datadir}/appflowy-cloud/ %changelog ## START: Generated by rpmautospec * Mon Nov 03 2025 Grillo del Mal - 0.9.64-3 - Remove auth data from nginx * Sun Nov 02 2025 Grillo del Mal - 0.9.64-2 - Add nginx integration * Sun Oct 26 2025 Grillo del Mal - 0.9.64-1 - Initial commit ## END: Generated by rpmautospec