Hello community,

here is the log from the commit of package c-ares for openSUSE:Factory checked 
in at 2020-09-14 12:11:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/c-ares (Old)
 and      /work/SRC/openSUSE:Factory/.c-ares.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "c-ares"

Mon Sep 14 12:11:40 2020 rev:9 rq:833686 version:1.16.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/c-ares/c-ares.changes    2020-07-15 
11:12:43.752865830 +0200
+++ /work/SRC/openSUSE:Factory/.c-ares.new.4249/c-ares.changes  2020-09-14 
12:13:44.052265716 +0200
@@ -1,0 +2,13 @@
+Fri Sep 11 07:54:10 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- simplify conditions bit to make it tad more readable
+
+-------------------------------------------------------------------
+Thu Sep 10 01:31:11 UTC 2020 - Atri Bhattacharya <badshah...@gmail.com>
+
+- Implement multibuild specfile to split out tests into its own
+  flavor; this way we can build and run tests, which require
+  static lib, as well as avoid packaging the latter without issues
+  with the installed cmake file..
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ c-ares.spec ++++++
--- /var/tmp/diff_new_pack.PE5Oac/_old  2020-09-14 12:13:48.592270354 +0200
+++ /var/tmp/diff_new_pack.PE5Oac/_new  2020-09-14 12:13:48.596270359 +0200
@@ -16,17 +16,25 @@
 #
 
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "tests"
+%define psuffix -tests
+%bcond_without tests
+%else
+%bcond_with tests
+%endif
+%define pname c-ares
 %define sonum   2
 %define libname libcares%{sonum}
-Name:           c-ares
+Name:           %{pname}%{?psuffix}
 Version:        1.16.1
 Release:        0
 Summary:        Library for asynchronous name resolves
 License:        MIT
 URL:            https://c-ares.haxx.se/
-Source0:        http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
-Source1:        http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz.asc
-Source3:        %{name}.keyring
+Source0:        http://c-ares.haxx.se/download/%{pname}-%{version}.tar.gz
+Source1:        http://c-ares.haxx.se/download/%{pname}-%{version}.tar.gz.asc
+Source3:        %{pname}.keyring
 Source4:        baselibs.conf
 Patch0:         0001-Use-RPM-compiler-options.patch
 Patch1:         disable-live-tests.patch
@@ -80,7 +88,7 @@
 to build packages that depend on c-ares.
 
 %prep
-%autosetup -p1 -n %{name}-%{version}
+%autosetup -p1 -n %{pname}-%{version}
 
 # Remove bogus cflags checking
 sed -i -e '/XC_CHECK_BUILD_FLAGS/d' configure.ac
@@ -91,23 +99,32 @@
     -DCARES_STATIC:BOOL=OFF \
     -DCARES_SHARED:BOOL=ON \
     -DCARES_INSTALL:BOOL=ON \
+    -DCARES_BUILD_TOOLS:BOOL=ON \
+%if %{with tests}
+    -DCARES_STATIC:BOOL=ON \
     -DCARES_BUILD_TESTS:BOOL=ON \
-    -DCARES_BUILD_TOOLS:BOOL=ON
-%make_build
+%endif
+    %{nil}
+%cmake_build
 
 %install
+%if !%{with tests}
 %cmake_install
 install -m 644 -Dt %{buildroot}%{_mandir}/man1/ *.1
 install -m 644 -Dt %{buildroot}%{_mandir}/man3/ *.3
 # Tests require static lib so lets remove it so it does not get in package
 find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete -print
+%endif
 
+%if %{with tests}
 %check
 pushd build
 %make_build -C test
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
 ./bin/arestest
+%endif
 
+%if !%{with tests}
 %post   -n %{libname} -p /sbin/ldconfig
 %postun -n %{libname} -p /sbin/ldconfig
 
@@ -131,5 +148,6 @@
 %{_mandir}/man3/ares_*.3%{?ext_man}
 %{_libdir}/pkgconfig/libcares.pc
 %{_libdir}/cmake/c-ares/
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>tests</package>
</multibuild>


Reply via email to