forked from pool/iometer
Accepting request 641273 from benchmark
- Modernise spec file OBS-URL: https://build.opensuse.org/request/show/641273 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iometer?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 11 13:29:18 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
|
||||
|
||||
- Modernise spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 4 09:19:38 UTC 2016 - mpluskal@suse.com
|
||||
|
||||
|
23
iometer.spec
23
iometer.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package iometer
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@@ -12,7 +12,7 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -20,16 +20,14 @@ Name: iometer
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: I/O subsystem measurement and characterization tool
|
||||
License: GPL-2.0
|
||||
License: GPL-2.0-only
|
||||
Group: System/Benchmark
|
||||
Url: http://www.iometer.org/
|
||||
URL: http://www.iometer.org/
|
||||
Source0: http://sourceforge.net/projects/iometer/files/iometer-stable/%{version}/iometer-%{version}-src.tar.bz2
|
||||
Source1: %{name}.changes
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libaio-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Exclusivearch: %ix86 x86_64
|
||||
ExclusiveArch: %{ix86} x86_64
|
||||
|
||||
%description
|
||||
Iometer is an I/O subsystem measurement and characterization tool for
|
||||
@@ -37,21 +35,18 @@ single and clustered systems.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")"
|
||||
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
||||
TIME="\"$(date -d "${modified}" "+%%R")\""
|
||||
find . -name '*.cpp' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} -C src -f Makefile-Linux.%{_arch} CXX="c++ %{optflags}" all
|
||||
dos2unix *.txt
|
||||
|
||||
%install
|
||||
install -D -m 0755 src/dynamo %{buildroot}%{_bindir}/dynamo
|
||||
install -Dpm 0755 src/dynamo \
|
||||
%{buildroot}%{_bindir}/dynamo
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.txt CREDITS.txt DEVGUIDE.txt LICENSE.txt README.txt
|
||||
%license LICENSE.txt
|
||||
%doc CHANGELOG.txt CREDITS.txt DEVGUIDE.txt README.txt
|
||||
%{_bindir}/dynamo
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user