summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/unit.spec.in
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-09-20 16:14:29 +0300
committerAndrei Belov <defan@nginx.com>2018-09-20 16:14:29 +0300
commitfea05e30653a4c660d538cc6915494d7145ad969 (patch)
treee36ff5b55bc54e899a7120c16b9962e412e33cf1 /pkg/rpm/unit.spec.in
parent510c2e15c5b55a48f15f0ba680c5e82a2db5456f (diff)
downloadunit-fea05e30653a4c660d538cc6915494d7145ad969.tar.gz
unit-fea05e30653a4c660d538cc6915494d7145ad969.tar.bz2
Packages: enabled OpenSSL support.
Diffstat (limited to '')
-rw-r--r--pkg/rpm/unit.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in
index 12327449..c7586eeb 100644
--- a/pkg/rpm/unit.spec.in
+++ b/pkg/rpm/unit.spec.in
@@ -5,19 +5,22 @@
%if ( 0%{?rhel} == 5 || 0%{?rhel} == 6 )
Requires: initscripts >= 8.36
+BuildRequires: openssl-devel
%endif
%if 0%{?rhel} == 7
Requires: systemd
BuildRequires: systemd-units
+BuildRequires: openssl-devel
%if 0%{?amzn} == 0
%define dist .el7
%endif
%endif
-%if 0%{?suse_version} == 1315
+%if 0%{?suse_version} >= 1315
BuildRequires: systemd
Requires: systemd
+BuildRequires: libopenssl-devel
%endif
%define CC_OPT %{optflags} -fPIC