]> git.pld-linux.org Git - packages/axel.git/blobdiff - axel.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/axel.git] / axel.spec
index 7320269b3a2a20c1269608e83b02e62f89e4d747..c2caae766d21a582e1bad401a2ebb904aec3ac0c 100644 (file)
--- a/axel.spec
+++ b/axel.spec
@@ -1,15 +1,14 @@
-Summary:       An light Linux download accelerator     
+Summary:       An light Linux download accelerator
 Summary(pl):   Niewielki dopalacz ¶ci±gania plików
 Name:          axel
-Version:       0.95
-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}-Makefile.patch
+Patch1:                %{name}-etc_dir.patch
+URL:           http://www.lintux.cx/axel.html
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -23,27 +22,35 @@ r
 wszystkie dane w jednym pliku. Dlatego powinien byæ bardzo efektywny.
 
 %prep
-%setup  -q 
+%setup  -q
+%patch1 -p1
 
 %build
-%{__make} CFLAGS="%{rpmcflags}"
+# it doesn't use autoconf
+./configure \
+       --prefix=%{_prefix} \
+       --bindir=%{_bindir} \
+       --etcdir=%{_sysconfdir} \
+       --mandir=%{_mandir} \
+       --locale=%{_datadir}/locale \
+       --i18n=1
 
-gzip -9nf TODO 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/*
This page took 0.057412 seconds and 4 git commands to generate.