| 1 |
# note: version 2.0 is in devel, version 1.1 is stable
|
| 2 |
%define build_stable_version 0
|
| 3 |
%if %{build_stable_version}
|
| 4 |
%define ver 1.1
|
| 5 |
%define build_number 1
|
| 6 |
%else
|
| 7 |
%define ver 2.0
|
| 8 |
%define build_number 0.1
|
| 9 |
%define snapshot .20080705
|
| 10 |
%define source_folder axel-svn-trunk
|
| 11 |
%endif
|
| 12 |
Name: axel
|
| 13 |
Version: %{ver}
|
| 14 |
Release: %{build_number}%{?snapshot}%{?dist}
|
| 15 |
Summary: A lightweight download accelerator by using multiple connections
|
| 16 |
|
| 17 |
Group: Applications/Internet
|
| 18 |
License: GPLv2
|
| 19 |
URL: http://axel.alioth.debian.org
|
| 20 |
Source0: http://download.alioth.debian.org/axel/axel/%{ver}/axel-%{ver}%{?snapshot}.tar.gz
|
| 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 22 |
|
| 23 |
#BuildRequires:
|
| 24 |
#Requires:
|
| 25 |
|
| 26 |
%description
|
| 27 |
Axel tries to accelerate HTTP/FTP downloading process by using multiple
|
| 28 |
connections for one file. It can use multiple mirrors for a download. Axel has
|
| 29 |
no dependencies and is lightweight, so it might be useful as a wget clone on
|
| 30 |
byte-critical systems.
|
| 31 |
|
| 32 |
|
| 33 |
%prep
|
| 34 |
%setup -q %{?source_folder:-n %{source_folder}}
|
| 35 |
|
| 36 |
|
| 37 |
%build
|
| 38 |
%configure --etcdir=%{_sysconfdir} --i18n=1
|
| 39 |
make %{?_smp_mflags}
|
| 40 |
|
| 41 |
|
| 42 |
%install
|
| 43 |
rm -rf $RPM_BUILD_ROOT
|
| 44 |
make install DESTDIR=$RPM_BUILD_ROOT
|
| 45 |
|
| 46 |
%find_lang %{name}
|
| 47 |
|
| 48 |
%clean
|
| 49 |
rm -rf $RPM_BUILD_ROOT
|
| 50 |
|
| 51 |
|
| 52 |
%files -f %{name}.lang
|
| 53 |
%defattr(-,root,root,-)
|
| 54 |
%doc API CHANGES COPYING CREDITS README
|
| 55 |
%{_bindir}/axel
|
| 56 |
%config(noreplace) %{_sysconfdir}/axelrc
|
| 57 |
%{_mandir}/man1/*
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
%changelog
|
| 62 |
* Sat Jul 05 2008 bbbush <bbbush.yuan@gmail.com> - 2.0-0.1.20080705
|
| 63 |
- create spec.
|
| 64 |
|