diff --git a/slang.spec b/slang.spec index f26cdf8..121d180 100644 --- a/slang.spec +++ b/slang.spec @@ -14,7 +14,7 @@ Source: https://www.jedsoft.org/releases/%{name}/%{name}-%{version}.tar.bz2 # disable test that fails with SIGHUP ignored (e.g. in koji) Patch2: slang-sighuptest.patch BuildRequires: make -BuildRequires: gcc libpng-devel pcre-devel zlib-devel +BuildRequires: gcc libpng-devel zlib-devel %{?with_oniguruma:BuildRequires: oniguruma-devel} # static removed in 2.3.1a-3 Obsoletes: slang-static < 2.3.1a-3 @@ -57,11 +57,14 @@ based on the S-Lang extension language. %build %configure \ - --with-{pcre,png,z}lib=%{_libdir} \ - --with-{pcre,png,z}inc=%{_includedir} \ + --with-{png,z}lib=%{_libdir} \ + --with-{png,z}inc=%{_includedir} \ + --without-pcre \ %if %{with oniguruma} --with-oniglib=%{_libdir} \ --with-oniginc=%{_includedir} \ +%else + --without-onig \ %endif ;