Orion Poplawski e96e7e1
%global srcname Traits
24ef828
%global modname traits
24ef828
%global commit ac5d0296def6a389f932add5fbcab2eef6e7334e
24ef828
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Orion Poplawski e96e7e1
e081753
# Circular test deps with traitsui
6f31e4b
%bcond_with bootstrap
e081753
Orion Poplawski e96e7e1
Name:           python-%{srcname}
8b61375
Version:        6.4.3
8b61375
Release:        1%{?dist}
3e908da
Summary:        Explicitly typed attributes for Python
9e6f88c
# Images have different licenses. For image license breakdown check
9e6f88c
# image_LICENSE.txt file.
8b61375
License:        BSD-3-Clause AND CC-BY-3.0
Orion Poplawski ca8a8c6
URL:            http://docs.enthought.com/traits/
Orion Poplawski ca8a8c6
#Source0:        https://github.com/enthought/traits/archive/%{commit}/%{modname}-%{shortcommit}.tar.gz
78d77ac
Source0:        https://github.com/enthought/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
c236b96
BuildRequires:  gcc
6a84b0c
BuildRequires:  xorg-x11-server-Xvfb
7602083
3e908da
%description
3e908da
The traits package developed by Enthought provides a special type
Orion Poplawski e96e7e1
definition called a trait. Although they can be used as normal Python object
Orion Poplawski e96e7e1
attributes, traits also have several additional characteristics:
3e908da
3e908da
* Initialization: A trait can be assigned a default value.
3e908da
* Validation: A trait attribute's type can be explicitly declared.
3e908da
* Delegation: The value of a trait attribute can be contained either
3e908da
  in another object.
3e908da
* Notification: Setting the value of a trait attribute can trigger
3e908da
  notification of other parts of the program.
3e908da
* Visualization: User interfaces that permit the interactive
3e908da
  modification of a trait's value can be automatically constructed
3e908da
  using the trait's definition.
3e908da
Orion Poplawski ca8a8c6
%package -n python%{python3_pkgversion}-%{srcname}
24ef828
Summary:        %{summary}
Orion Poplawski ca8a8c6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
Orion Poplawski ca8a8c6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
139d71b
BuildRequires:  python%{python3_pkgversion}-devel
139d71b
BuildRequires:  python%{python3_pkgversion}-setuptools
6a84b0c
BuildRequires:  python%{python3_pkgversion}-Cython
6a84b0c
BuildRequires:  python%{python3_pkgversion}-numpy
fd3f881
BuildRequires:  python%{python3_pkgversion}-six
6a84b0c
BuildRequires:  python%{python3_pkgversion}-sphinx
e081753
%if %{without bootstrap}
6a84b0c
BuildRequires:  python%{python3_pkgversion}-traitsui
e081753
%endif
Orion Poplawski ca8a8c6
Requires:       python%{python3_pkgversion}-numpy
fd3f881
Requires:       python%{python3_pkgversion}-six
Orion Poplawski ca8a8c6
Provides:       python%{python3_pkgversion}-%{modname} = %{version}-%{release}
Orion Poplawski ca8a8c6
Orion Poplawski ca8a8c6
%description -n python%{python3_pkgversion}-%{srcname}
24ef828
The traits package developed by Enthought provides a special type
24ef828
definition called a trait. Although they can be used as normal Python object
24ef828
attributes, traits also have several additional characteristics:
24ef828
24ef828
* Initialization: A trait can be assigned a default value.
24ef828
* Validation: A trait attribute's type can be explicitly declared.
24ef828
* Delegation: The value of a trait attribute can be contained either
24ef828
  in another object.
24ef828
* Notification: Setting the value of a trait attribute can trigger
24ef828
  notification of other parts of the program.
24ef828
* Visualization: User interfaces that permit the interactive
24ef828
  modification of a trait's value can be automatically constructed
24ef828
  using the trait's definition.
24ef828
24ef828
Python 3 version.
24ef828
3e908da
%prep
78d77ac
%autosetup -n %{modname}-%{version}
24ef828
# we already have a bit another flags
24ef828
sed -i -e '/extra_compile_args=/d' setup.py
3e908da
3e908da
%build
24ef828
%py3_build
3e908da
3e908da
%install
24ef828
%py3_install
3e908da
7602083
%check
2948e72
pushd build/lib.%{python3_platform}-*
e081753
  export PYTHONPATH=%{buildroot}%{python3_sitearch}
c9664b5
  xvfb-run %__python3 -s -m unittest discover -v
24ef828
popd
24ef828
Orion Poplawski ca8a8c6
%files -n python%{python3_pkgversion}-%{srcname}
24ef828
%license LICENSE.txt
78d77ac
%doc CHANGES.rst examples/tutorials README.rst
24ef828
%{python3_sitearch}/%{modname}*
3e908da
3e908da
%changelog
8b61375
* Tue Jan 30 2024 Orion Poplawski <orion@nwra.com> - 6.4.3-1
8b61375
- Update to 6.4.3
8b61375
- Fix and use SPDX license
8b61375
d47835b
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.2-3
d47835b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d47835b
c5660eb
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.2-2
c5660eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c5660eb
6f31e4b
* Wed Aug 16 2023 Orion Poplawski <orion@nwra.com> - 6.4.2-1
6f31e4b
- Disable bootstrap
6f31e4b
53429d6
* Sun Aug 13 2023 Orion Poplawski <orion@nwra.com> - 6.4.2-1
53429d6
- Update to 6.4.2
53429d6
- Bootstrap build for Python 3.12 (FTBFS #2226136)
53429d6
c3d0c9e
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.1-5
c3d0c9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c3d0c9e
3336479
* Thu Jul 20 2023 Python Maint <python-maint@redhat.com> - 6.4.1-4
3336479
- Rebuilt for Python 3.12
3336479
093bca2
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 6.4.1-3
093bca2
- Bootstrap for Python 3.12
093bca2
7a6b71b
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.1-2
7a6b71b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7a6b71b
b04be6f
* Sat Aug 13 2022 Orion Poplawski <orion@nwra.com> - 6.4.1-1
b04be6f
- Update to 6.4.1
b04be6f
6163bee
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.2-6
6163bee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6163bee
4646e6e
* Fri Jul 01 2022 Python Maint <python-maint@redhat.com> - 6.3.2-5
4646e6e
- Rebuilt for Python 3.11
4646e6e
2948e72
* Wed Jun 22 2022 Charalampos Stratakis <cstratak@redhat.com> - 6.3.2-4
2948e72
- Fix FTBFS with setuptools >= 62.1
2948e72
Resolves: rhbz#2097086
2948e72
4d1dcf4
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 6.3.2-3
4d1dcf4
- Bootstrap for Python 3.11
4d1dcf4
18dd750
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.2-2
18dd750
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
18dd750
b5b670c
* Fri Nov 12 2021 Orion Poplawski <orion@nwra.com> - 6.3.2-1
b5b670c
- Update to 6.3.2
b5b670c
067914c
* Thu Oct 14 2021 Orion Poplawski <orion@nwra.com> - 6.3.1-1
067914c
- Update to 6.3.1
067914c
dac83a1
* Sun Oct 10 2021 Orion Poplawski <orion@nwra.com> - 6.3.0-1
dac83a1
- Update to 6.3.0
dac83a1
aaaf76e
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.0-5
aaaf76e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
aaaf76e
ccd373a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.2.0-4
ccd373a
- Rebuilt for Python 3.10
ccd373a
17806a7
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.2.0-3
17806a7
- Bootstrap for Python 3.10
17806a7
5195653
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.0-2
5195653
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5195653
df0cc4a
* Mon Jan 25 2021 Orion Poplawski <orion@nwra.com> - 6.2.0-1
df0cc4a
- Update to 6.2.0
df0cc4a
8d82025
* Tue Aug 04 02:12:00 GMT 2020 Orion Poplawski <orion@nwra.com> - 6.1.1-1
8d82025
- Update to 6.1.1
8d82025
3550d30
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.0-3
3550d30
- Second attempt - Rebuilt for
3550d30
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3550d30
1471a67
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.0-2
1471a67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1471a67
c85e2f1
* Sat Jun 06 2020 Orion Poplawski <orion@nwra.com> - 6.1.0-1
c85e2f1
- Update to 6.1.0
c85e2f1
e081753
* Sat May 30 2020 Orion Poplawski <orion@nwra.com> - 6.0.0-3
e081753
- Add bootstrap config
e081753
3f51511
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 6.0.0-2
3f51511
- Rebuilt for Python 3.9
3f51511
6a84b0c
* Sun May 10 2020 Orion Poplawski <orion@nwra.com> - 6.0.0-1
6a84b0c
- Update to 6.0.0
6a84b0c
- Use unittest instead of nose and run under Xvfb
6a84b0c
29ac197
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
29ac197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
29ac197
3a85694
* Mon Nov 18 2019 Orion Poplawski <orion@nwra.com> - 5.2.0-1
3a85694
- Update to 5.2.0
3a85694
9cc1bcb
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.2-2
9cc1bcb
- Rebuilt for Python 3.8.0rc1 (#1748018)
9cc1bcb
1674468
* Tue Aug 27 2019 Orion Poplawski <orion@nwra.com> - 5.1.2-1
1674468
- Update to 5.1.2
1674468
d58dd40
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-3
d58dd40
- Rebuilt for Python 3.8
d58dd40
d71bad5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-2
d71bad5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d71bad5
f534561
* Thu Apr 18 2019 Orion Poplawski <orion@nwra.com> - 5.1.1-1
f534561
- Update to 5.1.1
f534561
78d77ac
* Mon Apr 15 2019 Orion Poplawski <orion@nwra.com> - 5.1.0-1
78d77ac
- Update to 5.1.0
78d77ac
0417c3a
* Tue Feb  5 2019 Orion Poplawski <orion@nwra.com> - 5.0.0-1
0417c3a
- Update to 5.0.0
0417c3a
056f566
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
056f566
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
056f566
139d71b
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-2
139d71b
- Subpackage python2-Traits has been removed
139d71b
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
139d71b
Orion Poplawski ca8a8c6
* Fri Jul 20 2018 Orion Poplawski <orion@nwra.com> - 4.6.0-1
Orion Poplawski ca8a8c6
- Update to 4.6.0
Orion Poplawski ca8a8c6
a3d31ab
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-18.gitac5d029
a3d31ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a3d31ab
6c5853f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-17.gitac5d029
6c5853f
- Rebuilt for Python 3.7
6c5853f
7ea99ae
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-16.gitac5d029
7ea99ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7ea99ae
0efe3e1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-15.gitac5d029
0efe3e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0efe3e1
211ad41
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-14.gitac5d029
211ad41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
211ad41
5ce2aaf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-13.gitac5d029
5ce2aaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5ce2aaf
0fc80b1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-12.gitac5d029
0fc80b1
- Rebuild for Python 3.6
0fc80b1
7fe1257
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-11.gitac5d029
7fe1257
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7fe1257
Orion Poplawski 6669856
* Wed Mar 2 2016 Orion Poplawski <orion@cora.nwra.com> - 4.5.0-10.gitac5d029
Orion Poplawski 6669856
- Provide python2/3-traits
Orion Poplawski 6669856
34a7f45
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-9.gitac5d029
34a7f45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
34a7f45
d1db260
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 4.5.0-8.gitac5d029
d1db260
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d1db260
24ef828
* Fri Nov 06 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 4.5.0-7.gitac5d029
24ef828
- Update to snapshot
24ef828
- Add python3 subpackage
24ef828
Orion Poplawski e96e7e1
* Mon Aug 10 2015 Orion Poplawski <orion@cora.nwra.com> - 4.5.0-5
Orion Poplawski e96e7e1
- Modernize spec
Orion Poplawski e96e7e1
d6ce8ea
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-4
d6ce8ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d6ce8ea
f42e5c5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-3
f42e5c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f42e5c5
298dab0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-2
298dab0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
298dab0
Orion Poplawski 027eb02
* Wed May 14 2014 Orion Poplawski <orion@cora.nwra.com> - 4.5.0-1
Orion Poplawski 027eb02
- Update to 4.5.0
Orion Poplawski 027eb02
b850fd8
* Thu Jan 30 2014 Orion Poplawski <orion@cora.nwra.com> - 4.4.0-1
b850fd8
- Update to 4.4.0
b850fd8
ab1240d
* Tue Aug 06 2013 Orion Poplawski <orion@cora.nwra.com> - 4.3.0-3
ab1240d
- Drop BR on python-setupdocs, no longer used
ab1240d
074b9bb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.0-2
074b9bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
074b9bb
7602083
* Tue Apr 23 2013 Orion Poplawski <orion@cora.nwra.com> - 4.3.0-1
7602083
- Update to 4.3.0
7602083
- Add python lib provides filter
7602083
- Add Provides: python-traits
7602083
- Drop line-ending fix, no longer needed
7602083
- Add %%check
7602083
- Drop %%defattr
7602083
e0daceb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-3
e0daceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e0daceb
9107abf
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
9107abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9107abf
Orion Poplawski 752bcd6
* Wed Jun 6 2012 Orion Poplawski <orion@cora.nwra.com> - 4.2.0-1
Orion Poplawski 752bcd6
- Update to 4.2.0
Orion Poplawski 752bcd6
a1d909c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-3
a1d909c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a1d909c
392dd2e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-2
392dd2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
392dd2e
9f8a81a
* Wed Jan 05 2011 Rakesh Pandit <rakesh@fedoraproject.org> 3.5.0-1
9f8a81a
- Updated to 3.5.0
9f8a81a
Chen Lei b1eb9b4
* Fri Aug 13 2010 Chen Lei <supercyper@163.com> 3.4.0-1
Chen Lei b1eb9b4
- Update spec to match latest guidelines w.r.t %%clean
Chen Lei b1eb9b4
- Fix timestamps for example files
Chen Lei b1eb9b4
- Remove BR:numpy
Chen Lei b1eb9b4
aff37a1
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2.0-2
aff37a1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
aff37a1
09367e9
* Sun Jan 31 2010 Rakesh Pandit <rakesh@fedoraproject.org> 3.2.0-1
09367e9
- Updated to 3.2.0
09367e9
a89d1b4
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-3
a89d1b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a89d1b4
18fb084
* Fri Jun 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.1.0-2
18fb084
- Fixed missing setupdocs BR
18fb084
3b2dd34
* Fri Jun 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.1.0-1
3b2dd34
- Updated
3b2dd34
3e908da
* Tue Jan 27 2009 Rakesh Pandit <rakesh@fedoraproject.org> 3.0.2-2
3e908da
- Fixed permissions for ctraits.so and _speedups.so
3e908da
- Fixed license after confirming from upstream
3e908da
3e908da
* Sun Dec 07 2008 Rakesh Pandit <rakesh@fedoraproject.org> 3.0.2-1
3e908da
- Initial package