## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # These are unreliable and often hang %bcond_with xvfb_tests %global desc %{expand: \ fsleyes-props is a library which is used by used by FSLeyes , and which allows you to: - Listen for change to attributes on a python object, - Automatically generate wxpython widgets which are bound to attributes of a python object - Automatically generate a command line interface to set values of the attributes of a python object.} Name: python-fsleyes-props Version: 1.8.3 Release: %autorelease Summary: [wx]Python event programming framework License: Apache-2.0 URL: https://pypi.python.org/pypi/fsleyes-props Source0: %{pypi_source fsleyes-props} BuildArch: noarch %description %{desc} %package -n python3-fsleyes-props Summary: %{summary} BuildRequires: python3-devel %if %{with xvfb_tests} BuildRequires: xorg-x11-server-Xvfb BuildRequires: pytest BuildRequires: %{py3_dist pytest} %endif %description -n python3-fsleyes-props %{desc} %prep %autosetup -n fsleyes-props-%{version} rm -rfv fsleyes_props.egg-info find . -name "*py" -exec sed -i '/#!\/usr\/bin\/env python/ d' '{}' \; # Fix requirements files, the auto-dep generator does not like "*". sed -i 's/fsleyes-widgets.*/fsleyes-widgets>=0.6/' requirements.txt # disable coverage sed -i 's/--cov=fsleyes_props//' setup.cfg %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files fsleyes_props %check %if %{with xvfb_tests} # These tests fail. Upstream says tests are not reliable, but work on his Ubuntu setup. # Do not use %%pytest: expands to other things xvfb-run pytest-3 tests --ignore=tests/test_widget_boolean.py --ignore=tests/test_widget_number.py --ignore=tests/test_widget_point.py %endif %files -n python3-fsleyes-props -f %{pyproject_files} %license LICENSE COPYRIGHT %doc README.rst %changelog * Fri Feb 17 2023 Ankur Sinha (Ankur Sinha Gmail) 1.8.3-1 - feat: update to 1.8.3 (fixes rhbz#2169358) * Fri Feb 17 2023 Ankur Sinha (Ankur Sinha Gmail) 1.8.2-3 - feat: use spdx license terminology * Fri Jan 20 2023 Fedora Release Engineering 1.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Oct 16 2022 Ankur Sinha (Ankur Sinha Gmail) 1.8.2-1 - feat: update to 1.8.2 (fixes rhbz#2119319) * Sun Oct 16 2022 Ankur Sinha (Ankur Sinha Gmail) 1.7.3-6 - chore: modernise spec to use pyproject macros * Fri Jul 22 2022 Fedora Release Engineering - 1.7.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 28 2022 Python Maint - 1.7.3-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.7.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Aug 07 2021 Ankur Sinha - 1.7.3-1 - Update to latest release * Fri Jul 23 2021 Fedora Release Engineering - 1.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7.2-2 - Rebuilt for Python 3.10 * Sun Mar 28 2021 Ankur Sinha - 1.7.2-1 - Update to latest release * Wed Jan 27 2021 Fedora Release Engineering - 1.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 1.7.0-2 - Explicitly BR setuptools * Sun Jun 21 2020 Ankur Sinha - 1.7.0-1 - Update to 1.7.0 * Tue May 26 2020 Miro Hrončok - 1.6.7-5 - Rebuilt for Python 3.9 * Fri Mar 06 2020 Ankur Sinha - 1.6.7-4 - Fix typo in requirements * Sun Feb 16 2020 Ankur Sinha - 1.6.7-3 - Work around requirement autogenerator limitations * Thu Jan 30 2020 Fedora Release Engineering - 1.6.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Oct 28 2019 Ankur Sinha - 1.6.7-1 - Update to 1.6.7 - use conditional for unreliable tests * Mon Oct 28 2019 Ankur Sinha - 1.6.6-2 - Remove python2 code from spec * Mon Sep 23 2019 Aniket Pradhan - 1.6.6-1 - Update to 1.6.6 * Mon Aug 19 2019 Miro Hrončok - 1.6.5-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.6.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 16 2019 Ankur Sinha - 1.6.5-1 - Update to new release * Sat Feb 02 2019 Fedora Release Engineering - 1.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 08 2018 Ankur Sinha - 1.6.4-1 - Initial build