- Modernise spec file

OBS-URL: https://build.opensuse.org/package/show/benchmark/libmicro?expand=0&rev=15
This commit is contained in:
Martin Pluskal 2019-12-06 07:52:31 +00:00 committed by Git OBS Bridge
parent a184d192c7
commit 5ad3588a4b
2 changed files with 12 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 6 07:52:02 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Modernise spec file
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jul 2 16:33:07 UTC 2016 - mpluskal@suse.com Sat Jul 2 16:33:07 UTC 2016 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package libmicro # spec file for package libmicro
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LLC
# #
# 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -22,14 +22,12 @@ Release: 0
Summary: LibMicro is a portable set of microbenchmarks Summary: LibMicro is a portable set of microbenchmarks
License: CDDL-1.0 License: CDDL-1.0
Group: System/Benchmark Group: System/Benchmark
Url: https://java.net/projects/libmicro URL: https://java.net/projects/libmicro
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
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
Patch3: libmicro-implicit-fortify-decl.patch Patch3: libmicro-implicit-fortify-decl.patch
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
LibMicro is a portable set of microbenchmarks that many Solaris LibMicro is a portable set of microbenchmarks that many Solaris
@ -37,14 +35,10 @@ engineers used during Solaris 10 development to measure the
performance of various system and library calls. performance of various system and library calls.
%prep %prep
%setup -q %autosetup
%patch0
%patch1
%patch2
%patch3
%build %build
make CFLAGS="%{optflags}" %make_build CFLAGS="%{optflags}"
%install %install
rm bin-*/*.a rm bin-*/*.a
@ -57,8 +51,8 @@ install -m 755 bench.sh %{buildroot}%{_bindir}
install -m 755 multiview.sh %{buildroot}%{_bindir} install -m 755 multiview.sh %{buildroot}%{_bindir}
%files %files
%defattr(-,root,root) %license OPENSOLARIS.LICENSE
%doc README OPENSOLARIS.LICENSE %doc README
%{_libexecdir}/libMicro %{_libexecdir}/libMicro
%{_bindir}/bench.sh %{_bindir}/bench.sh
%{_bindir}/multiview.sh %{_bindir}/multiview.sh