asio/asio.spec
Michal Schorm 115556d9ec Remove usage of OpenSSL Engine
https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine

Note:
There is a difference between Fedora and CentOS Stream 10 / RHEL 10:
- in CentOS Stream 10 / RHEL 10, the change is self-contained by the
  'openssl-devel' package itself, which now defines OPENSSL_NO_ENGINE
  in the headers so new application builds don't use engine at all

- in Fedora, the headers containing the OPENSSL_NO_ENGINE definition
  are put into a separate sub-package 'openssl-devel-engine', instead
  of being put into the 'openssl-devel'

More notes (from Yaakov Selkowitz):
- While C10S/RHEL 10 openssl is built with OPENSSL_NO_ENGINE, ELN is not,
  and many packages still need openssl-devel-engine as in F41+ **until that happens**.
  Therefore, the correct conditional at this time is:
  %if 0%{?fedora} >= 41 || 0%{?rhel} >= 11;

- The -devel subpackage should also 'Recommends: openssl-devel-engine'
  with the same conditionals, otherwise every asio-dependent package
  will need to be modified
2024-07-23 16:18:45 +02:00

65 lines
1.5 KiB
RPMSpec

# asio only ships headers, so no debuginfo package is needed
%global debug_package %{nil}
Name: asio
Version: 1.30.2
Release: %autorelease
Summary: A cross-platform C++ library for network programming
License: BSL-1.0
URL: https://think-async.com
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: openssl-devel
%if 0%{?fedora} >= 41 || 0%{?rhel} >= 11
BuildRequires: openssl-devel-engine
%endif
BuildRequires: perl-generators
%description
The asio package contains a cross-platform C++ library for network programming
that provides developers with a consistent asynchronous I/O model using a
modern C++ approach.
%package devel
Summary: Header files for asio
Recommends: openssl-devel
%if 0%{?fedora} >= 41 || 0%{?rhel} >= 11
Recommends: openssl-devel-engine
%endif
Recommends: boost-devel
%description devel
Header files you can use to develop applications with asio.
The asio package contains a cross-platform C++ library for network programming
that provides developers with a consistent asynchronous I/O model using a
modern C++ approach.
%prep
%autosetup
%build
autoreconf --install
%configure
%make_build
%install
%make_install
%files devel
%doc doc/*
%license LICENSE_1_0.txt
%{_includedir}/asio/
%{_includedir}/asio.hpp
%{_libdir}/pkgconfig/asio.pc
%changelog
%autochangelog