Accepting request 290710 from home:pluskalm:branches:benchmark

- Use source for url
- Cleanup spec file with spec-cleaner
- Add fs_mark-nostatic.diff

OBS-URL: https://build.opensuse.org/request/show/290710
OBS-URL: https://build.opensuse.org/package/show/benchmark/fs_mark?expand=0&rev=2
This commit is contained in:
Martin Pluskal 2015-03-13 18:53:44 +00:00 committed by Git OBS Bridge
parent e4a9a2e740
commit 6fcbaf3372
3 changed files with 41 additions and 16 deletions

21
fs_mark-nostatic.diff Normal file
View File

@ -0,0 +1,21 @@
Index: fs_mark/Makefile
===================================================================
--- fs_mark.orig/Makefile 2008-06-11 14:08:26.109985014 -0500
+++ fs_mark/Makefile 2008-06-11 14:08:40.902982531 -0500
@@ -10,14 +10,14 @@ DIR1= /test/dir1
DIR2= /test/dir2
COBJS= fs_mark.o lib_timing.o
-CFLAGS= -O2 -Wall -D_FILE_OFFSET_BITS=64
+CFLAGS+= -O2 -Wall -D_FILE_OFFSET_BITS=64
all: fs_mark
fs_mark.o: fs_mark.c fs_mark.h
fs_mark: fs_mark.o lib_timing.o
- ${CC} -static -o fs_mark fs_mark.o lib_timing.o
+ ${CC} -o fs_mark fs_mark.o lib_timing.o
test: fs_mark
./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 13 18:48:38 UTC 2015 - mpluskal@suse.com
- Use source for url
- Cleanup spec file with spec-cleaner
- Add fs_mark-nostatic.diff
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 26 18:49:05 CEST 2011 - dsterba@suse.cz Tue Jul 26 18:49:05 CEST 2011 - dsterba@suse.cz

View File

@ -1,8 +1,8 @@
# #
# spec file for package fs_mark # spec file for package fs_mark
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (C) 2003-2004 EMC Corporation # Copyright (c) 2003-2004 EMC Corporation
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,19 +20,15 @@
Name: fs_mark Name: fs_mark
Version: 3.3 Version: 3.3
Release: 0 Release: 0
Url: http://fsmark.sf.net
BuildRequires: gcc
BuildRequires: make
%if 0%{?suse_version} > 1140
BuildRequires: glibc-devel-static
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.gz
Source1: COPYING
Patch1: fs_mark-Allow-creating-files-filled-with-random-bytes.patch
Summary: Filesystem benchmark Summary: Filesystem benchmark
License: GPL-2.0+ License: GPL-2.0+
Group: System/Benchmark Group: System/Benchmark
Url: http://fsmark.sf.net
Source0: http://sourceforge.net/projects/fsmark/files/fsmark/%{version}/%{name}-%{version}.tar.gz
Source1: COPYING
Patch1: fs_mark-Allow-creating-files-filled-with-random-bytes.patch
Patch2: fs_mark-nostatic.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
The fs_mark benchmark tests synchronous write workloads. It can vary the number The fs_mark benchmark tests synchronous write workloads. It can vary the number
@ -43,14 +39,15 @@ setups.
%prep %prep
%setup -q %setup -q
%patch1 -p1 %patch1 -p1
cp %{S:1} . %patch2 -p1
cp %{SOURCE1} .
%build %build
CFLAGS=$RPM_OPT_FLAGS CFLAGS="%{optflags}"
%__make make %{?_smp_mflags}
%install %install
%__install -D -m0755 fs_mark ${RPM_BUILD_ROOT}%{_bindir}/fs_mark install -D -m0755 fs_mark %{buildroot}%{_bindir}/fs_mark
%files %files
%defattr(-,root,root) %defattr(-,root,root)