From 2c8c74c3ebb2df350f94fda5a884edc11bff2791492d23dc02756e6c712338a9 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 11 Oct 2018 13:30:17 +0000 Subject: [PATCH] - Modernise spec file OBS-URL: https://build.opensuse.org/package/show/benchmark/iometer?expand=0&rev=5 --- iometer.changes | 5 +++++ iometer.spec | 23 +++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/iometer.changes b/iometer.changes index 1050726..8ab21d0 100644 --- a/iometer.changes +++ b/iometer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 11 13:29:18 UTC 2018 - Martin Pluskal + +- Modernise spec file + ------------------------------------------------------------------- Sat Mar 4 09:19:38 UTC 2016 - mpluskal@suse.com diff --git a/iometer.spec b/iometer.spec index 9590d01..eccf000 100644 --- a/iometer.spec +++ b/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