Packages: added pcre2 to build depends.

While at it, propagate unit build depends to modules.
This commit is contained in:
Konstantin Pavlov
2020-11-24 14:27:06 +03:00
parent 9c09bc1772
commit a5fa9673d9
4 changed files with 18 additions and 2 deletions

View File

@@ -7,6 +7,15 @@
%define dist .el7
%endif
%if 0%{?rhel}%{?fedora}
BuildRequires: gcc
BuildRequires: openssl-devel
%endif
%if 0%{?suse_version} >= 1315
BuildRequires: libopenssl-devel
%endif
%define unit_version %%UNIT_VERSION%%
%define unit_release %%UNIT_RELEASE%%%{?dist}.ngx
@@ -29,6 +38,8 @@ Source0: unit-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pcre2-devel
Requires: unit == %%UNIT_VERSION%%-%%UNIT_RELEASE%%%{?dist}.ngx
%description