SHA256
1
0
forked from pool/axel

Accepting request 97958 from home:AndreasStieger:branches:network:utilities

- Update License to GPL-2.0+
- add axel-2.4-configure.patch to make configure script accept and
  ignore --disable-dependency-tracking

OBS-URL: https://build.opensuse.org/request/show/97958
OBS-URL: https://build.opensuse.org/package/show/network:utilities/axel?expand=0&rev=5
This commit is contained in:
Andreas Stieger 2011-12-22 17:14:43 +00:00 committed by Git OBS Bridge
parent 16903d5086
commit 11936b8def
3 changed files with 71 additions and 12 deletions

30
axel-2.4-configure.patch Normal file
View File

@ -0,0 +1,30 @@
When called with --disable-dependency-tracking, the configure
script would exit with the usage output. This patch make the script
accept and ignore that option.
Index: configure
===================================================================
--- configure.orig 2009-04-27 15:19:03.000000000 +0100
+++ configure 2011-12-22 16:46:32.000000000 +0000
@@ -20,7 +20,7 @@ strip=1
arch=`uname -s`
while [ -n "$1" ]; do
- e="`expr "$1" : '--\(.*=.*\)'`"
+ e="`expr "$1" : '--\(.*\)'`"
if [ -z "$e" ]; then
cat<<EOF
Axel configure
@@ -44,8 +44,10 @@ EOF
keyname=$(expr "$e" : '\(.*\)=.*' | sed 's/[^a-z0-9_]/_/g')
value=$(expr "$e" : '.*=\(.*\)' | sed "s/'/_/g")
-
- eval "$keyname='$value'"
+
+ if [ -n "$value" ]; then
+ eval "$keyname='$value'"
+ fi
shift;
done

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Dec 22 16:56:54 UTC 2011 - andreas.stieger@gmx.de
- Update License to GPL-2.0+
- add axel-2.4-configure.patch to make configure script accept and
ignore --disable-dependency-tracking
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 12 15:28:17 UTC 2010 - pascal.bleser@opensuse.org Tue Oct 12 15:28:17 UTC 2010 - pascal.bleser@opensuse.org

View File

@ -1,15 +1,34 @@
#
# spec file for package axel
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild # norootforbuild
Name: axel Name: axel
Version: 2.4 Version: 2.4
Release: 0 Release: 0
License: GNU GPL v2 License: GPL-2.0+
Group: Productivity/Networking/Other Group: Productivity/Networking/Other
URL: http://axel.alioth.debian.org/ Url: http://axel.alioth.debian.org/
# http://alioth.debian.org/frs/download.php/3015/axel-%{version}.tar.gz
Source: axel-%{version}.tar.bz2 Source: axel-%{version}.tar.bz2
Patch1: axel-fix_buffer_overflow.patch Patch1: axel-fix_buffer_overflow.patch
Patch2: axel-getaddrinfo.patch Patch2: axel-getaddrinfo.patch
# PATCH-FIX-OPENSUSE axel-2.4-configure.patch andreas.stieger@gmx.de -- fix to accept and ignore --disable-dependency-tracking
Patch3: axel-2.4-configure.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Lightweight Download Accelerator Summary: Lightweight Download Accelerator
@ -23,6 +42,7 @@ byte-critical systems.
%setup -q %setup -q
%patch1 %patch1
%patch2 %patch2
%patch3
%build %build
%configure \ %configure \
@ -48,3 +68,5 @@ byte-critical systems.
%config %{_sysconfdir}/axelrc %config %{_sysconfdir}/axelrc
%{_bindir}/axel %{_bindir}/axel
%doc %{_mandir}/man1/axel.1%{ext_man} %doc %{_mandir}/man1/axel.1%{ext_man}
%changelog