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