|
@@ -1,30 +1,23 @@
|
|
|
Summary: A front end for testing other programs.
|
|
|
Summary(ja): 各種プログラムをテストするためのフロントエンド
|
|
|
Name: dejagnu
|
|
|
-Version: 1.5.1
|
|
|
-Release: 1%{?_dist_release}
|
|
|
Epoch: 1
|
|
|
+Version: 1.6.3
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: programming
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: shaolin
|
|
|
|
|
|
-Group: Development/Tools
|
|
|
License: GPLv2
|
|
|
+URL: https://www.gnu.org/software/dejagnu/
|
|
|
+Source: https://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
|
|
|
|
|
|
-Source: ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-%{version}.tar.gz
|
|
|
-Patch1: dejagnu-1.5-smp-1.patch
|
|
|
-Patch2: dejagnu-1.5-runtest.patch
|
|
|
-Patch3: dejagnu-1.5-usrmove.patch
|
|
|
-Patch4: dejagnu-1.5-gfortran.patch
|
|
|
-Patch5: dejagnu-1.5-aarch64.patch
|
|
|
-
|
|
|
-Requires: tcl >= 8.0, expect >= 5.21
|
|
|
+Requires: tcl >= 8.6, expect >= 5.21
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildArch: noarch
|
|
|
BuildRequires: expect screen texinfo
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-Packager: shaolin
|
|
|
-
|
|
|
-
|
|
|
%description
|
|
|
DejaGnu is an Expect/Tcl based framework for testing other programs.
|
|
|
DejaGnu has several purposes: to make it easy to write tests for any
|
|
@@ -34,41 +27,52 @@ output format of all tests (making it easier to integrate the testing
|
|
|
into software development).
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n dejagnu-%{version}
|
|
|
find . -name \*.rej -exec rm {} \;
|
|
|
-%patch1 -p1
|
|
|
-%patch2 -p1
|
|
|
-%patch3 -p1
|
|
|
-%patch4 -p1
|
|
|
-%patch5 -p1
|
|
|
|
|
|
|
|
|
%build
|
|
|
+mkdir %{_vpath_builddir}
|
|
|
+pushd %{_vpath_builddir}
|
|
|
+%define _configure ../configure
|
|
|
%configure -v
|
|
|
+popd
|
|
|
+
|
|
|
+
|
|
|
+%install
|
|
|
+rm -rf %{buildroot}
|
|
|
+pushd %{_vpath_builddir}
|
|
|
+%makeinstall
|
|
|
+rm -f %{buildroot}%{_infodir}/dir
|
|
|
+chmod a-x %{buildroot}/%{_datadir}/dejagnu/runtest.exp
|
|
|
+make DESTDIR=%{buildroot} install-man
|
|
|
+install -D -m 644 ../doc/dejagnu.info %{buildroot}/%{_infodir}/%{name}.info
|
|
|
+popd
|
|
|
+
|
|
|
|
|
|
%check
|
|
|
+pushd %{_vpath_builddir}
|
|
|
echo ============TESTING===============
|
|
|
# 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 have better idea, we accept patches.
|
|
|
TMP=`mktemp`
|
|
|
-screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
|
|
|
+export SCREENDIR=`mktemp -d`
|
|
|
+#screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
|
|
|
+screen -D -m sh -c '(make check; echo $?) >> '$TMP
|
|
|
RESULT=`tail -n 1 $TMP`
|
|
|
cat $TMP
|
|
|
rm -f $TMP
|
|
|
+rm -rf $SCREENDIR
|
|
|
echo ============END TESTING===========
|
|
|
+popd
|
|
|
exit $RESULT
|
|
|
|
|
|
-%install
|
|
|
-rm -rf %{buildroot}
|
|
|
-%makeinstall
|
|
|
-rm -f %{buildroot}%{_infodir}/dir
|
|
|
-chmod a-x %{buildroot}/%{_datadir}/dejagnu/runtest.exp
|
|
|
-make DESTDIR=%{buildroot} install-man
|
|
|
-install -D -m 644 doc/dejagnu.info %{buildroot}/%{_infodir}/%{name}.info
|
|
|
-
|
|
|
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
@@ -86,7 +90,9 @@ fi
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc COPYING NEWS README AUTHORS INSTALL ChangeLog doc/dejagnu.texi
|
|
|
+%license COPYING
|
|
|
+%doc NEWS README AUTHORS INSTALL ChangeLog doc/dejagnu.texi
|
|
|
+%{_bindir}/dejagnu
|
|
|
%{_bindir}/runtest
|
|
|
%{_datadir}/dejagnu
|
|
|
%{_includedir}/dejagnu.h
|
|
@@ -95,6 +101,13 @@ fi
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Jun 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1:1.6.3-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
+* Fri Oct 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1:1.6.2-1
|
|
|
+- new upstream release.
|
|
|
+- dropped all patches.
|
|
|
+
|
|
|
* Mon Jan 13 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:1.5.1-1
|
|
|
- updated to 1.5.1; import patches from Fedora; spec cleanup
|
|
|
|
|
@@ -183,4 +196,4 @@ fi
|
|
|
|
|
|
* Sun Feb 1 1998 Jeff Johnson <jbj@jbj.org>
|
|
|
- Create.
|
|
|
-
|
|
|
+
|