- A few more cleanups after discussion with reviewer.

- Resolves: #225679
This commit is contained in:
Petr Machata 2007-10-04 15:05:21 +00:00
parent 31b394f044
commit 7fc08c8c92

View File

@ -1,7 +1,7 @@
Summary: A front end for testing other programs
Name: dejagnu
Version: 1.4.4
Release: 9
Release: 10
Epoch: 1
License: GPLv2+
Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
@ -34,15 +34,14 @@ into software development).
%check
echo ============TESTING===============
# Dejagnu needs to report to user occasionally, and it needs a
# Dejagnu test suite also has to test reporting to user. It needs a
# terminal for that. That doesn't compute in mock. Work around it by
# running the test under screen and communicating back to test runner
# via temporary file. If you come with better method, please do tell.
TMP=`mktemp` || exit 1
screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
RESULT=`tail -n 1 $TMP`
[ $RESULT != 0 ] && cat $TMP
rm -f $TMP
cat $TMP
echo ============END TESTING===========
exit $RESULT
@ -50,11 +49,7 @@ exit $RESULT
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
chmod a-x $RPM_BUILD_ROOT/%{_datadir}/dejagnu/runtest.exp
pushd doc
make docs
make DESTDIR=$RPM_BUILD_ROOT install-man
popd
make -C doc DESTDIR=$RPM_BUILD_ROOT install-man
%clean
rm -rf $RPM_BUILD_ROOT
@ -68,6 +63,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/*/*
%changelog
* Thu Oct 4 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-10
- A few more cleanups after discussion with reviewer.
- Resolves: #225679
* Wed Oct 3 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-9
- Clean up spec per merge review comments.
- Fix testsuite.