rpm/rpm-5.4.10-distepoch-from-os-release.patch
2015-01-27 15:15:03 +03:00

11 lines
529 B
Diff

--- a/macros/mandriva.in 2014-10-25 15:11:42.195955354 +0400
+++ b/macros/mandriva.in 2014-10-25 15:09:09.000000000 +0400
@@ -44,7 +44,7 @@
%evr_tuple_select 1234
%evr_tuple_order EVRD
%disttag %{!?distsuffix:mdv}%{?distsuffix}
-%distepoch %(sed -e 's#.*release\\ \\(\\S*\\).*#\\1#' /etc/release)
+%distepoch %(sed -n -e 's/^VERSION_ID=//p' /etc/os-release)
# Dynamic EVRD tags macro for use with versioned provides/requires in place of
# '%{version}-%{release}', ie. to automatically add distepoch or epoch if present