forked from pool/libmicro
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
This commit is contained in:
parent
ef81e302d2
commit
3ea6c2ff51
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3dfbf57cb18928b8ae9e360da150637e639ee7854d952665c03ca091189f9206
|
|
||||||
size 270
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 14 17:04:27 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update url
|
||||||
|
- Remove ctcs glue
|
||||||
|
- Install bench.sh and multiview.sh to /usr/bin
|
||||||
|
- Don't install object files and headers
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 26 15:11:31 UTC 2012 - cfarrell@suse.com
|
Mon Mar 26 15:11:31 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libmicro
|
# spec file for package libmicro
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -15,85 +15,50 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: libmicro
|
Name: libmicro
|
||||||
|
Version: 0.4.0
|
||||||
|
Release: 0
|
||||||
|
Summary: LibMicro is a portable set of microbenchmarks
|
||||||
License: CDDL-1.0
|
License: CDDL-1.0
|
||||||
Group: System/Benchmark
|
Group: System/Benchmark
|
||||||
Requires: kernel-source gcc make
|
Url: https://java.net/projects/libmicro
|
||||||
AutoReqProv: on
|
|
||||||
Summary: kernel test suite, micro benchmark
|
|
||||||
Url: http://www.opensolaris.org/os/project/libmicro/
|
|
||||||
Version: 0.4.0
|
|
||||||
Release: 91
|
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: ctcstools-%{version}.tar.bz2
|
|
||||||
Patch0: find_binary.patch
|
Patch0: find_binary.patch
|
||||||
Patch1: removed_undefined_warning.patch
|
Patch1: removed_undefined_warning.patch
|
||||||
Patch2: fix-link.diff
|
Patch2: fix-link.diff
|
||||||
|
Requires: gcc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LibMicro is intended to measure the performance of various system and
|
LibMicro is a portable set of microbenchmarks that many Solaris
|
||||||
library calls. LibMicro was developed by Bart Smaalders and Phil
|
engineers used during Solaris 10 development to measure the
|
||||||
Harman.
|
performance of various system and library calls.
|
||||||
|
|
||||||
%if %suse_version < 1200
|
|
||||||
|
|
||||||
%package ctcs-glue
|
|
||||||
License: CDDL-1.0
|
|
||||||
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.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -a1
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1
|
%patch1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/libMicro
|
rm bin-*/*.a
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/libMicro/bin
|
rm bin-*/*.h
|
||||||
install -m 644 README $RPM_BUILD_ROOT/usr/lib/libMicro
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
cp bin/* $RPM_BUILD_ROOT/usr/lib/libMicro/bin
|
mkdir -p %{buildroot}%{_libexecdir}/libMicro/bin
|
||||||
cp bin-*/* $RPM_BUILD_ROOT/usr/lib/libMicro/bin
|
cp bin/* %{buildroot}%{_libexecdir}/libMicro/bin
|
||||||
install -m 755 *.sh $RPM_BUILD_ROOT/usr/lib/libMicro/bin
|
cp bin-*/* %{buildroot}%{_libexecdir}/libMicro/bin
|
||||||
#the sequence is important!
|
install -m 755 bench.sh %{buildroot}%{_bindir}
|
||||||
#install -m 755 runtests.sh $RPM_BUILD_ROOT/usr/lib/libMicro
|
install -m 755 multiview.sh %{buildroot}%{_bindir}
|
||||||
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
|
|
||||||
|
|
||||||
%if %suse_version >= 1200
|
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/lib/ctcs2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/lib/libMicro
|
%doc README OPENSOLARIS.LICENSE
|
||||||
%doc README
|
%{_libexecdir}/libMicro
|
||||||
|
%{_bindir}/bench.sh
|
||||||
%if %suse_version < 1200
|
%{_bindir}/multiview.sh
|
||||||
|
|
||||||
%files ctcs-glue
|
|
||||||
%defattr(-,root,root)
|
|
||||||
/usr/lib/ctcs2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user