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>
|
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}
|
%{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
|
||||||
|
|||||||
Reference in New Issue
Block a user