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 652545 Details for
Bug 850217
Introduce new systemd-rpm macros in mt-st 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.70 KB, created by
Václav Pavlín
on 2012-11-27 09:17:42 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-11-27 09:17:42 UTC
Size:
1.70 KB
patch
obsolete
>diff --git a/mt-st.spec b/mt-st.spec >index a6c36a7..d3b71eb 100644 >--- a/mt-st.spec >+++ b/mt-st.spec >@@ -1,7 +1,7 @@ > Summary: Tool for controlling tape drives > Name: mt-st > Version: 1.1 >-Release: 9%{?dist} >+Release: 10%{?dist} > License: GPL+ > Group: Applications/System > URL: ftp://ftp.ibiblio.org/pub/linux/system/backup >@@ -12,9 +12,9 @@ Patch1: mt-st-1.1-SDLT.patch > Patch2: mt-st-0.7-config-files.patch > Patch3: mt-st-0.9b-manfix.patch > Patch4: mt-st-1.1-mtio.patch >-Requires(post): systemd-units >-Requires(preun): systemd-units >-Requires(postun): systemd-units >+Requires(post): systemd >+Requires(preun): systemd >+Requires(postun): systemd > # For triggerun > Requires(post): systemd-sysv > >@@ -51,24 +51,13 @@ install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/stinit.service > > > %post >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >-fi >+%systemd_post stinit.service > > %preun >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable stinit.service > /dev/null 2>&1 || : >- /bin/systemctl stop stinit.service > /dev/null 2>&1 || : >-fi >+%systemd_preun stinit.service > > %postun >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart stinit.service >/dev/null 2>&1 || : >-fi >+%systemd_postun_with_restart stinit.service > > %triggerun -- mt-st < 1.1-7 > # Save the current service runlevel info >@@ -90,6 +79,9 @@ fi > > > %changelog >+* Tue Nov 27 2012 Václav PavlÃn <vpavlin@redhat.com> - 1.1-10 >+- Scriptlets replaced with new systemd macros (#850217) >+ > * Tue Nov 20 2012 Dan Horák <dan[at]danny.cz> - 1.1-9 > - spec cleanup >
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 850217
: 652545