SHA256
1
0
forked from pool/runawk

2 Commits

2 changed files with 15 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 6 12:19:33 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Run the tests on a copy of files to not let tests influence
the build result (boo#1227364)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 11 13:29:32 UTC 2019 - Ismail Dönmez <idonmez@suse.com> Mon Mar 11 13:29:32 UTC 2019 - Ismail Dönmez <idonmez@suse.com>

View File

@@ -53,10 +53,11 @@ export NOSUBDIR=a_getopt
%{env} %{env}
%{mkcmake} all %{mkcmake} all
%check %install
%{env} %{env}
export TMPDIR=/tmp export DESTDIR=%{buildroot}
%{mkcmake} test %{mkcmake} install
cp -a `pwd`{,.copy_for_test}
# Remove unneeded files # Remove unneeded files
rm examples/Makefile examples/*.sh examples/*.in rm examples/Makefile examples/*.sh examples/*.in
@@ -64,10 +65,12 @@ rm examples/Makefile examples/*.sh examples/*.in
# Fix the shebang lines # Fix the shebang lines
sed -i s,"/usr/bin/env ","/usr/bin/", examples/demo* sed -i s,"/usr/bin/env ","/usr/bin/", examples/demo*
%install %check
%{env} %{env}
export DESTDIR=%{buildroot} export TMPDIR=/tmp
%{mkcmake} install # run on a copy of files to not let tests influence the build result (boo#1227364)
cd `pwd`.copy_for_test
%{mkcmake} test
%files %files
%license doc/LICENSE %license doc/LICENSE