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 | 20 | BuildRequires: pkgconfig(glib-2.0) |
| 21 | 21 | BuildRequires: pkgconfig(dbus-1) |
| 22 | 22 | BuildRequires: pkgconfig(dbus-glib-1) |
| 23 | +BuildRequires: pkgconfig(systemd) | |
| 23 | 24 | BuildRequires: fdupes |
| 24 | 25 | BuildRequires: systemd-devel |
| 25 | 26 | |
| 26 | 27 | Requires: dbus-1 |
| 28 | +%{systemd_requires} | |
| 27 | 29 | |
| 28 | 30 | %description |
| 29 | 31 | |
| ... | ... | @@ -63,12 +65,12 @@ rm -rf $RPM_BUILD_ROOT |
| 63 | 65 | |
| 64 | 66 | %post |
| 65 | 67 | killall -HUP dbus-daemon |
| 66 | -systemctl daemon-reload | |
| 68 | +%{systemd_post} | |
| 67 | 69 | exit 0 |
| 68 | 70 | |
| 69 | 71 | %postun |
| 70 | 72 | killall -HUP dbus-daemon |
| 71 | -systemctl daemon-reload | |
| 73 | +%{systemd_postun_with_restart} | |
| 72 | 74 | exit 0 |
| 73 | 75 | |
| 74 | 76 | %changelog | ... | ... |