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 632787 Details for
Bug 850199
Introduce new systemd-rpm macros in mcelog 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.77 KB, created by
Václav Pavlín
on 2012-10-24 13:35:06 UTC
(
hide
)
Description:
Patch replaces scriptlets with new systemd macros
Filename:
MIME Type:
Creator:
Václav Pavlín
Created:
2012-10-24 13:35:06 UTC
Size:
1.77 KB
patch
obsolete
>diff --git a/mcelog.spec b/mcelog.spec >index 3fb5e69..a938b49 100644 >--- a/mcelog.spec >+++ b/mcelog.spec >@@ -3,7 +3,7 @@ > Summary: Tool to translate x86-64 CPU Machine Check Exception data > Name: mcelog > Version: 1.0 >-Release: 0.6.%{last_git_commit}%{?dist} >+Release: 0.7.%{last_git_commit}%{?dist} > Epoch: 2 > Group: System Environment/Base > License: GPLv2 >@@ -15,9 +15,9 @@ Patch0: mcelog-fix-trigger-path-and-cacheing.patch > URL: https://github.com/andikleen/mcelog.git > Buildroot: %{_tmppath}/%{name}-%{version}-root > ExclusiveArch: i686 x86_64 >-Requires(post): systemd-units >-Requires(preun): systemd-units >-Requires(postun): systemd-units >+Requires(post): systemd >+Requires(preun): systemd >+Requires(postun): systemd > > %description > mcelog is a utility that collects and decodes Machine Check Exception data >@@ -57,21 +57,15 @@ install -p -m644 mcelog.8 $RPM_BUILD_ROOT/%{_mandir}/man8 > rm -rf $RPM_BUILD_ROOT > > %post >-systemctl enable mcelog.service &> /dev/null || >-systemctl daemon-reload &> /dev/null >+%systemd_post mcelog.service > > %preun > # Handle removing mcelog >-if [ "$1" -eq 0 ]; then >- systemctl disable mcelog.service &> /dev/null >- systemctl stop mcelog.service &> /dev/null >-fi >+%systemd_preun mcelog.service > > %postun > # Handle upgrading mcelog >-if [ "$1" -ge 1 ]; then >- systemctl try-restart mcelog.service &> /dev/null >-fi >+%systemd_postun_with_restart mcelog.service > > %files > %defattr(-,root,root,-) >@@ -86,6 +80,9 @@ fi > %attr(0644,root,root) %{_mandir}/*/* > > %changelog >+* Wed Oct 24 2012 Václav PavlÃn <vpavlin@redhat.com> - 2:1.0-0.7.6e4e2a00 >+- Scriptlets replaced with new systemd macros (#850199) >+ > * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0-0.6.6e4e2a00 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild >
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 850199
: 632787