Commit 61b78c9b51ff60516a96c378607cf3526c55e841

Authored by Perry Werneck
1 parent 6fe105a5
Exists in master

Ajustes para empacotamento.

Showing 2 changed files with 17 additions and 4 deletions   Show diff stats
rpm/pw3270d.rpmlintrc 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +addFilter('no-manual-page-for-binary')
  2 +setBadness('suse-dbus-unauthorized-service', 0)
  3 +
... ...
rpm/pw3270d.spec
... ... @@ -25,7 +25,7 @@ BuildRequires: fdupes
25 25 BuildRequires: systemd-devel
26 26  
27 27 Requires: dbus-1
28   -Requires(post): psmisc
  28 +Requires(post): psmisc
29 29 Requires(postun): psmisc
30 30  
31 31 %{systemd_requires}
... ... @@ -64,15 +64,25 @@ rm -rf $RPM_BUILD_ROOT
64 64 %defattr(-,root,root)
65 65 %{_sbindir}/pw3270d
66 66 %{_unitdir}/pw3270d.service
67   -/etc/dbus-1/system.d/pw3270d.conf
  67 +%config /etc/dbus-1/system.d/pw3270d.conf
  68 +
  69 +%preun
  70 +%service_del_preun pw3270d.service
  71 +exit 0
  72 +
  73 +%pre
  74 +%service_add_pre pw3270d.service
  75 +exit 0
68 76  
69 77 %post
70   -killall -HUP dbus-daemon
  78 +%service_add_post pw3270d.service
  79 +/usr/bin/killall --quiet -HUP dbus-daemon || :
71 80 %{systemd_post}
72 81 exit 0
73 82  
74 83 %postun
75   -killall -HUP dbus-daemon
  84 +%service_del_postun pw3270d.service
  85 +/usr/bin/killall --quiet -HUP dbus-daemon || :
76 86 %{systemd_postun_with_restart}
77 87 exit 0
78 88  
... ...