Commit 0fef4cb560fa462a76ba81d7d1f10a473169f98c
1 parent
eadb71f2
Exists in
master
Ajustes para empacotamento.
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
rpm/pw3270d.spec
| @@ -20,10 +20,12 @@ BuildRequires: pkgconfig(lib3270) >= 5.1 | @@ -20,10 +20,12 @@ BuildRequires: pkgconfig(lib3270) >= 5.1 | ||
| 20 | BuildRequires: pkgconfig(glib-2.0) | 20 | BuildRequires: pkgconfig(glib-2.0) |
| 21 | BuildRequires: pkgconfig(dbus-1) | 21 | BuildRequires: pkgconfig(dbus-1) |
| 22 | BuildRequires: pkgconfig(dbus-glib-1) | 22 | BuildRequires: pkgconfig(dbus-glib-1) |
| 23 | +BuildRequires: pkgconfig(systemd) | ||
| 23 | BuildRequires: fdupes | 24 | BuildRequires: fdupes |
| 24 | BuildRequires: systemd-devel | 25 | BuildRequires: systemd-devel |
| 25 | 26 | ||
| 26 | Requires: dbus-1 | 27 | Requires: dbus-1 |
| 28 | +%{systemd_requires} | ||
| 27 | 29 | ||
| 28 | %description | 30 | %description |
| 29 | 31 | ||
| @@ -63,12 +65,12 @@ rm -rf $RPM_BUILD_ROOT | @@ -63,12 +65,12 @@ rm -rf $RPM_BUILD_ROOT | ||
| 63 | 65 | ||
| 64 | %post | 66 | %post |
| 65 | killall -HUP dbus-daemon | 67 | killall -HUP dbus-daemon |
| 66 | -systemctl daemon-reload | 68 | +%{systemd_post} |
| 67 | exit 0 | 69 | exit 0 |
| 68 | 70 | ||
| 69 | %postun | 71 | %postun |
| 70 | killall -HUP dbus-daemon | 72 | killall -HUP dbus-daemon |
| 71 | -systemctl daemon-reload | 73 | +%{systemd_postun_with_restart} |
| 72 | exit 0 | 74 | exit 0 |
| 73 | 75 | ||
| 74 | %changelog | 76 | %changelog |