[521] | 1 | Summary: A front end for testing other programs. |
---|
| 2 | Summary(ja): 各種プログラムをテストするためのフロントエンド |
---|
| 3 | Name: dejagnu |
---|
[8166] | 4 | Version: 1.5.1 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[521] | 6 | Epoch: 1 |
---|
[3937] | 7 | |
---|
| 8 | Group: Development/Tools |
---|
| 9 | License: GPLv2 |
---|
| 10 | |
---|
| 11 | Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz |
---|
[8166] | 12 | Patch1: dejagnu-1.5-smp-1.patch |
---|
| 13 | Patch2: dejagnu-1.5-runtest.patch |
---|
| 14 | Patch3: dejagnu-1.5-usrmove.patch |
---|
| 15 | Patch4: dejagnu-1.5-gfortran.patch |
---|
| 16 | Patch5: dejagnu-1.5-aarch64.patch |
---|
[3937] | 17 | |
---|
[521] | 18 | Requires: tcl >= 8.0, expect >= 5.21 |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | BuildArch: noarch |
---|
[8166] | 21 | BuildRequires: expect screen texinfo |
---|
[521] | 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
[8166] | 25 | Packager: shaolin |
---|
[521] | 26 | |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | DejaGnu is an Expect/Tcl based framework for testing other programs. |
---|
| 30 | DejaGnu has several purposes: to make it easy to write tests for any |
---|
| 31 | program; to allow you to write tests which will be portable to any |
---|
| 32 | host or target where a program must be tested; and to standardize the |
---|
| 33 | output format of all tests (making it easier to integrate the testing |
---|
| 34 | into software development). |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q -n dejagnu-%{version} |
---|
| 39 | find . -name \*.rej -exec rm {} \; |
---|
| 40 | %patch1 -p1 |
---|
[8166] | 41 | %patch2 -p1 |
---|
[521] | 42 | %patch3 -p1 |
---|
| 43 | %patch4 -p1 |
---|
[8166] | 44 | %patch5 -p1 |
---|
[521] | 45 | |
---|
| 46 | |
---|
| 47 | %build |
---|
| 48 | %configure -v |
---|
| 49 | |
---|
[8166] | 50 | %check |
---|
[521] | 51 | echo ============TESTING=============== |
---|
[8166] | 52 | # Dejagnu test suite also has to test reporting to user. It needs a |
---|
| 53 | # terminal for that. That doesn't compute in mock. Work around it by |
---|
| 54 | # running the test under screen and communicating back to test runner |
---|
| 55 | # via temporary file. If you have better idea, we accept patches. |
---|
| 56 | TMP=`mktemp` |
---|
| 57 | screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP |
---|
| 58 | RESULT=`tail -n 1 $TMP` |
---|
| 59 | cat $TMP |
---|
| 60 | rm -f $TMP |
---|
[521] | 61 | echo ============END TESTING=========== |
---|
[8166] | 62 | exit $RESULT |
---|
[521] | 63 | |
---|
| 64 | %install |
---|
[8166] | 65 | rm -rf %{buildroot} |
---|
[521] | 66 | %makeinstall |
---|
[8166] | 67 | rm -f %{buildroot}%{_infodir}/dir |
---|
| 68 | chmod a-x %{buildroot}/%{_datadir}/dejagnu/runtest.exp |
---|
| 69 | make DESTDIR=%{buildroot} install-man |
---|
| 70 | install -D -m 644 doc/dejagnu.info %{buildroot}/%{_infodir}/%{name}.info |
---|
[521] | 71 | |
---|
| 72 | |
---|
| 73 | %clean |
---|
[8166] | 74 | rm -rf %{buildroot} |
---|
[521] | 75 | |
---|
| 76 | |
---|
| 77 | %post |
---|
| 78 | /sbin/install-info %{_infodir}/%{name}.info.gz --dir-file=%{_infodir}/dir ||: |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %preun |
---|
| 82 | if [ $1 = 0 ]; then |
---|
| 83 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||: |
---|
| 84 | fi |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | %files |
---|
| 88 | %defattr(-,root,root) |
---|
[8166] | 89 | %doc COPYING NEWS README AUTHORS INSTALL ChangeLog doc/dejagnu.texi |
---|
[521] | 90 | %{_bindir}/runtest |
---|
| 91 | %{_datadir}/dejagnu |
---|
| 92 | %{_includedir}/dejagnu.h |
---|
| 93 | %{_mandir}/*/* |
---|
| 94 | %{_infodir}/* |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %changelog |
---|
[8166] | 98 | * Mon Jan 13 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:1.5.1-1 |
---|
| 99 | - updated to 1.5.1; import patches from Fedora; spec cleanup |
---|
| 100 | |
---|
[3937] | 101 | * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.4-2 |
---|
| 102 | - rebuilt with current VineSeed |
---|
| 103 | - added BR: texinfo |
---|
| 104 | |
---|
[521] | 105 | * Fri Sep 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.4-1 |
---|
| 106 | - new versioning policy; spec in UTF-8 |
---|
| 107 | - add Source2, Patch3 and Patch4 from Fedora 1.4.4-13 |
---|
| 108 | |
---|
[8166] | 109 | * Tue Mar 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl3 |
---|
[521] | 110 | - rebuilt with gcc-4.1.x |
---|
| 111 | - imported Patch1 from FC 1.4.4-5 |
---|
| 112 | |
---|
| 113 | * Sat May 20 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.4-0vl2 |
---|
| 114 | - use License instead of Copyright |
---|
| 115 | |
---|
| 116 | * Tue Mar 08 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl1 |
---|
| 117 | - updated to 1.4.4 |
---|
| 118 | |
---|
| 119 | * Sun May 09 2004 Satoshi MACHINO <machino@vinelinux.org> 1.4.2-6vl2 |
---|
| 120 | - moved %%{_libexecdir}/config.guess into %%{_datadir}/dejagnu |
---|
| 121 | - included overview docs |
---|
| 122 | - added BuildRequires |
---|
| 123 | |
---|
| 124 | * Sun Nov 10 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.2-6vl1 |
---|
| 125 | - based on 1.4.2-6 from Rawhide and built for Vine Linux |
---|
| 126 | |
---|
| 127 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 128 | - automated rebuild |
---|
| 129 | |
---|
| 130 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
| 131 | - automated rebuild |
---|
| 132 | |
---|
| 133 | * Mon Apr 29 2002 Jakub Jelinek <jakub@redhat.com> 1.4.2-4 |
---|
| 134 | - fix makefile style variable passing (#63984) |
---|
| 135 | |
---|
| 136 | * Thu Feb 28 2002 Jakub Jelinek <jakub@redhat.com> 1.4.2-3 |
---|
| 137 | - rebuild |
---|
| 138 | |
---|
| 139 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 140 | - automated rebuild |
---|
| 141 | |
---|
| 142 | * Wed Nov 28 2001 Jakub Jelinek <jakub@redhat.com> 1.4.2-1 |
---|
| 143 | - update to 1.4.2, mainly so that it can be built with gcc3+ |
---|
| 144 | |
---|
| 145 | * Fri Sep 7 2001 Jakub Jelinek <jakub@redhat.com> 1.4.1-3 |
---|
| 146 | - make it noarch again |
---|
| 147 | |
---|
| 148 | * Wed Aug 29 2001 Jakub Jelinek <jakub@redhat.com> |
---|
| 149 | - fix a typo (#52404) |
---|
| 150 | |
---|
| 151 | * Thu Jun 28 2001 Tim Powers <timp@redhat.com> |
---|
| 152 | - rebuilt for the distro |
---|
| 153 | |
---|
| 154 | * Tue Feb 27 2001 Tim Powers <timp@redhat.com> |
---|
| 155 | - minor modifications to the spec file. Built for Powertools. |
---|
| 156 | - added Epoch |
---|
| 157 | |
---|
| 158 | * Wed Feb 21 2001 Rob Savoye <rob@welcomehome.org> |
---|
| 159 | - Fixed Requires line, and changed the URL to the new ftp site. |
---|
| 160 | |
---|
| 161 | * Sun Oct 31 1999 Rob Savoye <rob@welcomehome.org> |
---|
| 162 | - updated to the latest snapshot |
---|
| 163 | - added doc files |
---|
| 164 | - added the site.exp config file |
---|
| 165 | |
---|
| 166 | * Mon Jul 12 1999 Tim Powers <timp@redhat.com> |
---|
| 167 | - updated to 19990628 |
---|
| 168 | - updated patches as needed |
---|
| 169 | - added %defattr in files section |
---|
| 170 | |
---|
| 171 | * Wed Mar 10 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 172 | - add alpha expect patch (#989) |
---|
| 173 | - use %configure |
---|
| 174 | |
---|
| 175 | * Thu Dec 17 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 176 | - Update to 19981215. |
---|
| 177 | |
---|
| 178 | * Thu Nov 12 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 179 | - Update to 1998-10-29. |
---|
| 180 | |
---|
| 181 | * Wed Jul 8 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 182 | - Update to 1998-05-28. |
---|
| 183 | |
---|
| 184 | * Sun Feb 1 1998 Jeff Johnson <jbj@jbj.org> |
---|
| 185 | - Create. |
---|
| 186 | |
---|