diff --git a/ppp.spec b/ppp.spec index ead665f..2e16960 100644 --- a/ppp.spec +++ b/ppp.spec @@ -42,13 +42,14 @@ Patch0024: 0024-build-sys-install-pppoatm-plugin-files-with-standard.patch Patch0025: ppp-2.4.8-pppd-install-pppd-binary-using-standard-perms-755.patch Patch0026: ppp-2.4.9-configure-cflags-allow-commas.patch +BuildRequires: autoconf BuildRequires: libtool BuildRequires: atm-devel BuildRequires: pcap-devel -BuildRequires: pkgconfig(openssl) -BuildRequires: pkgconfig(libcrypto) +BuildRequires: pkgconfig(openssl3.3) +#BuildRequires: pkgconfig(libcrypto) BuildRequires: pam-devel -BuildRequires: openssl-devel +#BuildRequires: openssl-devel BuildRequires: pkgconfig(systemd) BuildRequires: glib2-devel Requires(post): systemd @@ -188,23 +189,23 @@ Radius plugin for %{name}. tar -xJf %{SOURCE12} %build -#/autogen.sh -#configure \ -# --prefix=%{_prefix} \ -# --exec-prefix=%{_prefix} \ -# --libdir=%{_libdir} \ -# --with-plugin-dir=\$\{prefix\}/%{_lib}/pppd/%{version} \ -# --with-runtime-dir=\$\{localstatedir\}/run/pppd \ -# --enable-systemd \ -# --enable-cbcp \ -# --enable-ipxcp \ -# --enable-mslanman \ -# --enable-microsoft-extensions \ -# --enable-ipv6-support \ -# --enable-plugins \ -# --enable-eaptls \ -# --enable-openssl-engine \ -# OPENSSL_LDFLAGS="-L%{_libdir}" +./autogen.sh +%configure \ + --prefix=%{_prefix} \ + --exec-prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --with-plugin-dir=\$\{prefix\}/%{_lib}/pppd/%{version} \ + --with-runtime-dir=\$\{localstatedir\}/run/pppd \ + --enable-systemd \ + --enable-cbcp \ + --enable-ipxcp \ + --enable-mslanman \ + --enable-microsoft-extensions \ + --enable-ipv6-support \ + --enable-plugins \ + --enable-eaptls \ + --enable-openssl-engine \ + OPENSSL_LDFLAGS="-L/opt/openssl3.3/%{_lib}" #configure @@ -214,7 +215,7 @@ tar -xJf %{SOURCE12} #make_build -C ppp-watch LDFLAGS="%{ldflags} -pie" #make -%configure --cflags="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing" +#configure --cflags="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing" %make_build LDFLAGS="%{ldflags} -pie" %make_build -C ppp-watch LDFLAGS="%{ldflags} -pie"