Hello community, here is the log from the commit of package python-python-afl for openSUSE:Leap:15.2 checked in at 2020-05-24 18:08:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-python-afl (Old) and /work/SRC/openSUSE:Leap:15.2/.python-python-afl.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-afl" Sun May 24 18:08:49 2020 rev:12 rq:808437 version:0.7.2 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-python-afl/python-python-afl.changes 2020-02-19 18:49:17.155067910 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-python-afl.new.2738/python-python-afl.changes 2020-05-24 18:08:49.618126981 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:46 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-afl.spec ++++++ --- /var/tmp/diff_new_pack.r2LuuU/_old 2020-05-24 18:08:49.918127630 +0200 +++ /var/tmp/diff_new_pack.r2LuuU/_new 2020-05-24 18:08:49.918127630 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-python-afl # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,24 +24,25 @@ Summary: American fuzzy lop fork server and instrumentation for pure-Python code License: MIT Group: Development/Languages/Python -Url: http://jwilk.net/software/python-afl +URL: https://jwilk.net/software/python-afl Source: https://files.pythonhosted.org/packages/source/p/python-afl/python-afl-%{version}.tar.gz # PATCH-FIX-OPENSUSE Patch0: https://github.com/jwilk/python-afl/compare/%{version}...sebix:%{version}-fix-setup-tests.patch#/Use-setuptools-and-use-test-command-for-setup.patch BuildRequires: %{python_module Cython >= 0.19} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: afl >= 2 +Requires(post): update-alternatives +Requires(postun): update-alternatives +# name with _ automatically redirected by pypi to name with - +Provides: python-python_afl %if %{with test} BuildRequires: %{python_module nose} BuildRequires: afl >= 2 BuildRequires: procps %endif -BuildRequires: fdupes -Requires: afl >= 2 -# name with _ automatically redirected by pypi to name with - -Provides: python-python_afl - %python_subpackages %description @@ -59,6 +60,10 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/py-afl-tmin +%python_clone -a %{buildroot}%{_bindir}/py-afl-showmap +%python_clone -a %{buildroot}%{_bindir}/py-afl-fuzz +%python_clone -a %{buildroot}%{_bindir}/py-afl-cmin %python_expand %fdupes %{buildroot}%{$python_sitearch} %if %{with test} @@ -67,13 +72,25 @@ %python_exec setup.py test %endif +%post +%python_install_alternative py-afl-tmin +%python_install_alternative py-afl-showmap +%python_install_alternative py-afl-fuzz +%python_install_alternative py-afl-cmin + +%postun +%python_uninstall_alternative py-afl-tmin +%python_uninstall_alternative py-afl-showmap +%python_uninstall_alternative py-afl-fuzz +%python_uninstall_alternative py-afl-cmin + %files %{python_files} %doc doc/changelog doc/README doc/trophy-case %license doc/LICENSE -%python3_only %{_bindir}/py-afl-cmin -%python3_only %{_bindir}/py-afl-fuzz -%python3_only %{_bindir}/py-afl-showmap -%python3_only %{_bindir}/py-afl-tmin +%python_alternative %{_bindir}/py-afl-cmin +%python_alternative %{_bindir}/py-afl-fuzz +%python_alternative %{_bindir}/py-afl-showmap +%python_alternative %{_bindir}/py-afl-tmin %{python_sitearch}/* %changelog
