## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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} %global _missing_build_ids_terminate_build 0 %global _dwz_low_mem_die_limit 0 Name: corteza Version: 2024.9.5 Release: %autorelease Summary: A low-code platform lets you build and iterate CRM, business process and other structured data apps. License: MIT URL: https://github.com/cortezaproject/corteza Source0: https://github.com/cortezaproject/corteza/archive/refs/tags/%{version}.tar.gz Source1: corteza.sysusers.conf Source2: corteza-server.service Source3: corteza.sysconfig BuildRequires: golang BuildRequires: yarnpkg BuildRequires: nodejs BuildRequires: nodejs-npm BuildRequires: git BuildRequires: systemd-rpm-macros Requires: ansible %description The Corteza low-code platform lets you build and iterate CRM, business process and other structured data apps fast, create intelligent business process workflows and connect with almost any data source. All with the flexibility, freedom and control you get from a 100% open-source platform written on modern technologies maintained by Planet Crust, its founder. %prep %setup -q %build # Set version on a git tag git init git -c user.name='none' -c user.email='' commit --allow-empty -m "." git tag %{version} # Build Web Console pushd server pushd webconsole yarn install yarn build popd # Build Server pushd pkg/locale make src/en src/de src/fr popd go build -ldflags "-X github.com/cortezaproject/corteza/server/pkg/version.Version=%{version} " -o build/corteza-server cmd/corteza/main.go popd ## # Build client apps pushd client for webapp in "admin" "compose" "discovery" "privacy" "reporter" "one" "workflow" do pushd web/$webapp make dep make build popd done popd %install mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/ mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sharedstatedir}/corteza/provision/ mkdir -p %{buildroot}%{_datadir}/corteza/provision/ # Install server install -m 755 server/build/corteza-server %{buildroot}%{_bindir}/corteza-server install -m 644 server/.env.example %{buildroot}%{_datadir}/corteza/.env.example install -m 644 %{S:2} %{buildroot}%{_unitdir}/corteza-server.service install -m 644 %{S:3} -D %{buildroot}%{_sysconfdir}/sysconfig/corteza mkdir -p \ %{buildroot}%{_datadir}/corteza/web/admin \ %{buildroot}%{_datadir}/corteza/web/compose \ %{buildroot}%{_datadir}/corteza/web/workflow \ %{buildroot}%{_datadir}/corteza/web/reporter \ %{buildroot}%{_datadir}/corteza/web/discovery \ %{buildroot}%{_datadir}/corteza/web/privacy cp -pr server/provision/* %{buildroot}%{_datadir}/corteza/provision/ cp -pr client/web/one/dist/* %{buildroot}%{_datadir}/corteza/web/ cp -pr client/web/admin/dist/* %{buildroot}%{_datadir}/corteza/web/admin/ cp -pr client/web/compose/dist/* %{buildroot}%{_datadir}/corteza/web/compose/ cp -pr client/web/workflow/dist/* %{buildroot}%{_datadir}/corteza/web/workflow/ cp -pr client/web/reporter/dist/* %{buildroot}%{_datadir}/corteza/web/reporter/ cp -pr client/web/discovery/dist/* %{buildroot}%{_datadir}/corteza/web/discovery/ cp -pr client/web/privacy/dist/* %{buildroot}%{_datadir}/corteza/web/privacy/ %pre %sysusers_create_compat %{S:1} %post %systemd_post corteza-server.service %preun %systemd_preun corteza-server.service %postun %systemd_postun_with_restart corteza-server.service %files %license LICENSE %doc README.md CONTRIBUTING.md %attr(755, root, root) %{_bindir}/corteza-server %attr(755, corteza, corteza) %{_sharedstatedir}/corteza/ %config(noreplace,missingok) %{_sysconfdir}/sysconfig/corteza %{_unitdir}/corteza-server.service %{_datadir}/corteza/ %changelog ## START: Generated by rpmautospec * Sun Oct 19 2025 Grillo del Mal - 2024.9.5-1 - Initial commit ## END: Generated by rpmautospec