## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname fast_tls %global p1_utils_ver 1.0.26 Name: erlang-%{srcname} Version: 1.1.22 Release: %autorelease License: Apache-2.0 Summary: TLS / SSL native driver for Erlang / Elixir URL: https://github.com/processone/%{srcname}/ VCS: git:%{url}.git Source0: %{url}/archive/%{version}/%{srcname}-%{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-Rebar3-plugins.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 ## START: Generated by rpmautospec * Tue Oct 29 2024 Peter Lemenkov - 1.1.22-1 - fast_tls ver. 1.1.22 * Fri Jul 19 2024 Peter Lemenkov - 1.1.21-1 - fast_tls ver. 1.1.21 * Wed Jul 17 2024 Fedora Release Engineering - 1.1.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 28 2024 Peter Lemenkov - 1.1.20-1 - fast_tls ver. 1.1.20 * Fri Apr 19 2024 Peter Lemenkov - 1.1.15-8 - Rebuild with a fixed Erlang macros * Wed Apr 17 2024 Peter Lemenkov - 1.1.15-7 - Switch to SPDX macro * Wed Jan 24 2024 Fedora Release Engineering - 1.1.15-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.1.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * 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 ## END: Generated by rpmautospec