SHA256
1
0
forked from pool/libmicro
libmicro/libmicro.spec
Martin Pluskal 3ea6c2ff51 Accepting request 286124 from home:pluskalm:branches:benchmark
- Update url
- Remove ctcs glue
- Install bench.sh and multiview.sh to /usr/bin
- Don't install object files and headers

OBS-URL: https://build.opensuse.org/request/show/286124
OBS-URL: https://build.opensuse.org/package/show/benchmark/libmicro?expand=0&rev=9
2015-02-15 19:47:31 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package libmicro
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#
Name: libmicro
Version: 0.4.0
Release: 0
Summary: LibMicro is a portable set of microbenchmarks
License: CDDL-1.0
Group: System/Benchmark
Url: https://java.net/projects/libmicro
Source0: %{name}-%{version}.tar.bz2
Patch0: find_binary.patch
Patch1: removed_undefined_warning.patch
Patch2: fix-link.diff
Requires: gcc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%prep
%setup -q
%patch0 -p1
%patch1
%patch2 -p1
%build
make %{?_smp_mflags}
%install
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 bench.sh %{buildroot}%{_bindir}
install -m 755 multiview.sh %{buildroot}%{_bindir}
%files
%defattr(-,root,root)
%doc README OPENSOLARIS.LICENSE
%{_libexecdir}/libMicro
%{_bindir}/bench.sh
%{_bindir}/multiview.sh
%changelog