mirror of
https://abf.rosa.ru/djam/openswan.git
synced 2025-02-23 08:42:50 +00:00
Add conditions for selinux build (labeled ipsec support)
This commit is contained in:
parent
9a3247875a
commit
9678dc5550
1 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}
|
||||||
|
|
||||||
Summary: An implementation of IPSEC & IKE for Linux
|
Summary: An implementation of IPSEC & IKE for Linux
|
||||||
Name: openswan
|
Name: openswan
|
||||||
Version: 2.6.39
|
Version: 2.6.39
|
||||||
|
@ -18,6 +20,9 @@ BuildRequires: xmlto
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
|
%if %{with selinux}
|
||||||
|
BuildRequires: selinux-devel
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libcap-ng)
|
BuildRequires: pkgconfig(libcap-ng)
|
||||||
BuildRequires: pkgconfig(libcurl)
|
BuildRequires: pkgconfig(libcurl)
|
||||||
Requires: curl
|
Requires: curl
|
||||||
|
@ -107,6 +112,9 @@ make \
|
||||||
FINALLIBEXECDIR=%{_libdir}/ipsec \
|
FINALLIBEXECDIR=%{_libdir}/ipsec \
|
||||||
FINALLIBDIR=%{_libdir}/ipsec \
|
FINALLIBDIR=%{_libdir}/ipsec \
|
||||||
USE_LIBCAP_NG=true \
|
USE_LIBCAP_NG=true \
|
||||||
|
%if %{with selinux}
|
||||||
|
USE_LABELED_IPSEC=true \
|
||||||
|
%endif
|
||||||
USE_LDAP=true \
|
USE_LDAP=true \
|
||||||
USE_LIBCURL=true \
|
USE_LIBCURL=true \
|
||||||
HAVE_THREADS=true \
|
HAVE_THREADS=true \
|
||||||
|
|
Loading…
Add table
Reference in a new issue