spec: run make check in %check

Version: 6.18.01-12
This commit is contained in:
Pavel Raiskup 2014-08-27 14:03:09 +02:00
parent 97c6af701c
commit e28d3e79df

View File

@ -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@redhat.com> - 6.18.01-12
- use the %%autosetup macro
- enable testsuite in %%check
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.18.01-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild