diff --git a/fish.spec.in b/fish.spec.in index 1793ae48d..2acffd0e9 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -25,6 +25,13 @@ BuildRequires: gcc48 gcc48-c++ BuildRequires: pcre2-devel %endif +# for tests +BuildRequires: expect +%if 0%{?fedora} +# Need the en_US.utf-8 locale at a minimum +BuildRequires: glibc-langpack-en +%endif + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: python @@ -73,6 +80,13 @@ make %{?_smp_mflags} %endif %find_lang %{name} +%check +# OpenSUSE does out-of-tree builds and defines __builddir +%if 0%{?__builddir:1} +cd %__builddir +%endif +make test + %clean rm -rf $RPM_BUILD_ROOT