forked from pool/runawk
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 01aa1a7b3d | |||
| 05e431c24c |
@@ -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>
|
||||
|
||||
|
||||
15
runawk.spec
15
runawk.spec
@@ -53,10 +53,11 @@ export NOSUBDIR=a_getopt
|
||||
%{env}
|
||||
%{mkcmake} all
|
||||
|
||||
%check
|
||||
%install
|
||||
%{env}
|
||||
export TMPDIR=/tmp
|
||||
%{mkcmake} test
|
||||
export DESTDIR=%{buildroot}
|
||||
%{mkcmake} install
|
||||
cp -a `pwd`{,.copy_for_test}
|
||||
|
||||
# Remove unneeded files
|
||||
rm examples/Makefile examples/*.sh examples/*.in
|
||||
@@ -64,10 +65,12 @@ rm examples/Makefile examples/*.sh examples/*.in
|
||||
# Fix the shebang lines
|
||||
sed -i s,"/usr/bin/env ","/usr/bin/", examples/demo*
|
||||
|
||||
%install
|
||||
%check
|
||||
%{env}
|
||||
export DESTDIR=%{buildroot}
|
||||
%{mkcmake} install
|
||||
export TMPDIR=/tmp
|
||||
# run on a copy of files to not let tests influence the build result (boo#1227364)
|
||||
cd `pwd`.copy_for_test
|
||||
%{mkcmake} test
|
||||
|
||||
%files
|
||||
%license doc/LICENSE
|
||||
|
||||
Reference in New Issue
Block a user