Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a83645cca9 | ||
| ea0e3c13c2 | |||
| 9b5fc3fcee |
5 changed files with 59 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
uperf-1.0.3-beta.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: uperf
|
||||
# $Id$
|
||||
NAME := uperf
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
428035a33729a877f1ecd4ced8911a6f uperf-1.0.3-beta.tar.gz
|
||||
57
uperf.spec
Normal file
57
uperf.spec
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
Summary: Network performance tool with modelling and replay support
|
||||
Name: uperf
|
||||
Version: 1.0.3
|
||||
Release: 0.3.beta%{?dist}
|
||||
License: GPLv3
|
||||
Group: Applications/Internet
|
||||
URL: http://www.uperf.org/
|
||||
Source0: http://downloads.sourceforge.net/uperf/uperf-%{version}-beta.tar.gz
|
||||
BuildRequires: lksctp-tools-devel openssl-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
%description
|
||||
Network performance tool that supports modelling and replay of various
|
||||
networking patterns.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-beta
|
||||
find src -type f -print0 | xargs --null chmod 0644
|
||||
find workloads -type f -print0 | xargs --null chmod 0644
|
||||
chmod 0644 AUTHORS ChangeLog COPYING README
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--enable-cpc \
|
||||
--enable-netstat \
|
||||
--enable-udp \
|
||||
--enable-sctp \
|
||||
--enable-ssl
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__make} install DESTDIR=%{buildroot}
|
||||
|
||||
# Move stuff to own subdir
|
||||
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
||||
%{__install} -p -m 0644 %{buildroot}%{_datadir}/*.xml %{buildroot}%{_datadir}/%{name}
|
||||
%{__rm} -rf %{buildroot}%{_datadir}/*.xml %{buildroot}%{_datadir}/doc
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%doc AUTHORS ChangeLog COPYING README
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Mar 18 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.0.3-0.3.beta
|
||||
- move workloads files
|
||||
|
||||
* Thu Mar 18 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.0.3-0.2.beta
|
||||
- don't ship pem files
|
||||
|
||||
* Mon Feb 1 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.0.3-0.1.beta
|
||||
- initial build
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue