[sfk] More precise.

Christopher Meng cicku at fedoraproject.org
Thu Feb 12 10:43:10 UTC 2015


commit fbaad1b2247e864f0632e33d76ff85c850d41620
Author: Christopher Meng <i at cicku.me>
Date:   Thu Feb 12 18:33:28 2015 +0800

    More precise.

 sfk.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/sfk.spec b/sfk.spec
index 7630b44..173ac54 100644
--- a/sfk.spec
+++ b/sfk.spec
@@ -20,7 +20,13 @@ Note that Fedora ships the OSE(Open Source Edition) version of sfk.
 %prep
 %setup -q
 # More friendly to users
-sed -i 's|"linux-lib6"|"Fedora %{fedora}"|' sfk.cpp
+%if 0%{?fedora}
+sed -i 's|"linux-lib6"|"Fedora %{?fedora} %{?_arch}"|' sfk.cpp
+%endif
+
+%if 0%{?rhel}
+sed -i 's|"linux-lib6"|"Red Hat Enterprise Linux %{?rhel} %{?_arch}"|' sfk.cpp
+%endif
 
 %build
 autoreconf -fiv


More information about the scm-commits mailing list