File libmicro.spec of Package libmicro

# spec file for package libmicro
# Copyright (c) 2016 SUSE LINUX 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

Name:           libmicro
Version:        0.4.2+hg.20120726
Release:        0
Summary:        LibMicro is a portable set of microbenchmarks
License:        CDDL-1.0
Group:          System/Benchmark
Source0:        %{name}-%{version}.tar.xz
Patch0:         find_binary.patch
Patch1:         removed_undefined_warning.patch
Patch2:         fix-link.diff
Patch3:         libmicro-implicit-fortify-decl.patch
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

LibMicro is a portable set of microbenchmarks that many Solaris
engineers used during Solaris 10 development to measure the
performance of various system and library calls.

%setup -q

make CFLAGS="%{optflags}"

rm bin-*/*.a
rm bin-*/*.h
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libexecdir}/libMicro/bin
cp bin/* %{buildroot}%{_libexecdir}/libMicro/bin
cp bin-*/* %{buildroot}%{_libexecdir}/libMicro/bin
install -m 755 %{buildroot}%{_bindir}
install -m 755 %{buildroot}%{_bindir}


openSUSE Build Service is sponsored by