Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 654304 Details for
Bug 850244
Introduce new systemd-rpm macros in openhpi spec file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch replaces scriptlets with new systemd macros
new-systemd-macros.patch (text/plain), 1.68 KB, created by
Václav Pavlín
on 2012-11-29 14:28:01 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-11-29 14:28:01 UTC
Size:
1.68 KB
patch
obsolete
>diff --git a/openhpi.spec b/openhpi.spec >index a82c549..f45c54b 100644 >--- a/openhpi.spec >+++ b/openhpi.spec >@@ -3,7 +3,7 @@ > Summary: Hardware Platform Interface library and tools > Name: openhpi > Version: 3.2.0 >-Release: 1%{?dist} >+Release: 2%{?dist} > License: BSD > Group: System Environment/Base > URL: http://www.openhpi.org >@@ -21,9 +21,9 @@ BuildRequires: libxml2-devel > BuildRequires: docbook-utils > BuildRequires: libuuid-devel > BuildRequires: systemd-units >-Requires(post): systemd-units >-Requires(preun): systemd-units >-Requires(postun): systemd-units >+Requires(post): systemd >+Requires(preun): systemd >+Requires(postun): systemd > > > %description >@@ -97,24 +97,13 @@ make check > > > %post >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >-fi >+%systemd_post openhpid.service > > %preun >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable openhpid.service > /dev/null 2>&1 || : >- /bin/systemctl stop openhpid.service > /dev/null 2>&1 || : >-fi >+%systemd_preun openhpid.service > > %postun >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart openhpid.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart openhpid.service > > %post libs -p /sbin/ldconfig > >@@ -147,6 +136,9 @@ fi > > > %changelog >+* Thu Nov 29 2012 Václav PavlÃn <vpavlin@redhat.com> - 3.2.0-2 >+- Scriptlets replaced with new systemd macros (#850244) >+ > * Wed Nov 21 2012 Dan Horák <dan[at]danny.cz> - 3.2.0-1 > - update to 3.2.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 850244
: 654304