parent
9333938c4a
commit
209d65323f
@ -1 +1,2 @@
|
|||||||
dejagnu-1.4.4.tar.gz
|
dejagnu-1.4.4.tar.gz
|
||||||
|
dejagnu.texi
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
diff -urp dejagnu-1.4.4/doc/runtest.1 dejagnu-1.4.4-pm/doc/runtest.1
|
|
||||||
--- dejagnu-1.4.4/doc/runtest.1 2003-08-17 03:24:41.000000000 +0200
|
|
||||||
+++ dejagnu-1.4.4-pm/doc/runtest.1 2007-03-07 13:38:07.000000000 +0100
|
|
||||||
@@ -14,9 +14,7 @@ and variations on how to run them.
|
|
||||||
|
|
||||||
You can find a comprehensive description of DejaGnu and \fBruntest\fR in
|
|
||||||
.I
|
|
||||||
-The DejaGnu Testing Framework
|
|
||||||
-or its Info version,
|
|
||||||
-.BR dejagnu.info .
|
|
||||||
+The DejaGnu Testing Framework.
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
.B --all
|
|
||||||
@@ -110,8 +108,7 @@ file \fBsite.exp\fR, created during conf
|
|
||||||
sets the exit code to 1 if any of the tests failed, or
|
|
||||||
sets it to 0 if all the tests passed.
|
|
||||||
.SH SEE ALSO
|
|
||||||
-.I The DejaGnu Testing Framework
|
|
||||||
-.RB ( dejagnu.info ).
|
|
||||||
+.I The DejaGnu Testing Framework.
|
|
||||||
This is the DejaGnu manual; its source is the SGML files
|
|
||||||
.B
|
|
||||||
doc/*.sgml.
|
|
25
dejagnu.spec
25
dejagnu.spec
@ -1,10 +1,11 @@
|
|||||||
Summary: A front end for testing other programs
|
Summary: A front end for testing other programs
|
||||||
Name: dejagnu
|
Name: dejagnu
|
||||||
Version: 1.4.4
|
Version: 1.4.4
|
||||||
Release: 10
|
Release: 11
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
|
Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
|
||||||
|
Source2: dejagnu.texi
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://www.gnu.org/software/dejagnu/
|
URL: http://www.gnu.org/software/dejagnu/
|
||||||
Requires: expect
|
Requires: expect
|
||||||
@ -12,7 +13,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: expect screen
|
BuildRequires: expect screen
|
||||||
Patch1: dejagnu-1.4.4-smp-1.patch
|
Patch1: dejagnu-1.4.4-smp-1.patch
|
||||||
Patch2: dejagnu-1.4.4-no-info.patch
|
|
||||||
Patch3: dejagnu-1.4.4-testsuite.patch
|
Patch3: dejagnu-1.4.4-testsuite.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -26,22 +26,23 @@ into software development).
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure -v
|
%configure -v
|
||||||
|
makeinfo %{SOURCE2} -o doc/%{name}.info
|
||||||
|
|
||||||
%check
|
%check
|
||||||
echo ============TESTING===============
|
echo ============TESTING===============
|
||||||
# Dejagnu test suite also has to test reporting to user. 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
|
# terminal for that. That doesn't compute in mock. Work around it by
|
||||||
# running the test under screen and communicating back to test runner
|
# running the test under screen and communicating back to test runner
|
||||||
# via temporary file. If you come with better method, please do tell.
|
# via temporary file. If you have better idea, we accept patches.
|
||||||
TMP=`mktemp` || exit 1
|
TMP=`mktemp`
|
||||||
screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
|
screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
|
||||||
RESULT=`tail -n 1 $TMP`
|
RESULT=`tail -n 1 $TMP`
|
||||||
cat $TMP
|
cat $TMP
|
||||||
|
rm -f $TMP
|
||||||
echo ============END TESTING===========
|
echo ============END TESTING===========
|
||||||
exit $RESULT
|
exit $RESULT
|
||||||
|
|
||||||
@ -50,6 +51,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
chmod a-x $RPM_BUILD_ROOT/%{_datadir}/dejagnu/runtest.exp
|
chmod a-x $RPM_BUILD_ROOT/%{_datadir}/dejagnu/runtest.exp
|
||||||
make -C doc DESTDIR=$RPM_BUILD_ROOT install-man
|
make -C doc DESTDIR=$RPM_BUILD_ROOT install-man
|
||||||
|
install -D -m 644 doc/dejagnu.info $RPM_BUILD_ROOT/%{_infodir}/%{name}.info
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/install-info %{_infodir}/%{name}.info.gz --dir-file=%{_infodir}/dir ||:
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ $1 = 0 ]; then
|
||||||
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||||
|
fi
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -61,8 +71,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/dejagnu
|
%{_datadir}/dejagnu
|
||||||
%{_includedir}/dejagnu.h
|
%{_includedir}/dejagnu.h
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
%{_infodir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 12 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-11
|
||||||
|
- Install info file.
|
||||||
|
- Resolves: #230652
|
||||||
|
|
||||||
* Thu Oct 4 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-10
|
* Thu Oct 4 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-10
|
||||||
- A few more cleanups after discussion with reviewer.
|
- A few more cleanups after discussion with reviewer.
|
||||||
- Resolves: #225679
|
- Resolves: #225679
|
||||||
|
Loading…
Reference in New Issue
Block a user