Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-22 18:37:18 -04:00
parent 2e6f3a3b5e
commit 0d9aa022d9
2 changed files with 6 additions and 2 deletions

View File

@ -64,8 +64,6 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE2} %{buildroot}/etc/default/printerfacts
%clean
rm -rf %{buildroot}
@ -73,3 +71,5 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*
/etc/default/printerfacts
/lib/systemd/system/printerfacts.service

View File

@ -35,3 +35,7 @@ buildflags = ["--release"]
[package.metadata.rpm.targets]
printerfacts = { path = "/usr/bin/printerfacts" }
[package.metadata.rpm.files]
"./.rpm/printerfacts.default" = { path = "/etc/default/printerfacts", mode = "644" }
"./.rpm/printerfacts.service" = { path = "/lib/systemd/system/printerfacts.service" }