Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tini for openSUSE:Factory checked in at 2023-05-05 15:57:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tini (Old) and /work/SRC/openSUSE:Factory/.tini.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tini" Fri May 5 15:57:35 2023 rev:3 rq:1084814 version:0.19.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tini/tini.changes 2020-09-14 12:21:33.024744890 +0200 +++ /work/SRC/openSUSE:Factory/.tini.new.1533/tini.changes 2023-05-05 15:57:37.652202840 +0200 @@ -1,0 +2,7 @@ +Thu May 4 09:34:09 UTC 2023 - Dan Äermák <dcer...@suse.com> + +- Modernize spec: use %cmake & %set_build_flags macros +- Install tini into %_sbindir to adhere to FHS +- Install docs & license for static subpackage as well + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tini.spec ++++++ --- /var/tmp/diff_new_pack.pq0np1/_old 2023-05-05 15:57:38.164205774 +0200 +++ /var/tmp/diff_new_pack.pq0np1/_new 2023-05-05 15:57:38.168205797 +0200 @@ -1,7 +1,7 @@ # # spec file for package tini # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,7 +23,7 @@ License: MIT Group: System/Management URL: https://github.com/krallin/tini -Source: https://github.com/krallin/tini/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source: %{URL}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: glibc-devel @@ -51,31 +51,34 @@ needed inside the container. %prep -%setup -q +%autosetup %build # Subreaper requires kernel >= 3.4 +%set_build_flags CFLAGS="${CFLAGS-} -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37" export CFLAGS # Enable DMINIMAL to supress verbosity or any output at all, plus disable # argument parsing. You an still set some options via env vars # CMAKE_ARGS="-DMINIMAL=ON" -cmake "$CMAKE_ARGS" -make tini %{?_smp_mflags} $LDFLAGS -make tini-static %{?_smp_mflags} $LDFLAGS +%cmake . +%make_build tini +%make_build tini-static %install -mkdir -p %{buildroot}/%{_bindir} -cp tini %{buildroot}/tini -cp tini-static %{buildroot}/tini-static +mkdir -p %{buildroot}/%{_sbindir} +cp build/tini %{buildroot}/%{_sbindir}/tini +cp build/tini-static %{buildroot}/%{_sbindir}/tini-static %files %license LICENSE %doc README.md -/tini +%{_sbindir}/tini %files static -/tini-static +%{_sbindir}/tini-static +%license LICENSE +%doc README.md %changelog