Permalink
Browse files

Merge pull request #105 from roidayan/stable_v2_fix_spec

Fix flashcache.spec errors when building and .git dir doesn't exists
  • Loading branch information...
2 parents 9d30e77 + 22f5fa4 commit 833b993330dd1001d65b6b02377adcf48d3f40a1 @mohans mohans committed Feb 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 flashcache.spec
View
@@ -2,7 +2,7 @@
%{!?kernel_version:%define kernel_version %(uname -r)}
# The version of the module,
-%{!?modversion:%define modversion %(if [ -d .git ]; then git describe --abbrev=0 --tags; else 2.0; fi)}
+%{!?modversion:%define modversion %(if [ -d .git ]; then git describe --abbrev=0 --tags; else echo 2.0; fi)}
# Which revision are we on, increment per RPM build
%{!?pkgrelease:%define pkgrelease 1}
@@ -15,7 +15,7 @@
%define modname flashcache
# Define git commit revision, if we're in a repo
-%define commit_rev %(if [ -d .git ]; then git describe --always --abbrev=12; else ''; fi)
+%define commit_rev %(if [ -d .git ]; then git describe --always --abbrev=12; else echo ''; fi)
# The path to the module, after it is installed
%define modpath /lib/modules/%{kernel_version}/extra/flashcache/

0 comments on commit 833b993

Please sign in to comment.