From 8e051c4e69b45ef458433705574b299ee9ed2c17 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 22 May 2021 18:20:47 -0400 Subject: [PATCH] name Signed-off-by: Christine Dodrill --- .rpm/printerfacts.spec | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.rpm/printerfacts.spec b/.rpm/printerfacts.spec index 50d21e6..09473b5 100644 --- a/.rpm/printerfacts.spec +++ b/.rpm/printerfacts.spec @@ -25,31 +25,31 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #Upgrading if [ $1 -eq 2 ]; then - /usr/bin/systemctl stop %{pkgname}.service >/dev/null 2>&1 ||: + /usr/bin/systemctl stop %{name}.service >/dev/null 2>&1 ||: fi %post if [ $1 -eq 1 ]; then /usr/bin/systemctl daemon-reload - /usr/bin/systemctl start %{pkgname}.service + /usr/bin/systemctl start %{name}.service fi if [ $1 -eq 2 ]; then /usr/bin/systemctl daemon-reload - /usr/bin/systemctl start %{pkgname}.service + /usr/bin/systemctl start %{name}.service fi %preun #old package #uninstall if [ $1 -eq 0 ]; then - /usr/bin/systemctl --no-reload disable %{pkgname}.service - /usr/bin/systemctl stop %{pkgname}.service >/dev/null 2>&1 ||: - /usr/bin/systemctl disable %{pkgname}.service + /usr/bin/systemctl --no-reload disable %{name}.service + /usr/bin/systemctl stop %{name}.service >/dev/null 2>&1 ||: + /usr/bin/systemctl disable %{name}.service fi if [ $1 -eq 1 ]; then - /usr/bin/systemctl --no-reload disable %{pkgname}.service - /usr/bin/systemctl stop %{pkgname}.service + /usr/bin/systemctl --no-reload disable %{name}.service + /usr/bin/systemctl stop %{name}.service fi %postun @@ -63,8 +63,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot} cp -a * %{buildroot} mkdir -p %{buildroot}%{_unitdir} -install -m 0644 ./%{pkgname}.service %{buildroot}%{_unitdir} -install -m 0644 ./%{pkgname}.default %{buildroot}/etc/default/printerfacts +install -m 0644 ./%{name}.service %{buildroot}%{_unitdir} +install -m 0644 ./%{name}.default %{buildroot}/etc/default/printerfacts %clean rm -rf %{buildroot}