%global debug_package %{nil} Name: ublue-setup-services Version: 0.1.0 Release: 1%{?dist} Summary: Universal Blue setup services License: Apache-2.0 URL: https://github.com/ublue-os/packages VCS: git+https://github.com/ublue-os/packages#4d45708187165c62ed28ec92474a132b40c3f6ba:ublue/setup-services Source: packages-ublue-setup-services-4d457081.tar.gz BuildRequires: systemd-rpm-macros %description Universal Blue setup scripts %prep %setup -T -b 0 -q -n packages-ublue-setup-services %install mkdir -p %{buildroot}{%{_bindir},%{_libexecdir},%{_unitdir},%{_sysconfdir}/{polkit-1/{rules.d,actions},profile.d}} install -Dm0755 ./src/scripts/* %{buildroot}%{_libexecdir} install -Dm0755 ./src/bin/* %{buildroot}%{_bindir} install -Dpm0644 ./src/services/* %{buildroot}%{_unitdir} install -Dpm0644 ./src/polkit/*.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d install -Dpm0644 ./src/polkit/*.policy %{buildroot}%{_sysconfdir}/polkit-1/actions install -Dpm0755 ./src/profile/* %{buildroot}%{_sysconfdir}/profile.d cp -rp ./src/skel %{buildroot}%{_sysconfdir} %post %systemd_post ublue-user-setup.service %systemd_post ublue-system-setup.service %preun %systemd_preun ublue-user-setup.service %systemd_preun ublue-system-setup.service %files %{_bindir}/sb* %{_libexecdir}/ublue-* %{_libexecdir}/check-* %{_sysconfdir}/polkit-1/rules.d/* %{_sysconfdir}/polkit-1/actions/* %{_sysconfdir}/profile.d/* %{_sysconfdir}/skel/.config/autostart/* %{_unitdir}/*.service %changelog %autochangelog