From 769051a9b3f3f7369002e23845a9a6a5bce2bb75ff0507deb399ff2a6a9641e3 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:06:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bonnie?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + bonnie-1.4.dif | 30 ++++++++++++++++ bonnie-1.4.tar.bz2 | 3 ++ bonnie.changes | 64 ++++++++++++++++++++++++++++++++++ bonnie.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++++ ready | 0 7 files changed, 208 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bonnie-1.4.dif create mode 100644 bonnie-1.4.tar.bz2 create mode 100644 bonnie.changes create mode 100644 bonnie.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/bonnie-1.4.dif b/bonnie-1.4.dif new file mode 100644 index 0000000..639ccdb --- /dev/null +++ b/bonnie-1.4.dif @@ -0,0 +1,30 @@ +--- Bonnie.c ++++ Bonnie.c +@@ -170,6 +170,13 @@ + #define o_direct 0 + #endif + ++#ifndef PAGE_SIZE ++#define PAGE_SIZE getpagesize() ++#endif ++#ifndef PAGE_MASK ++#define PAGE_MASK (~(PAGE_SIZE - 1)) ++#endif ++ + int main( + int argc, + char * argv[]) +--- Makefile ++++ Makefile +@@ -23,9 +23,9 @@ + # Added 99/07/20, + install: Bonnie + install -d $(DESTDIR)$(PREFIX)/bin +- install -s -m 0755 -o root -g root Bonnie $(DESTDIR)$(PREFIX)/bin/bonnie ++ install -m 0755 Bonnie $(DESTDIR)$(PREFIX)/bin/bonnie + install -d $(DESTDIR)$(MANDIR)/man1 +- install -m 0644 -o man -g root bonnie.1 $(DESTDIR)$(MANDIR)/man1/bonnie.1 ++ install -m 0644 bonnie.1 $(DESTDIR)$(MANDIR)/man1/bonnie.1 + gzip -9f $(DESTDIR)$(MANDIR)/man1/bonnie.1 + + clean: diff --git a/bonnie-1.4.tar.bz2 b/bonnie-1.4.tar.bz2 new file mode 100644 index 0000000..97b6cdd --- /dev/null +++ b/bonnie-1.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f318dccb7081b3ae9b1a54a098ccb03f53f8c007a17ed601db3b7243e6795289 +size 18326 diff --git a/bonnie.changes b/bonnie.changes new file mode 100644 index 0000000..d17cfac --- /dev/null +++ b/bonnie.changes @@ -0,0 +1,64 @@ +------------------------------------------------------------------- +Mon May 22 17:21:45 CEST 2006 - schwab@suse.de + +- Don't build as root. +- Don't strip binaries. + +------------------------------------------------------------------- +Fri May 19 15:27:05 CEST 2006 - ro@suse.de + +- fix build on ppc64 (define PAGE_MASK if not done) + +------------------------------------------------------------------- +Wed Jan 25 21:34:43 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Apr 4 15:16:23 MEST 2002 - garloff@suse.de + +- Version-1.4: + * Fix seek benchmark: 1.3 read too large chunks (1MB instead + of 16k) after every seek, resulting in too low seek numbers. + bug #15642 + +------------------------------------------------------------------- +Sat Feb 23 23:20:39 CET 2002 - garloff@suse.de + +- Compile fix for archs not supporting O_DIRECT (typo) +- Use O_DIRECT from fcntl.h if present. + +------------------------------------------------------------------- +Wed Feb 20 19:31:46 MET 2002 - garloff@suse.de + +- Update to bonnie-1.3: + * Fixed HTML output (thanks to Rupert Kolb for notfying/patch) + * Optionally use O_DIRECT (patch by Chris Mason / Andrea Arc.) + +------------------------------------------------------------------- +Wed Aug 30 19:35:37 CEST 2000 - garloff@suse.de + +- Update to 1.2: + * New option -u for getc_/putc_unlocked. + * Fixed CPU percentage reports if equal or in excess of 100%. + * Machine name defaults to hostname now. +- Use BuildRoot. + +------------------------------------------------------------------- +Sun Feb 13 23:31:57 CET 2000 - garloff@suse.de + +- Moved manpage to /usr/share/man +- new options -y, -S, -p +- Add warning if test-size smaller memsize + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Tue Jul 20 16:48:46 CEST 1999 - garloff@suse.de + +- Initial check in of Big Bonnie. +- Added breakhandler to remove temporary files. + diff --git a/bonnie.spec b/bonnie.spec new file mode 100644 index 0000000..43f400c --- /dev/null +++ b/bonnie.spec @@ -0,0 +1,87 @@ +# +# spec file for package bonnie (Version 1.4) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: bonnie +URL: http://www.garloff.de/kurt/linux/bonnie/ +License: GPL +Group: System/Benchmark +Autoreqprov: on +Summary: File System Benchmark +Version: 1.4 +Release: 352 +Source: %{name}-%{version}.tar.bz2 +Patch: bonnie-1.4.dif +#Patch: %{name}-%{version}.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Bonnie is a popular performance benchmark that targets various aspects +of Unix file systems. + + + +Authors: +-------- + Tim Bray + Kurt Garloff + +%prep +%setup -n bonnie +%patch + +%build +make CC=gcc CFLAGS="$RPM_OPT_FLAGS" + +%install +make install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} + +%files +%defattr(-, root, root) +%doc bonnie.doc README +/usr/bin/bonnie +%{_mandir}/man1/bonnie.1.gz + +%changelog -n bonnie +* Mon May 22 2006 - schwab@suse.de +- Don't build as root. +- Don't strip binaries. +* Fri May 19 2006 - ro@suse.de +- fix build on ppc64 (define PAGE_MASK if not done) +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Thu Apr 04 2002 - garloff@suse.de +- Version-1.4: + * Fix seek benchmark: 1.3 read too large chunks (1MB instead + of 16k) after every seek, resulting in too low seek numbers. + bug #15642 +* Sat Feb 23 2002 - garloff@suse.de +- Compile fix for archs not supporting O_DIRECT (typo) +- Use O_DIRECT from fcntl.h if present. +* Wed Feb 20 2002 - garloff@suse.de +- Update to bonnie-1.3: + * Fixed HTML output (thanks to Rupert Kolb for notfying/patch) + * Optionally use O_DIRECT (patch by Chris Mason / Andrea Arc.) +* Wed Aug 30 2000 - garloff@suse.de +- Update to 1.2: + * New option -u for getc_/putc_unlocked. + * Fixed CPU percentage reports if equal or in excess of 100%%. + * Machine name defaults to hostname now. +- Use BuildRoot. +* Sun Feb 13 2000 - garloff@suse.de +- Moved manpage to /usr/share/man +- new options -y, -S, -p +- Add warning if test-size smaller memsize +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. +* Tue Jul 20 1999 - garloff@suse.de +- Initial check in of Big Bonnie. +- Added breakhandler to remove temporary files. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4