Hello community, here is the log from the commit of package avgtime for openSUSE:Factory checked in at 2018-09-03 10:36:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/avgtime (Old) and /work/SRC/openSUSE:Factory/.avgtime.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "avgtime" Mon Sep 3 10:36:26 2018 rev:3 rq:632739 version:v0.5.0+4.ffdf200 Changes: -------- --- /work/SRC/openSUSE:Factory/avgtime/avgtime.changes 2018-04-19 15:31:53.501137400 +0200 +++ /work/SRC/openSUSE:Factory/.avgtime.new/avgtime.changes 2018-09-03 10:36:28.252881525 +0200 @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +Thu Aug 30 14:21:12 UTC 2018 - Guillaume GARDET <[email protected]> + +- Use LDC compiler when DMD is not available +- Make use of %license + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ avgtime.spec ++++++ --- /var/tmp/diff_new_pack.mcw1ji/_old 2018-09-03 10:36:28.672882611 +0200 +++ /var/tmp/diff_new_pack.mcw1ji/_new 2018-09-03 10:36:28.676882621 +0200 @@ -26,6 +26,13 @@ %define name_ext -test %endif +# DMD is available only on x86*. Use LDC with dub otherwise. +%ifarch %{ix86} x86_64 +%bcond_without dcompiler_dmd +%else +%bcond_with dcompiler_dmd +%endif + %define short_name avgtime Name: %{short_name}%{?name_ext} Version: v0.5.0+4.ffdf200 @@ -38,8 +45,14 @@ %if 0%{?_test} BuildRequires: %{short_name} %else +%if %{with dcompiler_dmd} BuildRequires: dmd BuildRequires: phobos-devel +%else +BuildRequires: dub +BuildRequires: ldc +BuildRequires: ldc-phobos-devel +%endif %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build #ExcludeArch: i586 @@ -69,8 +82,12 @@ # 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 +%if %{with dcompiler_dmd} dmd -defaultlib=:libphobos2.so avgtime.d +%else +# dub works fine with LDC +dub build --build=release +%endif %endif %install @@ -84,7 +101,8 @@ %files %defattr(-,root,root) -%doc README.md LICENSE_1_0.txt +%doc README.md +%license LICENSE_1_0.txt %{_bindir}/%{name} %endif
