Hello community, here is the log from the commit of package avgtime for openSUSE:Factory checked in at 2018-04-19 15:31:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/avgtime (Old) and /work/SRC/openSUSE:Factory/.avgtime.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "avgtime" Thu Apr 19 15:31:51 2018 rev:2 rq:597764 version:v0.5.0+4.ffdf200 Changes: -------- --- /work/SRC/openSUSE:Factory/avgtime/avgtime.changes 2017-12-19 10:58:30.317298790 +0100 +++ /work/SRC/openSUSE:Factory/.avgtime.new/avgtime.changes 2018-04-19 15:31:53.501137400 +0200 @@ -0,0 +1,21 @@ +Tue Apr 17 12:17:57 UTC 2018 - ok...@suse.com + +- Update to version v0.5.0+4.ffdf200: + * -Release 0.3: Histogram, sample mode and confidence intervals + * -Release 0.4: Added conf. intervals for estimated mu average (actually, fixed the values confidence interval). + * -README changes. + * -Release 0.5: Now works in windows. + * Fix compile error on 2.061 + * add dub package file + * -Fix compile errors on DMD 2.067 (issue #7). Thanks alekseymya for reporting issue. + * -Updated readme.md to mention Windows and Linux. + * -Mentioned OS X as working in the README.md. + * -Added SpawnProcess optional implementation version (not enabled by default), to cover issue #5). +- Update descriptions + +------------------------------------------------------------------- +Fri Apr 13 08:45:43 UTC 2018 - ok...@suse.com + +- Link dynamically to support openSUSE:Factory in the current version as well +- Add package post-installation test + New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ avgtime.spec ++++++ --- /var/tmp/diff_new_pack.EfidM0/_old 2018-04-19 15:31:54.053114692 +0200 +++ /var/tmp/diff_new_pack.EfidM0/_new 2018-04-19 15:31:54.057114527 +0200 @@ -1,7 +1,7 @@ # # spec file for package avgtime # -# Copyright (c) 2017 SUSE LLC +# 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 @@ -15,35 +15,70 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -Name: avgtime + +# Define just "test" as a package in _multibuild file to distinguish test +# instructions here +%if "@BUILD_FLAVOR@" == "" +%define _test 0 +%define name_ext %nil +%else +%define _test 1 +%define name_ext -test +%endif + +%define short_name avgtime +Name: %{short_name}%{?name_ext} Version: v0.5.0+4.ffdf200 Release: 0 -Summary: Like unix 'time' command, but with repetitions, median, std deviation +Summary: Utility similar to "time", but with repetitions and more statistics License: BSL-1.0 -Group: Applications -Url: https://github.com/jmcabo/%{name} -Source0: %{name}-%{version}.tar.xz +Group: Productivity/Scientific/Math +Url: https://github.com/jmcabo/%{short_name} +Source0: %{short_name}-%{version}.tar.xz +%if 0%{?_test} +BuildRequires: %{short_name} +%else BuildRequires: dmd -BuildRequires: dub -BuildRequires: phobos-devel-static +BuildRequires: phobos-devel +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build -# 2017-12-18: As of now dub segfaults when trying to build this package -ExcludeArch: i586 +#ExcludeArch: i586 %description -Works like the linux time command, except it accepts a -r argument to specify -repetitions and shows stats. +avgtime works like the "time" command, except it accepts an "-r" +argument to specify repetitions and shows more detailed statistics. -If repetitions are specified, then stats are computed and shown, like median, -average, and standard deviation. +If repetitions are specified, then statistics are computed and shown, like +median, mean, and standard deviation. %prep +%if 0%{?_test} +# workaround to prevent post/install failing assuming this file for whatever +# reason +touch %{_sourcedir}/%{short_name} +%else %setup -q +%endif %build -dub build --build=release +%if 0%{?_test} +avgtime --help +%else +# By default we would link against the static lib causing undefined values +# https://forum.dlang.org/post/ubqoqivomxxbkfpuu...@forum.dlang.org +# https://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/920/ +# okurz: I did not find a way to pass the "defaultlib" path through dub but +# avgtime is so simple we can simply use dmd directly +# dub build --build=release +dmd -defaultlib=:libphobos2.so avgtime.d +%endif %install +%if 0%{?_test} +# disable debug packages in package test to prevent error about missing files +%define debug_package %{nil} +%else + mkdir -p %{buildroot}%{_bindir}/ install -D %{name} %{buildroot}%{_bindir}/ @@ -52,4 +87,6 @@ %doc README.md LICENSE_1_0.txt %{_bindir}/%{name} +%endif + %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>