Fixup for uintptr_t on rawhide gcc.
also disable modules that don't compile on all architectures
This commit is contained in:
@@ -8,6 +8,7 @@ Summary: An OpenSource IPsec-based VPN and TNC solution
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.strongswan.org/
|
URL: http://www.strongswan.org/
|
||||||
Source0: http://download.strongswan.org/%{name}-%{version}%{?prerelease}.tar.bz2
|
Source0: http://download.strongswan.org/%{name}-%{version}%{?prerelease}.tar.bz2
|
||||||
|
Patch1: strongswan-5.6.0-uintptr_t.patch
|
||||||
|
|
||||||
# only needed for pre-release versions
|
# only needed for pre-release versions
|
||||||
#BuildRequires: autoconf automake
|
#BuildRequires: autoconf automake
|
||||||
@@ -25,7 +26,6 @@ BuildRequires: pam-devel
|
|||||||
BuildRequires: json-c-devel
|
BuildRequires: json-c-devel
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libgcrypt-devel
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: gprbuild
|
|
||||||
BuildRequires: iptables-devel
|
BuildRequires: iptables-devel
|
||||||
|
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
@@ -68,6 +68,7 @@ PT-TLS to support TNC over TLS.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?prerelease}
|
%setup -q -n %{name}-%{version}%{?prerelease}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# only for snapshots
|
# only for snapshots
|
||||||
@@ -76,6 +77,7 @@ PT-TLS to support TNC over TLS.
|
|||||||
# --with-ipsecdir moves internal commands to /usr/libexec/strongswan
|
# --with-ipsecdir moves internal commands to /usr/libexec/strongswan
|
||||||
# --bindir moves 'pki' command to /usr/libexec/strongswan
|
# --bindir moves 'pki' command to /usr/libexec/strongswan
|
||||||
# See: http://wiki.strongswan.org/issues/552
|
# See: http://wiki.strongswan.org/issues/552
|
||||||
|
# too broken to enable: --enable-sha3 --enable-rdrand --enable-connmark --enable-forecast
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--with-ipsec-script=strongswan \
|
--with-ipsec-script=strongswan \
|
||||||
--sysconfdir=%{_sysconfdir}/strongswan \
|
--sysconfdir=%{_sysconfdir}/strongswan \
|
||||||
@@ -95,9 +97,6 @@ PT-TLS to support TNC over TLS.
|
|||||||
--enable-md4 \
|
--enable-md4 \
|
||||||
--enable-gcrypt \
|
--enable-gcrypt \
|
||||||
--enable-newhope \
|
--enable-newhope \
|
||||||
--enable-aesni \
|
|
||||||
--enable-rdrand \
|
|
||||||
--enable-sha3 \
|
|
||||||
--enable-xauth-eap \
|
--enable-xauth-eap \
|
||||||
--enable-xauth-pam \
|
--enable-xauth-pam \
|
||||||
--enable-xauth-noauth \
|
--enable-xauth-noauth \
|
||||||
@@ -152,9 +151,10 @@ PT-TLS to support TNC over TLS.
|
|||||||
--enable-aikgen \
|
--enable-aikgen \
|
||||||
--enable-vici \
|
--enable-vici \
|
||||||
--enable-swanctl \
|
--enable-swanctl \
|
||||||
--enable-connmark \
|
|
||||||
--enable-forecast \
|
|
||||||
--enable-duplicheck \
|
--enable-duplicheck \
|
||||||
|
%ifarch x86_64 %{ix86}
|
||||||
|
--enable-aesni \
|
||||||
|
%endif
|
||||||
--enable-kernel-libipsec
|
--enable-kernel-libipsec
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|||||||
Reference in New Issue
Block a user