File aria2.spec of Package aria2

#
# spec file for package aria2
#
# Copyright (c) 2019 FeiYang(fei1yang@tuta.io)
#
# 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 http://bugs.opensuse.org/
#

Name:		aria2
Version:	1.35.0
Release:	1%{?dist}
Summary:	aria2 is a lightweight multi-protocol & multi-source command-line download utility.

Group:		Productivity/Networking/Web/Utilities
License:	GPL
URL:		https://github.com/aria2/aria2
Source0:	%{name}-%{version}.tar.gz

BuildRequires: gcc,gcc-c++,make,openssl-devel,libssh2-devel,zlib-devel,libxml2-devel,sqlite-devel,autoconf,automake,libtool
Requires: openssl,libssh2-1,zlib,libxml2,libsqlite3-0

%description
aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces.
This version increase the download thread limit.

%prep
%setup -q

%build
sed -i 's/"1", 1, 16/"128", 1, -1/g' ./src/OptionHandlerFactory.cc
sed -i 's/"20M", 1_m, 1_g/"4K", 1_k, 1_g/g' ./src/OptionHandlerFactory.cc
autoreconf -i
./configure --prefix=/usr
make -j4

%install
make install DESTDIR="%{buildroot}"
strip -s %{buildroot}/usr/bin/aria2c
rm -fr %{buildroot}/usr/share/locale/fil
rm -fr %{buildroot}/usr/share/locale/ms
rm -fr %{buildroot}/usr/share/locale/oc

%files
/usr/bin/aria2c
/usr/share/doc/aria2
/usr/share/man/man1/aria2c.1.gz
/usr/share/man/pt/man1/aria2c.1.gz
/usr/share/man/ru/man1/aria2c.1.gz
/usr/share/locale/ar/LC_MESSAGES/aria2.mo
/usr/share/locale/bg/LC_MESSAGES/aria2.mo
/usr/share/locale/bn/LC_MESSAGES/aria2.mo
/usr/share/locale/ca/LC_MESSAGES/aria2.mo
/usr/share/locale/da/LC_MESSAGES/aria2.mo
/usr/share/locale/de/LC_MESSAGES/aria2.mo
/usr/share/locale/el/LC_MESSAGES/aria2.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/aria2.mo
/usr/share/locale/en@quot/LC_MESSAGES/aria2.mo
/usr/share/locale/es/LC_MESSAGES/aria2.mo
/usr/share/locale/fa/LC_MESSAGES/aria2.mo
/usr/share/locale/fi/LC_MESSAGES/aria2.mo
/usr/share/locale/fr/LC_MESSAGES/aria2.mo
/usr/share/locale/he/LC_MESSAGES/aria2.mo
/usr/share/locale/hr/LC_MESSAGES/aria2.mo
/usr/share/locale/hu/LC_MESSAGES/aria2.mo
/usr/share/locale/id/LC_MESSAGES/aria2.mo
/usr/share/locale/it/LC_MESSAGES/aria2.mo
/usr/share/locale/ja/LC_MESSAGES/aria2.mo
/usr/share/locale/kk/LC_MESSAGES/aria2.mo
/usr/share/locale/ko/LC_MESSAGES/aria2.mo
/usr/share/locale/nb/LC_MESSAGES/aria2.mo
/usr/share/locale/nl/LC_MESSAGES/aria2.mo
/usr/share/locale/nn/LC_MESSAGES/aria2.mo
/usr/share/locale/pl/LC_MESSAGES/aria2.mo
/usr/share/locale/pt/LC_MESSAGES/aria2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/aria2.mo
/usr/share/locale/ro/LC_MESSAGES/aria2.mo
/usr/share/locale/ru/LC_MESSAGES/aria2.mo
/usr/share/locale/sk/LC_MESSAGES/aria2.mo
/usr/share/locale/sr/LC_MESSAGES/aria2.mo
/usr/share/locale/sv/LC_MESSAGES/aria2.mo
/usr/share/locale/th/LC_MESSAGES/aria2.mo
/usr/share/locale/tr/LC_MESSAGES/aria2.mo
/usr/share/locale/uk/LC_MESSAGES/aria2.mo
/usr/share/locale/vi/LC_MESSAGES/aria2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/aria2.mo
/usr/share/locale/zh_HK/LC_MESSAGES/aria2.mo
/usr/share/locale/zh_TW/LC_MESSAGES/aria2.mo

%changelog