File libmicro.spec of Package libmicro

# spec file for package libmicro (Version 0.4.0)
# Copyright (c) 2009 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

# norootforbuild

Name:           libmicro
License:        Other uncritical OpenSource License ; CDDL
Group:          System/Benchmark
Requires:       kernel-source gcc make       
AutoReqProv:    on
Summary:        kernel test suite, micro benchmark
Version:        0.4.0
Release:        81
Source0:        %{name}-%{version}.tar.bz2
Source1:        ctcstools-%{version}.tar.bz2
Patch0:         find_binary.patch
Patch1:         removed_undefined_warning.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

LibMicro is intended to measure the performance of various system and
library calls. LibMicro was developed by Bart Smaalders and Phil

    Various people from OpenSolaris community

%package ctcs-glue
License:        Other uncritical OpenSource License ; CDDL
Summary:        The let-libmicro-be-run-via-ctcs glue
Group:          Development/Tools/Other
AutoReqProv:    on
Requires:       ctcs2 >= 0.1.6
Requires:       libmicro = %{version}

%description ctcs-glue
This package contains the glue for integrating libmicro into the ctcs
testing framework.

    Patrick Kirsch <>

%setup -a1
%patch0 -p1

# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.

mkdir -p $RPM_BUILD_ROOT/usr/lib/libMicro
mkdir -p $RPM_BUILD_ROOT/usr/lib/libMicro/bin
install -m 644 README $RPM_BUILD_ROOT/usr/lib/libMicro
cp bin/* $RPM_BUILD_ROOT/usr/lib/libMicro/bin
cp bin-*/* $RPM_BUILD_ROOT/usr/lib/libMicro/bin
install -m 755 *.sh $RPM_BUILD_ROOT/usr/lib/libMicro/bin
#the sequence is important!
#install -m 755 $RPM_BUILD_ROOT/usr/lib/libMicro	
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools/libmicro-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools/libmicro.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf


%files ctcs-glue


* Fri Jun 19 2009
- disable as-needed for this package as it fails to build with it
* Fri Jul 04 2008
- added libmicro-ctcs-glue package, now the tcf is packaged and
  can be run from the SUT without the need of NIS
* Wed May 28 2008
- removed warning for bnc#394556,
  thanks to David Binderman
* Mon Mar 17 2008
- retrieve the essential test executing file:
- clarify the path for binary in
* Fri Jul 13 2007
- initial package
openSUSE Build Service is sponsored by