diff --git a/nqp.spec b/nqp.spec index c36a45a..a9e47e6 100644 --- a/nqp.spec +++ b/nqp.spec @@ -107,6 +107,14 @@ rm -r 3rdparty/libtommath 3rdparty/sha1 # this was for the parrot backend # prevent rpmlint errors in the doc subpackage find examples -maxdepth 1 -name "*.nqp" \ -exec %{__sed} -i -e '1 s&#!.*\(nqp\)&#!/usr/bin/\1&' {} \; +# convert Windows newlines to Linx format (CR-LF -> LF) +%{__perl} -pi -e 's/\r\n$/\n/g' examples/rubyish/t/recursion.t \ + examples/rubyish/examples-rubyish/fractal-tree.rbi \ + examples/rubyish/t/bitwise.t docs/ops.markdown \ + examples/rubyish/t/inheritance.t examples/rubyish/t/line-spanning.t \ + examples/rubyish/examples-rubyish/closure.rbi +# correct file mode bits to prevent rpmlint warning +%{__chmod} 644 docs/ops.markdown %{__perl} Configure.pl --backends=moar,jvm --prefix=%{_usr} CFLAGS="$RPM_OPT_FLAGS -fPIC" %{__make} %{?_smp_mflags}