File aria2.spec of Package aria2

#
# spec file for package aria2 (Version 1.9.3)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to Maintainer: sda00@himki.net
#

# norootforbuild

Name:		aria2
Version:	1.9.3
Release:	50
Summary:	utility for downloading files
License:	GPL
Packager:	sda00 <sda00@himki.net>
Group:		Utilities/Network
URL:		http://aria2.sourceforge.net/
Source:		%{name}-%{version}.tar.bz2
Patch:		%{name}-gui.pl
BuildRequires:	perl
BuildRequires:	libxml2-devel
BuildRequires:	libopenssl-devel
BuildRequires:	openssl
#BuildRequires:	libxmlrpc-c-devel
BuildRequires:	tk perl-Tk sqlite3-devel
BuildRequires:	libcares-devel
## %if %suse_version < 1110
## BuildRequires:	libcares1
## %endif
## %if %suse_version = 1110
BuildRequires:  libcares2
## %endif
BuildRequires:	gnutls-devel gnutls update-desktop-files
BuildRequires:	libgcrypt-devel libgcrypt
BuildRequires:	gcc-c++
BuildRoot:	%{_tmppath}/%{name}c-%{version}-build

%description
aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP, 
BitTorrent(DHT, PEX, MSE/PE), and Metalink. It has a powerful segmented downloading 
ability, downloading a file from multiple sources and multiple protocols and utilizing 
your download bandwidth to the maximum. It supports downloading a file from HTTP(S)/FTP 
and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded 
to the BitTorrent swarm. Using Metalink's chunk checksums, aria2 automatically validates 
chunks of data while downloading a file like BitTorrent.

%prep
%build
%install
rm -rf "$RPM_BUILD_ROOT"
rm -rf %{buildroot}
tar xfm $RPM_SOURCE_DIR/%{name}-%{version}.tar.bz2
cd %{name}-%{version}
%configure                                                                                                                                           
make
make DESTDIR=$RPM_BUILD_ROOT install || return 1

mkdir -p %{buildroot}/%{_bindir}
install -m 755 $RPM_SOURCE_DIR/%{name}-gui.pl %{buildroot}/%{_bindir}/%{name}-gui.pl
cd %{buildroot}/%{_bindir}
ln -sf %{name}-gui.pl %{name}-gui
# find $RPM_BUILD_ROOT/ -type f -perm 755 -iname '*' -exec strip -s {} \;
cd -
cd ../
%find_lang  %name


%clean
rm -rf %{buildroot}
rm -rf "$RPM_BUILD_ROOT"

#%post
#strip -s %{_bindir}/aria2c


%files -f  %name.lang
%defattr(-,root,root)
%{_bindir}/%{name}*                                                                                                                                   
%{_mandir}/man1/*                                                                                                                                     
%doc 
%{_datadir}/doc/*


%changelog
* Sun May 31 2009 aria2-1.4.0 released
* Mon Dec 29 2009 aria2-1.1.2 released
* Mon Feb 16 2009 aria2-1.1.0 released
* Thu Dec 25 2008 aria2-1.1.1 released
* Mon Nov 24 2008 aria2-1.0.1 released
* Tue Nov 17 2008 aria2-1.0.0 released
- first release.
* Sun Oct 19 2008 aria2-0.16.2 released
* Wed Oct 15 2008 aria2-0.16.1 released
* Mon Oct  6 2008 aria2-0.16.0 released
* Sat Sep  6 2008 aria2-0.15.3 released
* Fri Aug 15 2008 aria2-0.15.2 released
* Tue Aug  5 2008 aria2-0.15.1+2 released
* Fri Aug  1 2008 aria2-0.15.1 released
* Wed Jul 23 2008 aria2-0.15.0 released
* Fri Jun 20 2008 aria2-0.13.2 released
* Sun May 25 2008 aria2-0.13.2 released
* Tue Apr 15 2008 aria2-0.13.1+2 released
Packed by sda00@himki.net
openSUSE Build Service is sponsored by