Skip to content

Commit

Permalink
Merge pull request #52 from CESNET/specfile_openssl_legacy
Browse files Browse the repository at this point in the history
Set --enable-legacy-ssl to yes|no in spec file according to OS version
  • Loading branch information
SiskaPavel authored Dec 16, 2021
2 parents 358228c + e5277e8 commit a4f4df1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ipfixprobe.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
%bcond_without raw
%bcond_with nemea
%bcond_with unwind
%bcond_with is_el7

%if %{with ndp}
%global compile_ndp yes
Expand Down Expand Up @@ -34,6 +35,12 @@
%global compile_unwind no
%endif

%if %{el7}
%global is_el7 yes
%else
%global is_el7 no
%endif

Name: ipfixprobe
Version: @PACKAGE_VERSION@
Release: @RELEASE@
Expand Down Expand Up @@ -74,7 +81,7 @@ This package contains nemea flow exporter.
%setup

%build
./configure -q --enable-silent-rules --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --docdir=%{_docdir} --mandir=%{_mandir} --datadir=%{_datadir} --with-ndp=%{compile_ndp} --with-raw=%{compile_raw} --with-pcap=%{compile_pcap} --with-nemea=%{compile_nemea} --with-unwind=%{compile_unwind};
./configure -q --enable-silent-rules --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --docdir=%{_docdir} --mandir=%{_mandir} --datadir=%{_datadir} --with-ndp=%{compile_ndp} --with-raw=%{compile_raw} --with-pcap=%{compile_pcap} --with-nemea=%{compile_nemea} --with-unwind=%{compile_unwind} --enable-legacy-ssl=%{is_el7};
make clean
make -j5

Expand Down

0 comments on commit a4f4df1

Please sign in to comment.