%global debug_package %{nil} # renovate: datasource=github-releases depName=ublue-os/packages %define homebrew_release homebrew-2025-05-04-04-03-02 Name: ublue-brew Version: 0.1.5 Release: 1%{?dist} Summary: Homebrew integration for Universal Blue systems License: Apache-2.0 URL: https://github.com/ublue-os/packages VCS: git+https://github.com/ublue-os/packages.git#09a749aedeb82ac8bba19ae33954df61982feb3e:packages/ublue-brew Source0: packages-packages-ublue-brew-09a749ae.tar.gz Source1: https://github.com/ublue-os/packages/releases/download/%{homebrew_release}/homebrew-x86_64.tar.zst Source2: https://github.com/ublue-os/packages/releases/download/%{homebrew_release}/homebrew-aarch64.tar.zst BuildRequires: systemd-rpm-macros %description Homebrew integration for Universal Blue systems %prep %setup -T -b 0 -q -n packages-packages-ublue-brew %install # I have no idea how to do sources that can differ from the buildroot's architecture # FIXME: This is nasty and terrible. SOURCE_FILE="" if [ "$(arch)" == "x86_64" ]; then SOURCE_FILE=%{SOURCE1} else SOURCE_FILE=%{SOURCE2} fi install -Dpm0644 "${SOURCE_FILE}" %{buildroot}/%{_datadir}/homebrew.tar.zst install -Dpm0644 -t %{buildroot}%{_unitdir}/ ./src%{_unitdir}/*.service install -Dpm0644 -t %{buildroot}%{_unitdir}/ ./src%{_unitdir}/*.timer install -Dpm0644 -t %{buildroot}%{_prefix}/lib/systemd/system-preset/ ./src%{_prefix}/lib/systemd/system-preset/*.preset install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_conf.d/ ./src%{_datadir}/fish/vendor_conf.d/%{name}.fish install -Dpm0644 -t %{buildroot}%{_sysconfdir}/security/limits.d/ ./src%{_sysconfdir}/security/limits.d/*.conf install -Dpm0644 -t %{buildroot}%{_sysconfdir}/profile.d/ ./src%{_sysconfdir}/profile.d/*.sh install -Dpm0644 -t %{buildroot}%{_prefix}/lib/tmpfiles.d/ ./src%{_prefix}/lib/tmpfiles.d/*.conf %post %systemd_post brew-setup.service %preun %systemd_preun brew-setup.service %files %ghost %{_sysconfdir}/profile.d/brew.sh %{_datadir}/homebrew.tar.zst %{_sysconfdir}/profile.d/brew-bash-completion.sh %{_datadir}/fish/vendor_conf.d/%{name}.fish %{_sysconfdir}/security/limits.d/*brew*.conf %{_unitdir}/brew-setup.service %{_unitdir}/brew-update.timer %{_unitdir}/brew-update.service %{_unitdir}/brew-upgrade.timer %{_unitdir}/brew-upgrade.service %{_prefix}/lib/systemd/system-preset/01-homebrew.preset %{_prefix}/lib/tmpfiles.d/*brew.conf %changelog %autochangelog