[packages/erlang-rebar] Tests moved to %build, where they belong
jajcus
jajcus at pld-linux.org
Wed Mar 25 15:33:26 CET 2015
commit ad275ce4a2c68419d7aecd6a9c80f9beb392d43a
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Wed Mar 25 15:32:18 2015 +0100
Tests moved to %build, where they belong
erlang-rebar.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/erlang-rebar.spec b/erlang-rebar.spec
index e24c441..55bc019 100644
--- a/erlang-rebar.spec
+++ b/erlang-rebar.spec
@@ -38,6 +38,10 @@ rebar compile -v
install %{SOURCE1} ./rebar
%endif
+%if %{with tests}
+./rebar eunit -v
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir} \
@@ -49,10 +53,6 @@ cp -p ebin/*.beam $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar-%{version}/ebin
cp -p include/*.hrl $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar-%{version}/include
cp -a priv $RPM_BUILD_ROOT%{_libdir}/erlang/lib/rebar-%{version}
-%if %{with tests}
-./rebar eunit -v
-%endif
-
%files
%defattr(644,root,root,755)
%doc LICENSE NOTES.org README.md THANKS rebar.config.sample
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/erlang-rebar.git/commitdiff/ad275ce4a2c68419d7aecd6a9c80f9beb392d43a
More information about the pld-cvs-commit
mailing list