6cb22aa
# These are unreliable and often hang
6cb22aa
%bcond_with xvfb_tests
6cb22aa
126c156
%global srcname fsleyes-props
126c156
126c156
%global desc %{expand: \
126c156
fsleyes-props is a library which is used by used by FSLeyes , and which allows
126c156
you to:
126c156
126c156
- Listen for change to attributes on a python object,
126c156
- Automatically generate wxpython widgets which are bound to attributes of
126c156
  a python object
126c156
- Automatically generate a command line interface to set values of the
126c156
  attributes of a python object.}
126c156
126c156
126c156
Name:           python-%{srcname}
df6ebb6
Version:        1.7.3
bcbbce6
Release:        2%{?dist}
126c156
Summary:        [wx]Python event programming framework
126c156
126c156
License:        ASL 2.0
126c156
URL:            https://pypi.python.org/pypi/%{srcname}
126c156
Source0:        %pypi_source
126c156
126c156
BuildArch:      noarch
126c156
126c156
%description
126c156
%{desc}
126c156
126c156
%package -n python3-%{srcname}
126c156
Summary:        %{summary}
126c156
BuildRequires:  python3-devel
126c156
BuildRequires:  %{py3_dist six}
126c156
BuildRequires:  %{py3_dist matplotlib}
126c156
BuildRequires:  %{py3_dist wxPython}
126c156
BuildRequires:  %{py3_dist deprecation}
126c156
BuildRequires:  %{py3_dist fsleyes-widgets}
126c156
BuildRequires:  %{py3_dist fslpy}
126c156
BuildRequires:  %{py3_dist sphinx}
126c156
BuildRequires:  %{py3_dist sphinx_rtd_theme}
126c156
BuildRequires:  %{py3_dist mock}
126c156
BuildRequires:  %{py3_dist pytest pytest-cov}
e9609c6
BuildRequires:  %{py3_dist setuptools}
126c156
BuildRequires:  xorg-x11-server-Xvfb
126c156
126c156
Requires:  %{py3_dist six}
126c156
Requires:  %{py3_dist matplotlib}
126c156
Requires:  %{py3_dist wxPython}
126c156
Requires:  %{py3_dist deprecation}
126c156
Requires:  %{py3_dist fsleyes-widgets}
126c156
Requires:  %{py3_dist fslpy}
126c156
%{?python_provide:%python_provide python3-%{srcname}}
126c156
126c156
%description -n python3-%{srcname}
126c156
%{desc}
126c156
126c156
%package doc
126c156
Summary:        %{summary}
126c156
126c156
%description doc
126c156
This package contains documentation for %{name}.
126c156
126c156
%prep
126c156
%autosetup -n %{srcname}-%{version}
126c156
rm -rfv fsleyes_props.egg-info
126c156
126c156
find . -name "*py" -exec sed -i '/#!\/usr\/bin\/env python/ d' '{}' \;
126c156
b239aa3
# Fix requirements files, the auto-dep generator does not like "*".
9809b96
sed -i 's/fsleyes-widgets.*/fsleyes-widgets>=0.6/' requirements.txt
b239aa3
126c156
126c156
%build
126c156
%py3_build
126c156
126c156
# Build documentation
126c156
PYTHONPATH=.  sphinx-build-3 doc html
126c156
# Remove artefacts
126c156
rm -frv html/.buildinfo
126c156
rm -frv html/.doctrees
126c156
126c156
%install
126c156
%py3_install
126c156
126c156
126c156
%check
6cb22aa
%if %{with xvfb_tests}
126c156
# These tests fail. Upstream says tests are not reliable, but work on his Ubuntu setup
126c156
xvfb-run pytest-3 tests --ignore=tests/test_widget_boolean.py --ignore=tests/test_widget_number.py --ignore=tests/test_widget_point.py
6cb22aa
%endif
126c156
126c156
126c156
%files -n python3-%{srcname}
126c156
%license LICENSE COPYRIGHT
126c156
%doc README.rst
126c156
%{python3_sitelib}/fsleyes_props/
f5494aa
%{python3_sitelib}/fsleyes_props-%{version}-py%{python3_version}.egg-info
126c156
126c156
%files doc
126c156
%license LICENSE COPYRIGHT
126c156
%doc html
126c156
126c156
%changelog
bcbbce6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-2
bcbbce6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bcbbce6
df6ebb6
* Sat Aug 07 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.7.3-1
df6ebb6
- Update to latest release
df6ebb6
2b893ec
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
2b893ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2b893ec
87c5983
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.7.2-2
87c5983
- Rebuilt for Python 3.10
87c5983
b3d8e7e
* Sun Mar 28 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.7.2-1
b3d8e7e
- Update to latest release
b3d8e7e
4b69e7b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
4b69e7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4b69e7b
e277fb7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
e277fb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e277fb7
e9609c6
* Thu Jun 25 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.7.0-2
e9609c6
- Explicitly BR setuptools
e9609c6
77196a3
* Sun Jun 21 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.7.0-1
77196a3
- Update to 1.7.0
77196a3
ee45ab5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.6.7-5
ee45ab5
- Rebuilt for Python 3.9
ee45ab5
9809b96
* Fri Mar 06 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.6.7-4
9809b96
- Fix typo in requirements
9809b96
b239aa3
* Sun Feb 16 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.6.7-3
b239aa3
- Work around requirement autogenerator limitations
b239aa3
931fdd9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-2
931fdd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
931fdd9
6cb22aa
* Mon Oct 28 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.6.7-1
6cb22aa
- Update to 1.6.7
6cb22aa
- use conditional for unreliable tests
6cb22aa
e09e311
* Mon Oct 28 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.6.6-2
e09e311
- Remove python2 code from spec
e09e311
aaa34f6
* Mon Sep 23 2019 Aniket Pradhan <major AT fedoraproject DOT org> - 1.6.6-1
aaa34f6
- Update to 1.6.6
aaa34f6
af12ee7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.5-3
af12ee7
- Rebuilt for Python 3.8
af12ee7
477d27e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-2
477d27e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
477d27e
2e7fa60
* Sat Feb 16 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.6.5-1
2e7fa60
- Update to new release
2e7fa60
2ed50f6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-2
2ed50f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2ed50f6
126c156
* Thu Nov 08 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.6.4-1
126c156
- Initial build