commit 984ca9b7a8e5a5e30987ee3ba0f3aa7efad52a96
Author: Björn Esser <bjoern.esser(a)gmail.com>
Date: Fri Dec 20 15:27:03 2013 +0100
move `README.md` only if existing
NLopt.spec | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/NLopt.spec b/NLopt.spec
index dc66507..2002be6 100644
--- a/NLopt.spec
+++ b/NLopt.spec
@@ -198,6 +198,7 @@ This package contains Python3 bindings for %{name}.
%setup -q%{!?rel_build:n %{lc_name}-%{commit_src}}%{?rel_build:n %{lc_name}-%{version}}
# Move all %%doc to topdir and append their belonging.
+[[ -f README.md ]] && \
mv -f README.md README
_topdir="`pwd`"
for _dir in `find . -type d | \
@@ -394,6 +395,7 @@ octave -H -q --no-window-system --no-site-file --eval "pkg rebuild"
- adapted %%{source0} to match %%{name}
- changed `%%global lc_name` to `%%define lc_name`, because of globbing problems
- use `tr` instead of shell-builtin for `%%define lc_name`
+- move `README.md` only if existing
* Fri Dec 20 2013 Björn Esser <bjoern.esser(a)gmail.com> - 2.4-3.git20130903.35e6377
- made %%clean-target conditional on el5