From 10bb6a9fc5095b884487725944e2a5f7efcf744e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 25 Feb 2024 15:47:07 +0000 Subject: automatic import of aria2 --- .gitignore | 1 + aria2.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 aria2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..162c387 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/aria2-1.36.0.tar.gz diff --git a/aria2.spec b/aria2.spec new file mode 100644 index 0000000..660824a --- /dev/null +++ b/aria2.spec @@ -0,0 +1,60 @@ +Name: aria2 +Version: 1.36.0 +Release: 1 +Summary: High speed download utility with resuming and segmented downloading +License: GPLv2+ with exceptions +URL: http://aria2.github.io +Source0: https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.gz + +BuildRequires: bison +BuildRequires: c-ares-devel +BuildRequires: cppunit-devel +BuildRequires: gcc-c++ +BuildRequires: gettext +BuildRequires: gnutls-devel +BuildRequires: libgcrypt-devel +BuildRequires: libxml2-devel +BuildRequires: make +BuildRequires: sqlite-devel + +%description +aria2 is a download utility with resuming and segmented downloading. +Supported protocols are HTTP/HTTPS/FTP/BitTorrent. It also supports Metalink +version 3.0. + +%prep +%autosetup + +%build +%configure CXX="g++" \ + --enable-bittorrent \ + --enable-metalink \ + --enable-epoll\ + --disable-rpath \ + --with-gnutls \ + --with-libcares \ + --with-libxml2 \ + --without-openssl \ + --with-libz \ + --with-sqlite3 \ +%if 0%{?openEuler} + --enable-gnutls-system-crypto-policy \ +%endif + +V=1 make %{?_smp_mflags} + +%install +%make_install +%find_lang %{name} +rm -f %{buildroot}%{_datadir}/locale/locale.alias +rm -rf %{buildroot}%{_datadir}/doc/%{name} + +%files -f %{name}.lang +%doc AUTHORS ChangeLog COPYING README +%{_bindir}/aria2c +%{_mandir}/man1/aria2c.1.gz +%{_mandir}/*/man1/aria2c.1.gz + +%changelog +* Tue Jul 12 2022 weiqingsong - 1.36.0-1 +- Initial Package diff --git a/sources b/sources new file mode 100644 index 0000000..adf593c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +8579df5481d387c4e07e838d5e511be1 aria2-1.36.0.tar.gz -- cgit v1.2.3