[package] extra-files = [ "%{_datadir}/speakersafetyd/", "%{_unitdir}/speakersafetyd.service", "%{_sharedstatedir}/speakersafetyd/", "%{_udevrulesdir}/95-speakersafetyd.rules", ] [requires] build = ["systemd-rpm-macros"] bin = ["systemd-udev"] [scripts] install.post = [ "install -p -m 0644 -D speakersafetyd.service %{buildroot}%{_unitdir}/speakersafetyd.service", "install -p -m 0644 -D 95-speakersafetyd.rules %{buildroot}%{_udevrulesdir}/95-speakersafetyd.rules", "install -d -m 0755 %{buildroot}%{_datadir}/speakersafetyd/apple", "install -p -m 0644 -t %{buildroot}%{_datadir}/speakersafetyd/apple conf/apple/*", "install -d -m 0755 %{buildroot}%{_sharedstatedir}/speakersafetyd/blackbox", ]