diff options
Diffstat (limited to 'freefilesync')
-rw-r--r-- | freefilesync/freefilesync.spec | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/freefilesync/freefilesync.spec b/freefilesync/freefilesync.spec index e1f5114..1aab5bb 100644 --- a/freefilesync/freefilesync.spec +++ b/freefilesync/freefilesync.spec @@ -6,7 +6,7 @@ %define min_libssh2 %{nil} %define min_openssl %{nil} %define scl_env %{nil} -%define scl_buildreq coreutils +%define scl_buildreq %{nil} %if 0%{?el6}%{?el7} %define scl_env devtoolset-7 %define scl_buildreq devtoolset-7-toolchain @@ -22,9 +22,12 @@ %define min_openssl >= 1.1.1k %endif %define libssh2_name libssh2 +%define openssl_name openssl # EL8 copr has some dnf module weirdness with libssh2, not a version problem. %if 0%{?el6}%{?el7} %define libssh2_name libssh2-freefilesync +%define openssl_name openssl-freefilesync +%define %endif %if 0%{?fedora} >= 36 # https://www.spinics.net/lists/fedora-devel/msg296646.html @@ -90,20 +93,18 @@ BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(zlib) # We need the binary so we can check version number -BuildRequires: openssl -%if 0%{?el6}%{?el7} +BuildRequires: %{openssl_name} +%if "%{?scl_buildreq}" != "" BuildRequires: %{scl_buildreq} +%endif %if "%{?min_openssl}" != "" -BuildRequires: openssl-%{name}-devel %{min_openssl} +BuildRequires: %{openssl_name}-devel %{min_openssl} %else -BuildRequires: openssl-%{name}-devel +BuildRequires: %{openssl_name}-devel %endif #Requires: libcurl %%{?min_libcurl} #Requires: %%{libssh2_name} %%{?min_libssh2} #Requires: openssl-%%{name}-libs %%{?min_openssl} -%else -BuildRequires: openssl-devel -%endif Requires: hicolor-icon-theme Requires: xdg-utils Provides: mimehandler(application/x-freefilesync-ffs) |