diff --git a/flow-tools.spec b/flow-tools.spec index c6a209a..f4bac9a 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -1,4 +1,9 @@ -%bcond_without fedora +# Does not support openssl 1.1 +%if 0%{?fedora} >= 26 +%bcond_with openssl +%else +%bcond_without openssl +%endif %global username flow-tools %global homedir %{_localstatedir}/%{name} @@ -15,8 +20,15 @@ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service Source2: flow-capture.sysconfig Patch0: flow-werror-fix.patch -BuildRequires: openssl-devel mysql-devel postgresql-devel zlib-devel -BuildRequires: bison flex tcp_wrappers-devel +%if 0%{with openssl} +BuildRequires: openssl-devel +%endif +BuildRequires: mysql-devel +BuildRequires: postgresql-devel +BuildRequires: zlib-devel +BuildRequires: bison +BuildRequires: flex +BuildRequires: tcp_wrappers-devel BuildRequires: doxygen Requires(pre): shadow-utils BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -99,7 +111,9 @@ This package contains additional documentation, such as man pages in html format --enable-static=no \ --with-mysql \ --with-postgresql \ +%if 0%{with openssl} --with-openssl +%endif sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool @@ -211,6 +225,9 @@ exit 0 %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Fri Feb 10 2017 Orion Poplawski - 0.68.5.1-19 +- Build with openssl support - does not work with openssl 1.1 + * Fri Feb 10 2017 Fedora Release Engineering - 0.68.5.1-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild