Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package php-composer2 for openSUSE:Factory checked in at 2021-12-13 20:45:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php-composer2 (Old) and /work/SRC/openSUSE:Factory/.php-composer2.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php-composer2" Mon Dec 13 20:45:01 2021 rev:4 rq:940226 version:2.1.14 Changes: -------- --- /work/SRC/openSUSE:Factory/php-composer2/php-composer2.changes 2021-11-10 21:47:52.811848896 +0100 +++ /work/SRC/openSUSE:Factory/.php-composer2.new.2520/php-composer2.changes 2021-12-13 20:51:09.828664378 +0100 @@ -1,0 +2,12 @@ +Sat Dec 11 14:22:54 UTC 2021 - Yunhe Guo <i...@guoyunhe.me> + +- Use update-alternatives +- Update to 2.1.14 + * Fixed invalid release build (2.1.13 was deleted as invalid) + * Removed symfony/console ^6 support as we cannot be compatible + until Composer 2.3.0 is released. If you have issues with + Composer required as a dependency + Symfony make sure you stay + on Symfony 5.4 for now. (#10321) + + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php-composer2.spec ++++++ --- /var/tmp/diff_new_pack.JtJRFU/_old 2021-12-13 20:51:10.224664631 +0100 +++ /var/tmp/diff_new_pack.JtJRFU/_new 2021-12-13 20:51:10.228664633 +0100 @@ -17,7 +17,7 @@ Name: php-composer2 -Version: 2.1.12 +Version: 2.1.14 Release: 0 Summary: Dependency Management for PHP License: MIT @@ -32,6 +32,8 @@ Requires: php-phar Requires: php-zip Requires: php-zlib +Requires(post): update-alternatives +Requires(postun):update-alternatives Provides: composer = %{version} Provides: php-composer = %{version} Provides: php5-composer = %{version} @@ -60,10 +62,24 @@ # Install compiled phar file install -d -m 0750 %{buildroot}%{_bindir} install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/composer2 +# Create a dummy target for /etc/alternatives/composer +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +ln -s -f %{_sysconfdir}/alternatives/composer %{buildroot}%{_bindir}/composer + +%post +update-alternatives --install \ + %{_bindir}/composer composer %{_bindir}/composer2 2 + +%postun +if [ ! -f %{_bindir}/composer2 ] ; then + update-alternatives --remove composer %{_bindir}/composer2 +fi %files %license LICENSE %defattr(-,root,root,0755) +%{_bindir}/composer %{_bindir}/composer2 +%ghost %_sysconfdir/alternatives/composer %changelog ++++++ composer.phar ++++++ Binary files /var/tmp/diff_new_pack.JtJRFU/_old and /var/tmp/diff_new_pack.JtJRFU/_new differ