-Summary: An light Linux download accelerator
+Summary: An light Linux download accelerator
Summary(pl): Niewielki dopalacz ¶ci±gania plików
Name: axel
-Version: 0.97
-Release: 1
+Version: 1.0a
+Release: 3
License: GPL
Group: Networking/Utilities
-Group(de): Netzwerkwesen/Werkzeuge
-Group(es): Red/Utilitarios
-Group(pl): Sieciowe/Narzêdzia
-Group(pt_BR): Rede/Utilitários
Source0: http://www.lintux.cx/downloads/%{name}-%{version}.tar.gz
-Patch0: %{name}-opt.patch
+Patch0: %{name}-Makefile.patch
+Patch1: %{name}-etc_dir.patch
+URL: http://www.lintux.cx/axel.html
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
wszystkie dane w jednym pliku. Dlatego powinien byæ bardzo efektywny.
%prep
-%setup -q
-%patch -p1
+%setup -q
+%patch1 -p1
%build
-%{__make} RPMCFLAGS="%{rpmcflags}" ETCDIR="%{_sysconfdir}"
+# it doesn't use autoconf
+./configure \
+ --prefix=%{_prefix} \
+ --bindir=%{_bindir} \
+ --etcdir=%{_sysconfdir} \
+ --mandir=%{_mandir} \
+ --locale=%{_datadir}/locale \
+ --i18n=1
-gzip -9nf CHANGES README
+%{__make} CC=%{__cc} CFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}}
-install axel $RPM_BUILD_ROOT%{_bindir}
-install axel.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install axelrc.example $RPM_BUILD_ROOT%{_sysconfdir}/axelrc
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir},%{_datadir}/locale}
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc *.gz
+%doc CHANGES README
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*