File axel.spec of Package axel

# spec file for package axel
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           axel
Version:        2.4
Release:        0
Summary:        Lightweight Download Accelerator
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Source:         axel-%{version}.tar.bz2
Patch1:         axel-fix_buffer_overflow.patch
Patch2:         axel-getaddrinfo.patch
# PATCH-FIX-OPENSUSE axel-2.4-configure.patch -- fix to accept and ignore --disable-dependency-tracking
Patch3:         axel-2.4-configure.patch
# PATCH-FIX-OPENSUSE axel-fix-url-max-length.patch -- fix to accept longer URLs
Patch4:         axel-fix-url-max-length.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Axel tries to accelerate HTTP/FTP downloading process by using multiple
connections for one file. It can use multiple mirrors for a download. Axel has
no dependencies and is lightweight, so it might be useful as a wget clone on
byte-critical systems.

%setup -q

%configure \
    --debug=0 \
    --strip=0 \

make %{?_smp_mflags}


rm -rf "%{buildroot}%{_mandir}/zh_CN"

%find_lang axel

%files -f axel.lang
%config %{_sysconfdir}/axelrc