Subpackage python2-Traits has been removed
This commit is contained in:
parent
ca8a8c6bfd
commit
139d71bf84
|
@ -5,7 +5,7 @@
|
|||
|
||||
Name: python-%{srcname}
|
||||
Version: 4.6.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Explicitly typed attributes for Python
|
||||
Group: Development/Libraries
|
||||
# Images have different licenses. For image license breakdown check
|
||||
|
@ -33,38 +33,12 @@ attributes, traits also have several additional characteristics:
|
|||
modification of a trait's value can be automatically constructed
|
||||
using the trait's definition.
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
%{?python_provide:%python_provide python2-%{modname}}
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python2-devel python2-setuptools
|
||||
BuildRequires: python2-nose
|
||||
Requires: numpy
|
||||
Provides: python2-%{modname} = %{version}-%{release}
|
||||
|
||||
%description -n python2-%{srcname}
|
||||
The traits package developed by Enthought provides a special type
|
||||
definition called a trait. Although they can be used as normal Python object
|
||||
attributes, traits also have several additional characteristics:
|
||||
|
||||
* Initialization: A trait can be assigned a default value.
|
||||
* Validation: A trait attribute's type can be explicitly declared.
|
||||
* Delegation: The value of a trait attribute can be contained either
|
||||
in another object.
|
||||
* Notification: Setting the value of a trait attribute can trigger
|
||||
notification of other parts of the program.
|
||||
* Visualization: User interfaces that permit the interactive
|
||||
modification of a trait's value can be automatically constructed
|
||||
using the trait's definition.
|
||||
|
||||
Python 2 version.
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-nose
|
||||
Requires: python%{python3_pkgversion}-numpy
|
||||
Provides: python%{python3_pkgversion}-%{modname} = %{version}-%{release}
|
||||
|
@ -92,32 +66,26 @@ Python 3 version.
|
|||
sed -i -e '/extra_compile_args=/d' setup.py
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
pushd build/lib.*-%{python2_version}
|
||||
nosetests-%{python2_version} -v
|
||||
popd
|
||||
pushd build/lib.*-%{python3_version}
|
||||
pushd build/lib.%{python3_platform}-%{python3_version}
|
||||
nosetests-%{python3_version} -v
|
||||
popd
|
||||
|
||||
%files -n python2-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.txt examples/tutorials README.rst
|
||||
%{python2_sitearch}/%{modname}*
|
||||
|
||||
%files -n python%{python3_pkgversion}-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.txt examples/tutorials README.rst
|
||||
%{python3_sitearch}/%{modname}*
|
||||
|
||||
%changelog
|
||||
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-2
|
||||
- Subpackage python2-Traits has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Fri Jul 20 2018 Orion Poplawski <orion@nwra.com> - 4.6.0-1
|
||||
- Update to 4.6.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue