spec: netselect

Patryk Szczygłowski patryk at patryk.one.pl
Sun Dec 18 22:40:15 CET 2005


Netselect to programik wyszukujący najszybszy z podanych w linii poleceń
hostów.

netselect-debian.patch ze względu na rozmiar do pobrania spod:
http://download.patryk.one.pl/tmp/netselect-debian.patch

-- 
Patryk Szczygłowski
patryk at patryk.one.pl
JID: psz at chrome.pl
-------------- next part --------------
--- Makefile.old	2005-12-15 22:47:42.000000000 +0100
+++ Makefile	2005-12-15 23:11:50.000000000 +0100
@@ -1,10 +1,8 @@
-PREFIX = /usr/local
-BINDEST = ${PREFIX}/bin
-MANDEST = ${PREFIX}/man/man1
-
-CC = gcc
-CFLAGS = -O2 -Wall -I. -g
-LDFLAGS = -g
+PREFIX = ${DESTDIR}
+BINDEST = ${PREFIX}/usr/bin
+MANDEST = ${PREFIX}/usr/share/man/man1
+
+override CFLAGS += -Wall -I.
 LIBS = 
 
 ifdef OS2
@@ -25,23 +23,16 @@
 	
 ifdef OS2
 	emxbind -bwq netselect
-else
-	chown root netselect && chmod u+s netselect
 endif
 	
 	-install -d ${BINDEST}
 	-install -d ${MANDEST}
-	install $(STRIP) -o root -g root -m 4755 \
-		netselect${BINSUFFIX} ${BINDEST}
-	install -o root -g root -m 0755 netselect-apt ${BINDEST}
-	install -o root -g root -m 0644 netselect.1 ${MANDEST}
-	install -o root -g root -m 0644 netselect-apt.1 ${MANDEST}
-
+	install $(STRIP) netselect${BINSUFFIX} ${BINDEST}
+	install netselect.1 ${MANDEST}
 	
 uninstall:
-	$(RM) ${BINDEST}/netselect${BINSUFFIX} ${BINDEST}/netselect-apt
+	$(RM) ${BINDEST}/netselect${BINSUFFIX}
 	$(RM) ${MANDEST}/netselect.1
-	$(RM) ${MANDEST}/netselect-apt.1
 
 clean:
 	$(RM) netselect netselect${BINSUFFIX} *.o *~ build-stamp core
-------------- next part --------------
# $Revision: 1.57 $, $Date: 2005/11/28 09:18:32 $
Summary:	Choose the fastest server automatically
Summary(pl):	Automatycznie wybierz najszybszy serwer
Name:		netselect
Version:	0.3
Release:	1
License:	BSD
Group:		Networking/Utilities
Source0:	http://people.nit.ca/~apenwarr/netselect/%{name}-%{version}.tar.gz
# Source0-md5:	3a3714946db2458e5db3d55373057ef2
Patch0:		%{name}-debian.patch
Patch1:		%{name}-Makefile.patch
URL:		http://people.nit.ca/~apenwarr/netselect/
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This is netselect, an ultrafast intelligent parallelizing binary-search
implementation of "ping". You give it a (possibly very long) list of
servers, and it chooses the fastest/closest one automatically. It's good
for finding the fastest ftp mirror, the least laggy IRC server,
or the best Squid neighbour.

%description -l pl
netselect, super szybka, inteligentna, równoległa implementacja polecenia
"ping". Podajesz mu (prawdopodobnie bardzo długą) listę serwerów, i wybiera
z nich automatycznie najszybszy/najbliższy. Przydatne do znajdowania
najszybszego serwera ftp, najmniej lagującego serwera IRC albo najlepszego
sąsiedzkiego serwera proxy.

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p0

%build
%{__make} \
	CC="%{__cc}" \
	CFLAGS="%{rpmcflags}" \
	LDFLAGS="%{rpmldflags}"

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc ChangeLog HISTORY README README.traceroute debian/changelog debian/copyright
%attr(4754,root,adm) %{_bindir}/*
%{_mandir}/man1/*

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log: template.spec,v $


More information about the pld-devel-pl mailing list