[tcsh] spec: run make check in %check

Pavel Raiskup praiskup at fedoraproject.org
Wed Aug 27 15:05:38 UTC 2014


commit e28d3e79df0ded0123420dd9611273404d16ee0a
Author: Pavel Raiskup <praiskup at redhat.com>
Date:   Wed Aug 27 14:03:09 2014 +0200

    spec: run make check in %check
    
    Version: 6.18.01-12

 tcsh.spec |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/tcsh.spec b/tcsh.spec
index bf7e49f..185a7f0 100644
--- a/tcsh.spec
+++ b/tcsh.spec
@@ -34,6 +34,7 @@ URL: http://www.tcsh.org/
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: autoconf, automake, ncurses-devel, gettext-devel, git
 
+
 %description
 Tcsh is an enhanced but completely compatible version of csh, the C
 shell.  Tcsh is a command language interpreter which can be used both
@@ -42,6 +43,7 @@ Tcsh includes a command line editor, programmable word completion,
 spelling correction, a history mechanism, job control and a C language
 like syntax.
 
+
 %prep
 %autosetup -p1 -S git
 
@@ -51,6 +53,7 @@ for i in Fixes WishList; do
  mv "${i}_" "$i"
 done
 
+
 %build
 # For tcsh-6.14.00-tinfo.patch
 autoreconf
@@ -58,6 +61,7 @@ autoreconf
 make %{?_smp_mflags} all
 make %{?_smp_mflags} -C nls catalogs
 
+
 %install
 rm -rf $RPM_BUILD_ROOT
 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_bindir}
@@ -88,9 +92,15 @@ ru russian
 uk ukrainian
 _EOF
 
+
+%check
+make check
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+
 %post
 if [ ! -f /etc/shells ]; then
  echo "%{_bindir}/tcsh" >> /etc/shells
@@ -102,6 +112,7 @@ else
  echo "%{_bindir}/csh"	>> /etc/shells
 fi
 
+
 %postun
 if [ ! -x %{_bindir}/tcsh ]; then
  grep -v '^%{_bindir}/tcsh$'  /etc/shells | \
@@ -109,6 +120,7 @@ if [ ! -x %{_bindir}/tcsh ]; then
  mv /etc/shells.rpm /etc/shells
 fi
 
+
 %files -f tcsh.lang
 %defattr(-,root,root,-)
 %doc Copyright BUGS FAQ Fixes NewThings WishList complete.tcsh README
@@ -116,9 +128,11 @@ fi
 %{_bindir}/csh
 %{_mandir}/man1/*.1*
 
+
 %changelog
 * Wed Aug 27 2014 Pavel Raiskup <praiskup at redhat.com> - 6.18.01-12
 - use the %%autosetup macro
+- enable testsuite in %%check
 
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.18.01-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild


More information about the scm-commits mailing list