## 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 %bcond check 1 Name: rebuilderd Version: 0.26.0 Release: %autorelease Summary: Independent build verification daemon SourceLicense: GPL-3.0-or-later License: GPL-3.0-or-later # LICENSE.dependencies contains a full license breakdown URL: https://github.com/kpcyrd/rebuilderd Source0: %{url}/archive/refs/tags/v%{version}.tar.gz Source1: %{name}.sysusers Source2: %{name}.tmpfiles Source3: %{name}-worker.sysusers Source4: %{name}-worker.tmpfiles Source5: %{name}-worker@.service Requires: shared-mime-info BuildRequires: shared-mime-info BuildRequires: cargo-rpm-macros >= 24 BuildRequires: systemd-rpm-macros BuildRequires: scdoc Recommends: rebuilderd-tools %description Independent build verification daemon. Rebuilderd monitors and reproduces binary packages from source. %package worker Summary: Independent build verification worker %description worker This package contains the rebuilderd-worker service. The worker connects to rebuilderd for a new build task, automatically rebuilds and publishes the results to rebuilderd. %package tools Summary: Independent build verification tools %description tools This package contains rebuildctl, a CLI tool which queries rebuilderd and can show the worker, queue and package status. %prep %autosetup -n rebuilderd-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies make docs %install mkdir -p %buildroot/%{_bindir} cp target/rpm/rebuilderd-worker %buildroot/%{_bindir} cp target/rpm/rebuilderd %buildroot/%{_bindir} cp target/rpm/rebuildctl %buildroot/%{_bindir} # worker rebuild helper scripts install -Dm 755 -t %buildroot/%{_libexecdir}/rebuilderd worker/rebuilder-fedora.sh # systemd units install -p -D -m 0644 contrib/systemd/rebuilderd.service %{buildroot}/%{_unitdir}/rebuilderd.service install -p -D -m 0644 contrib/systemd/rebuilderd-sync@.service %{buildroot}/%{_unitdir}/rebuilderd-sync@.service install -p -D -m 0644 contrib/systemd/rebuilderd-sync@.timer %{buildroot}/%{_unitdir}/rebuilderd-sync@.timer install -p -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/%{name}-worker@.service # sysusers / tmpfiles install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}-worker.conf install -p -D -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}-worker.conf # config files install -p -D -m 0600 contrib/confs/rebuilderd-worker.conf %{buildroot}%{_sysconfdir}/rebuilderd-worker.conf install -p -D -m 0600 contrib/confs/%{name}.conf %{buildroot}%{_sysconfdir}/rebuilderd.conf install -p -D -m 0600 contrib/confs/rebuilderd-sync.conf %{buildroot}%{_sysconfdir}/rebuilderd-sync.conf # man pages install -p -D -m 0644 contrib/docs/rebuilderd.1 %{buildroot}%{_mandir}/man1/rebuilderd.1 install -p -D -m 0644 contrib/docs/rebuilderd-worker.1 %{buildroot}%{_mandir}/man1/rebuilderd-worker.1 install -p -D -m 0644 contrib/docs/rebuildctl.1 %{buildroot}%{_mandir}/man1/rebuildctl.1 install -p -D -m 0644 contrib/docs/rebuilderd.conf.5 %{buildroot}%{_mandir}/man5/rebuilderd.conf.5 install -p -D -m 0644 contrib/docs/rebuilderd-sync.conf.5 %{buildroot}%{_mandir}/man5/rebuild-sync.conf.5 install -p -D -m 0644 contrib/docs/rebuilderd-worker.conf.5 %{buildroot}%{_mandir}/man5/rebuilderd-worker.conf.5 # generate and install shell completions target/rpm/rebuildctl completions bash > rebuildctl.bash target/rpm/rebuildctl completions fish > rebuildctl.fish target/rpm/rebuildctl completions zsh > _rebuildctl install -Dpm 0644 rebuildctl.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 rebuildctl.fish -t %{buildroot}/%{fish_completions_dir} install -Dpm 0644 _rebuildctl -t %{buildroot}/%{zsh_completions_dir} %if %{with check} %check %cargo_test %endif %post %systemd_post rebuilderd.service %systemd_post rebuilderd-sync@.service %systemd_post rebuilderd-sync@.timer %post worker %systemd_post rebuilderd-worker@.service %preun %systemd_preun rebuilderd.service %systemd_preun rebuilderd-sync@.service %systemd_preun rebuilderd-sync@.timer %preun worker %systemd_preun rebuilderd-worker@.service %postun %systemd_postun rebuilderd.service %postun worker %systemd_postun rebuilderd-worker@.service %systemd_postun rebuilderd-sync@.service %systemd_postun rebuilderd-sync@.timer %files %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/rebuilderd %{_sysusersdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf %attr(0640,rebuilderd,rebuilderd) %{_sysconfdir}/rebuilderd.conf %config(noreplace) %{_sysconfdir}/rebuilderd.conf %attr(0640,rebuilderd,rebuilderd) %{_sysconfdir}/rebuilderd-sync.conf %config(noreplace) %{_sysconfdir}/rebuilderd-sync.conf %{_mandir}/man1/rebuilderd.1.* %{_mandir}/man5/rebuilderd.conf.5.* %{_mandir}/man5/rebuild-sync.conf.5.* %{_unitdir}/rebuilderd.service %{_unitdir}/rebuilderd-sync@.service %{_unitdir}/rebuilderd-sync@.timer %files worker %license LICENSE %license LICENSE.dependencies %{_bindir}/rebuilderd-worker %{_unitdir}/rebuilderd-worker@.service %attr(0640,rebuilderd-worker,rebuilderd-worker) %{_sysconfdir}/rebuilderd-worker.conf %config(noreplace) %{_sysconfdir}/rebuilderd-worker.conf %{_mandir}/man1/rebuilderd-worker.1.* %{_mandir}/man5/rebuilderd-worker.conf.5.* %{_libexecdir}/rebuilderd/rebuilder-fedora.sh %{_sysusersdir}/%{name}-worker.conf %{_tmpfilesdir}/%{name}-worker.conf %files tools %license LICENSE %license LICENSE.dependencies %{_bindir}/rebuildctl %{bash_completions_dir}/rebuildctl.bash %{fish_completions_dir}/rebuildctl.fish %{zsh_completions_dir}/_rebuildctl %{_mandir}/man1/rebuildctl.1.* %changelog ## START: Generated by rpmautospec * Mon May 25 2026 John Doe - 0.26.0-1 - Uncommitted changes ## END: Generated by rpmautospec