|
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 |
|
|
Orion Poplawski |
e96e7e1 |
Name: python-%{srcname}
|
|
Orion Poplawski |
ca8a8c6 |
Version: 4.6.0
|
|
|
056f566 |
Release: 3%{?dist}
|
|
|
3e908da |
Summary: Explicitly typed attributes for Python
|
|
|
9e6f88c |
# Images have different licenses. For image license breakdown check
|
|
|
9e6f88c |
# image_LICENSE.txt file.
|
|
|
9e6f88c |
License: BSD and EPL and LGPLv2+
|
|
Orion Poplawski |
ca8a8c6 |
URL: http://docs.enthought.com/traits/
|
|
Orion Poplawski |
ca8a8c6 |
#Source0: https://github.com/enthought/traits/archive/%{commit}/%{modname}-%{shortcommit}.tar.gz
|
|
Orion Poplawski |
ca8a8c6 |
Source0: https://github.com/enthought/traits/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
c236b96 |
BuildRequires: gcc
|
|
|
7602083 |
|
|
Orion Poplawski |
e96e7e1 |
# we don't want to provide private python extension libs
|
|
Orion Poplawski |
ca8a8c6 |
#global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
|
|
|
3e908da |
|
|
|
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
|
|
Orion Poplawski |
ca8a8c6 |
BuildRequires: python%{python3_pkgversion}-nose
|
|
Orion Poplawski |
ca8a8c6 |
Requires: python%{python3_pkgversion}-numpy
|
|
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
|
|
Orion Poplawski |
ca8a8c6 |
%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
|
|
|
139d71b |
pushd build/lib.%{python3_platform}-%{python3_version}
|
|
|
24ef828 |
nosetests-%{python3_version} -v
|
|
|
24ef828 |
popd
|
|
|
24ef828 |
|
|
Orion Poplawski |
ca8a8c6 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
24ef828 |
%license LICENSE.txt
|
|
|
24ef828 |
%doc CHANGES.txt examples/tutorials README.rst
|
|
|
24ef828 |
%{python3_sitearch}/%{modname}*
|
|
|
3e908da |
|
|
|
3e908da |
%changelog
|
|
|
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
|