From 3732ffafb1ecfe6dc4ba1d59c312f66cf6a7a7ac Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Fri, 22 Jan 2016 12:43:23 +0100 Subject: [PATCH] - Update to 1.19.3 - Fix Source and URL since upsteam moved to Github - Rebase Use system wide crypto policies patch --- .gitignore | 1 + ...19.3-use-system-wide-crypto-policies.patch | 25 +++++++++++++++++++ aria2.spec | 15 +++++++---- sources | 2 +- 4 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 aria2-1.19.3-use-system-wide-crypto-policies.patch diff --git a/.gitignore b/.gitignore index e1cb0cd..4ce923a 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ aria2-1.10.0.tar.xz /aria2-1.18.6.tar.xz /aria2-1.18.10.tar.xz /aria2-1.19.0.tar.xz +/aria2-1.19.3.tar.xz diff --git a/aria2-1.19.3-use-system-wide-crypto-policies.patch b/aria2-1.19.3-use-system-wide-crypto-policies.patch new file mode 100644 index 0000000..dcf4026 --- /dev/null +++ b/aria2-1.19.3-use-system-wide-crypto-policies.patch @@ -0,0 +1,25 @@ +diff -ru aria2-1.19.3.orig/src/LibgnutlsTLSSession.cc aria2-1.19.3/src/LibgnutlsTLSSession.cc +--- aria2-1.19.3.orig/src/LibgnutlsTLSSession.cc 2015-12-06 14:59:48.000000000 +0100 ++++ aria2-1.19.3/src/LibgnutlsTLSSession.cc 2016-01-22 12:27:21.164972437 +0100 +@@ -127,20 +127,7 @@ + // It seems err is not error message, but the argument string + // which causes syntax error. + const char* err; +- std::string pri = "SECURE128:+SIGN-RSA-SHA1"; +- switch(tlsContext_->getMinTLSVersion()) { +- case TLS_PROTO_TLS12: +- pri += ":-VERS-TLS1.1"; +- // fall through +- case TLS_PROTO_TLS11: +- pri += ":-VERS-TLS1.0"; +- // fall through +- case TLS_PROTO_TLS10: +- pri += ":-VERS-SSL3.0"; +- default: +- break; +- }; +- rv_ = gnutls_priority_set_direct(sslSession_, pri.c_str(), &err); ++ rv_ = gnutls_priority_set_direct(sslSession_, "@SYSTEM", &err); + if(rv_ != GNUTLS_E_SUCCESS) { + return TLS_ERR_ERROR; + } diff --git a/aria2.spec b/aria2.spec index 66b0277..629fed6 100644 --- a/aria2.spec +++ b/aria2.spec @@ -1,14 +1,14 @@ %define binname aria2c Name: aria2 -Version: 1.19.0 -Release: 2%{?dist} +Version: 1.19.3 +Release: 1%{?dist} Summary: High speed download utility with resuming and segmented downloading Group: Applications/Internet License: GPLv2+ with exceptions -URL: http://aria2.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz -Patch0: aria2-1.18.10-use-system-wide-crypto-policies.patch +URL: http://aria2.github.io/ +Source0: https://github.com/tatsuhiro-t/%{name}/releases/download/release-%{version}/%{name}-%{version}.tar.xz +Patch0: aria2-1.19.3-use-system-wide-crypto-policies.patch BuildRequires: bison BuildRequires: c-ares-devel cppunit-devel BuildRequires: gettext gnutls-devel @@ -68,6 +68,11 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name} %{_mandir}/*/man1/aria2c.1.gz %changelog +* Fri Jan 22 2016 Athmane Madjoudj 1.19.3-1 +- Update to 1.19.3 +- Fix Source and URL since upsteam moved to Github +- Rebase Use system wide crypto policies patch + * Wed Jun 17 2015 Fedora Release Engineering - 1.19.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index eacc506..9edc553 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8417e25750928c250177f0f783b4f9b0 aria2-1.19.0.tar.xz +b6363664e3cd510a092b0d812085724b aria2-1.19.3.tar.xz