%global srcname fast_tls %global p1_utils_ver 1.0.20 Name: erlang-%{srcname} Version: 1.1.15 Release: 3%{?dist} License: ASL 2.0 Summary: TLS / SSL native driver for Erlang / Elixir URL: https://github.com/processone/%{srcname}/ Source0: https://github.com/processone/%{srcname}/archive/%{version}/fast_tls-%{version}.tar.gz # Set the default cipher list to PROFILE=SYSTEM. # https://fedoraproject.org/wiki/Packaging:CryptoPolicies Patch1: erlang-fast_tls-0001-Use-the-system-ciphers-by-default.patch Patch2: erlang-fast_tls-0002-Disable-port-compiler-until-we-package-it.patch Provides: erlang-p1_tls = %{version}-%{release} Obsoletes: erlang-p1_tls < 1.0.1 BuildRequires: gcc BuildRequires: erlang-p1_utils >= %{p1_utils_ver} BuildRequires: erlang-rebar3 BuildRequires: openssl-devel Requires: erlang-p1_utils >= %{p1_utils_ver} %description TLS / SSL native driver for Erlang / Elixir. This is used by ejabberd. %prep %autosetup -p1 -n %{srcname}-%{version} %build %{erlang3_compile} # FIXME we don't have a port compiler plugin for rebar3 yet mkdir -p priv/lib gcc c_src/fast_tls.c $CFLAGS -fPIC -c -I%{_libdir}/erlang/usr/include -o c_src/fast_tls.o gcc c_src/ioqueue.c $CFLAGS -fPIC -c -I%{_libdir}/erlang/usr/include -o c_src/ioqueue.o gcc c_src/p1_sha.c $CFLAGS -fPIC -c -I%{_libdir}/erlang/usr/include -o c_src/p1_sha.o gcc c_src/fast_tls.o c_src/ioqueue.o $LDFLAGS -shared -L%{_libdir}/erlang/usr/lib -lei -L%{_libdir} -lssl -lcrypto -o priv/lib/fast_tls.so gcc c_src/p1_sha.o $LDFLAGS -shared -L%{_libdir}/erlang/usr/lib -lei -L%{_libdir} -lssl -lcrypto -o priv/lib/p1_sha.so %install %{erlang3_install} install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib install -pm755 priv/lib/* $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib/ %check %{erlang3_test} %files %license LICENSE.txt %doc CHANGELOG.md %doc README.md %{erlang_appdir} %changelog * Wed Jul 19 2023 Fedora Release Engineering - 1.1.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.1.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Peter Lemenkov - 1.1.15-1 - Update to 1.1.15 * Thu Jul 21 2022 Fedora Release Engineering - 1.1.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.1.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 14 2021 Sahana Prasad - 1.1.8-4 - Rebuilt with OpenSSL 3.0.0 * Wed Jul 21 2021 Fedora Release Engineering - 1.1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 2020 Randy Barlow - 1.1.8-1 - Update to 1.1.8 (#1807288). - https://github.com/processone/fast_tls/blob/1.1.8/CHANGELOG.md * Sat Aug 01 2020 Fedora Release Engineering - 1.1.3-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Feb 14 2020 Randy Barlow - 1.1.3-1 - Update to 1.1.13 (#1789166). - https://github.com/processone/fast_tls/blob/1.1.3/CHANGELOG.md * Tue Jan 28 2020 Fedora Release Engineering - 1.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 26 2019 Randy Barlow - 1.1.2-2 - Bring fast_tls back to s390x (#1772967). * Thu Nov 14 2019 Randy Barlow - 1.1.2-1 - Update to 1.1.2 (#1742457). - https://github.com/processone/fast_tls/blob/1.1.2/CHANGELOG.md - Add an exclusion on s390x (#1770256). * Wed Jul 24 2019 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 05 2019 Randy Barlow - 1.1.1-1 - Update to 1.1.1 (#1713299). - https://github.com/processone/fast_tls/blob/1.1.1/CHANGELOG.md * Tue Apr 16 2019 Randy Barlow - 1.1.0-1 - Update to 1.1.0 (#1683114). - https://github.com/processone/fast_tls/blob/1.1.0/CHANGELOG.md * Thu Feb 21 2019 Peter Lemenkov - 1.0.26-3 - Rebuild for Erlang 21 * Thu Jan 31 2019 Fedora Release Engineering - 1.0.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild