From a2cfa6033d6d81ed90b7d471eee83a3dff85e215 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Jan 21 2016 18:15:00 +0000 Subject: Initial import (#1299305) --- diff --git a/.gitignore b/.gitignore index e69de29..f1ce3d5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.0.0.tar.gz diff --git a/crypto_policy.patch b/crypto_policy.patch new file mode 100644 index 0000000..ae9ace6 --- /dev/null +++ b/crypto_policy.patch @@ -0,0 +1,12 @@ +--- c_src/p1_tls_drv.c 2015-08-03 06:40:33.000000000 -0400 ++++ c_src/p1_tls_drv.c 2015-12-29 22:03:41.245021448 -0500 +@@ -54,7 +54,7 @@ + #define SSL_OP_NO_TICKET 0 + #endif + +-#define CIPHERS "DEFAULT:!EXPORT:!LOW:!RC4:!SSLv2" ++#define CIPHERS "PROFILE=SYSTEM" + + /** + * Prepare the SSL options flag. + diff --git a/erlang-p1_tls.spec b/erlang-p1_tls.spec new file mode 100644 index 0000000..a4883cf --- /dev/null +++ b/erlang-p1_tls.spec @@ -0,0 +1,53 @@ +%global srcname p1_tls +# Erlang packages don't seem to ship debug files, as the build process does not generate them +%global debug_package %{nil} + + +Name: erlang-%{srcname} +Version: 1.0.0 +Release: 1%{?dist} +Summary: TLS / SSL native driver for Erlang / Elixir + +License: GPLv2+ +URL: https://github.com/processone/tls/ +Source0: https://github.com/processone/tls/archive/%{version}.tar.gz +# Set the default cipher list to PROFILE=SYSTEM. +# https://fedoraproject.org/wiki/Packaging:CryptoPolicies +Patch0: crypto_policy.patch + +Requires: erlang-erts +BuildRequires: erlang-rebar +BuildRequires: erlang-rpm-macros +BuildRequires: openssl-devel + + +%description +TLS / SSL native driver for Erlang / Elixir. This is used by ejabberd. + + +%prep +%setup -n tls-%{version} -q +%patch0 -p0 + + +%build +%rebar_compile + + +%install +install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/ebin +install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib + +install -pm644 ebin/* $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/ebin/ +install -pm755 priv/lib/* $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib/ + + +%files +%license COPYING +%doc README.md +%{_erllibdir}/%{srcname}-%{version} + + +%changelog +* Sun Jan 17 2016 Jeremy Cline - 1.0.0-1 +- Initial release. diff --git a/sources b/sources index e69de29..6c0db56 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +eea0381503f16a3dbb29d959abe0c1a5 1.0.0.tar.gz