try this
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
2e6f3a3b5e
commit
0d9aa022d9
|
@ -64,8 +64,6 @@ rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}
|
mkdir -p %{buildroot}
|
||||||
cp -a * %{buildroot}
|
cp -a * %{buildroot}
|
||||||
mkdir -p %{buildroot}%{_unitdir}
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
||||||
install -m 0644 %{SOURCE2} %{buildroot}/etc/default/printerfacts
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
@ -73,3 +71,5 @@ rm -rf %{buildroot}
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
/etc/default/printerfacts
|
||||||
|
/lib/systemd/system/printerfacts.service
|
||||||
|
|
|
@ -35,3 +35,7 @@ buildflags = ["--release"]
|
||||||
|
|
||||||
[package.metadata.rpm.targets]
|
[package.metadata.rpm.targets]
|
||||||
printerfacts = { path = "/usr/bin/printerfacts" }
|
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" }
|
||||||
|
|
Loading…
Reference in New Issue