bb3429
Summary: A front end for testing other programs
bb3429
Name: dejagnu
bb3429
Version: 1.5.1
bb3429
Release: 3%{?dist}
bb3429
Epoch: 1
bb3429
License: GPLv3+
bb3429
Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
bb3429
Group: Development/Tools
bb3429
URL: http://www.gnu.org/software/dejagnu/
bb3429
Requires: expect
bb3429
BuildArch: noarch
bb3429
BuildRequires: expect screen texinfo
bb3429
Patch1: dejagnu-1.5-smp-1.patch
bb3429
Patch2: dejagnu-1.5-runtest.patch
bb3429
Patch3: dejagnu-1.5-usrmove.patch
bb3429
Patch4: dejagnu-1.5-gfortran.patch
bb3429
Patch5: dejagnu-1.5-aarch64.patch
bb3429
bb3429
%description
bb3429
DejaGnu is an Expect/Tcl based framework for testing other programs.
bb3429
DejaGnu has several purposes: to make it easy to write tests for any
bb3429
program; to allow you to write tests which will be portable to any
bb3429
host or target where a program must be tested; and to standardize the
bb3429
output format of all tests (making it easier to integrate the testing
bb3429
into software development).
bb3429
bb3429
%prep
bb3429
%setup -q
bb3429
%patch1 -p1
bb3429
%patch2 -p1
bb3429
%patch3 -p1
bb3429
%patch4 -p1
bb3429
%patch5 -p1
bb3429
bb3429
%build
bb3429
%configure -v
bb3429
bb3429
%check
bb3429
echo ============TESTING===============
bb3429
# Dejagnu test suite also has to test reporting to user.  It needs a
bb3429
# terminal for that.  That doesn't compute in mock.  Work around it by
bb3429
# running the test under screen and communicating back to test runner
bb3429
# via temporary file.  If you have better idea, we accept patches.
bb3429
TMP=`mktemp`
bb3429
screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
bb3429
RESULT=`tail -n 1 $TMP`
bb3429
cat $TMP
bb3429
rm -f $TMP
bb3429
echo ============END TESTING===========
bb3429
exit $RESULT
bb3429
bb3429
%install
bb3429
make DESTDIR=$RPM_BUILD_ROOT install
bb3429
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
bb3429
chmod a-x $RPM_BUILD_ROOT/%{_datadir}/dejagnu/runtest.exp
bb3429
make DESTDIR=$RPM_BUILD_ROOT install-man
bb3429
install -D -m 644 doc/dejagnu.info $RPM_BUILD_ROOT/%{_infodir}/%{name}.info
bb3429
bb3429
%post
bb3429
/sbin/install-info %{_infodir}/%{name}.info.gz --dir-file=%{_infodir}/dir &> /dev/null
bb3429
:
bb3429
bb3429
%preun
bb3429
if [ $1 = 0 ]; then
bb3429
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir &> /dev/null
bb3429
fi
bb3429
:
bb3429
bb3429
%clean
bb3429
rm -rf $RPM_BUILD_ROOT
bb3429
bb3429
%files
bb3429
%doc COPYING NEWS README AUTHORS ChangeLog doc/dejagnu.texi
bb3429
%{_bindir}/runtest
bb3429
%{_datadir}/dejagnu
bb3429
%{_includedir}/dejagnu.h
bb3429
%{_mandir}/*/*
bb3429
%{_infodir}/dejagnu*
bb3429
bb3429
%changelog
bb3429
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:1.5.1-3
bb3429
- Mass rebuild 2013-12-27
bb3429
bb3429
* Mon Mar 25 2013 Honza Horak <hhorak@redhat.com> - 1:1.5.1-2
bb3429
- add aarch64 support into config.guess and config.sub
bb3429
bb3429
* Fri Mar 22 2013 Honza Horak <hhorak@redhat.com> - 1:1.5.1-1
bb3429
- Update to 1.5.1
bb3429
bb3429
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5-7
bb3429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bb3429
bb3429
* Mon Aug 27 2012 Honza Horak <hhorak@redhat.com> 1:1.5-6
bb3429
- Spec file cleanup
bb3429
- Use dejagnu.texi from upstream source
bb3429
bb3429
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5-5
bb3429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bb3429
bb3429
* Mon May 14 2012 Honza Horak <hhorak@redhat.com> 1:1.5-4
bb3429
- gfortran support added
bb3429
  Resolves: #635651
bb3429
bb3429
* Thu Mar 15 2012 Honza Horak <hhorak@redhat.com> 1:1.5-3
bb3429
- fixed search runtest.exp after usrmove
bb3429
  Resolves: #788811
bb3429
bb3429
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5-2
bb3429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bb3429
bb3429
* Tue Mar 22 2011 Honza Horak <hhorak@redhat.com> 1:1.5-1
bb3429
- Update to 1.5, license changed to GPLv3+
bb3429
bb3429
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.4-18
bb3429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bb3429
bb3429
* Fri Jan 22 2010 Jiri Moskovcak <jmoskovc@redhat.com> - 1.4.4-17
bb3429
- added utils speedup patch from jakub@redhat.com
bb3429
- Resolves: #557564
bb3429
bb3429
* Fri Oct 16 2009 Jiri Moskovcak <jmoskovc@redhat.com> - 1.4.4-16
bb3429
- fixed installation with --excludedocs rhbz#515949
bb3429
bb3429
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.4-15
bb3429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bb3429
bb3429
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.4-14
bb3429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bb3429
bb3429
* Wed Aug 27 2008 Jiri Moskovcak <jmoskovc@redhat.com> - 1:1.4.4-13
bb3429
- rewriten patch to work with fuzz=0
bb3429
bb3429
* Wed Aug 27 2008 Jiri Moskovcak <jmoskovc@redhat.com> - 1:1.4.4-12
bb3429
- fixed runtest (patch from jan.kratochvil@redhat.com)
bb3429
- Resolves: #460153
bb3429
bb3429
* Mon Nov 12 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-11
bb3429
- Install info file.
bb3429
- Resolves: #230652
bb3429
bb3429
* Thu Oct  4 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-10
bb3429
- A few more cleanups after discussion with reviewer.
bb3429
- Resolves: #225679
bb3429
bb3429
* Wed Oct  3 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-9
bb3429
- Clean up spec per merge review comments.
bb3429
- Fix testsuite.
bb3429
- Resolves: #225679
bb3429
bb3429
* Thu Aug 16 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-8
bb3429
- Fix licesing tag.
bb3429
bb3429
* Wed Mar  7 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-7
bb3429
- Remove mention of dejagnu.info from manpage, per comments in
bb3429
  doc/Makefile.
bb3429
- Resolves: #230652
bb3429
bb3429
* Wed Feb  7 2007 Petr Machata <pmachata@redhat.com> - 1:1.4.4-6
bb3429
- Tidy up the specfile per rpmlint comments
bb3429
bb3429
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.4.4-5.1
bb3429
- rebuild
bb3429
bb3429
* Wed Feb 2 2006 Petr Machata <pmachata@redhat.com> 1:1.4.4-5
bb3429
- Applying H.J. Lu's race condition patch. (#166000)
bb3429
bb3429
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
bb3429
- rebuilt
bb3429
bb3429
* Sat Mar  5 2005 Jakub Jelinek <jakub@redhat.com> 1:1.4.4-4
bb3429
- rebuilt with GCC 4
bb3429
bb3429
* Mon Nov  8 2004 Jakub Jelinek <jakub@redhat.com> 1:1.4.4-3
bb3429
- add URL (#138280)
bb3429
bb3429
* Mon Sep 27 2004 Warren Togami <wtogami@redhat.com> 1:1.4.4-2
bb3429
- remove INSTALL & redundant copies of overview
bb3429
bb3429
* Tue Aug  3 2004 Jakub Jelinek <jakub@redhat.com> 1:1.4.4-1
bb3429
- update to 1.4.4
bb3429
- run make check during rpm build
bb3429
bb3429
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
bb3429
- rebuilt
bb3429
bb3429
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
bb3429
- rebuilt
bb3429
bb3429
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
bb3429
- rebuilt
bb3429
bb3429
* Mon Dec 30 2002 Karsten Hopp <karsten@redhat.de> 1:1.4.2-9
bb3429
- more missing BuildRequires
bb3429
bb3429
* Tue Dec 17 2002 Karsten Hopp <karsten@redhat.de> 1:1.4.2-8
bb3429
- Add jadetex Buildrequires
bb3429
bb3429
* Wed Nov 27 2002 Tim Powers <timp@redhat.com> 1:1.4.2-7
bb3429
- include dejagnu.h
bb3429
- move %%{_libexecdir}/config.guess into %%{_datadir}/dejagnu 
bb3429
- include overview docs (bug #59095)
bb3429
bb3429
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
bb3429
- automated rebuild
bb3429
bb3429
* Thu May 23 2002 Tim Powers <timp@redhat.com>
bb3429
- automated rebuild
bb3429
bb3429
* Mon Apr 29 2002 Jakub Jelinek <jakub@redhat.com> 1.4.2-4
bb3429
- fix makefile style variable passing (#63984)
bb3429
bb3429
* Thu Feb 28 2002 Jakub Jelinek <jakub@redhat.com> 1.4.2-3
bb3429
- rebuild
bb3429
bb3429
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
bb3429
- automated rebuild
bb3429
bb3429
* Wed Nov 28 2001 Jakub Jelinek <jakub@redhat.com> 1.4.2-1
bb3429
- update to 1.4.2, mainly so that it can be built with gcc3+
bb3429
bb3429
* Fri Sep  7 2001 Jakub Jelinek <jakub@redhat.com> 1.4.1-3
bb3429
- make it noarch again
bb3429
bb3429
* Wed Aug 29 2001 Jakub Jelinek <jakub@redhat.com>
bb3429
- fix a typo (#52404)
bb3429
bb3429
* Thu Jun 28 2001 Tim Powers <timp@redhat.com>
bb3429
- rebuilt for the distro
bb3429
bb3429
* Tue Feb 27 2001 Tim Powers <timp@redhat.com>
bb3429
- minor modifications to the spec file. Built for Powertools.
bb3429
- added Epoch
bb3429
bb3429
* Wed Feb 21 2001 Rob Savoye <rob@welcomehome.org>
bb3429
- Fixed Requires line, and changed the URL to the new ftp site.
bb3429
bb3429
* Sun Oct 31 1999 Rob Savoye <rob@welcomehome.org>
bb3429
- updated to the latest snapshot
bb3429
- added doc files
bb3429
- added the site.exp config file
bb3429
bb3429
* Mon Jul 12 1999 Tim Powers <timp@redhat.com>
bb3429
- updated to 19990628
bb3429
- updated patches as needed
bb3429
- added %%defattr in files section
bb3429
bb3429
* Wed Mar 10 1999 Jeff Johnson <jbj@redhat.com>
bb3429
- add alpha expect patch (#989)
bb3429
- use %%configure
bb3429
bb3429
* Thu Dec 17 1998 Jeff Johnson <jbj@redhat.com>
bb3429
- Update to 19981215.
bb3429
bb3429
* Thu Nov 12 1998 Jeff Johnson <jbj@redhat.com>
bb3429
- Update to 1998-10-29.
bb3429
bb3429
* Wed Jul  8 1998 Jeff Johnson <jbj@redhat.com>
bb3429
- Update to 1998-05-28.
bb3429
bb3429
* Sun Feb  1 1998 Jeff Johnson <jbj@jbj.org>
bb3429
- Create.
bb3429