Switch over to python3
This commit is contained in:
parent
058ee9fd06
commit
35d99b276b
|
@ -1,17 +1,17 @@
|
|||
Summary: Viewer for Hierarchical Datafiles (HDF5)
|
||||
Name: ViTables
|
||||
Version: 3.0.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
License: GPLv3
|
||||
URL: http://www.vitables.org/
|
||||
|
||||
Source0: https://github.com/uvemas/ViTables/archive/v%{version}/vitables-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-numpy
|
||||
BuildRequires: python2-tables
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-numpy
|
||||
BuildRequires: python3-tables
|
||||
BuildRequires: hdf5-devel
|
||||
BuildRequires: python2-sphinx
|
||||
BuildRequires: python3-sphinx
|
||||
BuildArch: noarch
|
||||
|
||||
%global _description \
|
||||
|
@ -27,10 +27,10 @@ Summary: %{summary}
|
|||
Provides: %{name} = %{version}-%{release}
|
||||
Obsoletes: %{name} < 3.0.0-1
|
||||
Requires: hdf5
|
||||
Requires: python2-numpy
|
||||
Requires: python2-tables
|
||||
Requires: python2-qt5
|
||||
Requires: python2-QtPy
|
||||
Requires: python3-numpy
|
||||
Requires: python3-tables
|
||||
Requires: python3-qt5
|
||||
Requires: python3-QtPy
|
||||
|
||||
%description -n vitables %_description
|
||||
|
||||
|
@ -48,11 +48,11 @@ This package contains the documentation and examples for vitables.
|
|||
sed -i.bak '/install_requires=/,+1d' setup.py
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
make -C doc html
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
# force the directory to be the same for ViTables and ViTables-doc
|
||||
%global _docdir_fmt vitables
|
||||
|
@ -61,8 +61,8 @@ make -C doc html
|
|||
%license LICENSE.txt
|
||||
%doc ANNOUNCE.txt README.txt TODO.txt
|
||||
%{_bindir}/vitables
|
||||
%{python2_sitelib}/vitables
|
||||
%{python2_sitelib}/%{name}-%{version}-py*.egg-info
|
||||
%{python3_sitelib}/vitables
|
||||
%{python3_sitelib}/%{name}-%{version}-py*.egg-info
|
||||
|
||||
%files -n vitables-doc
|
||||
%doc examples/
|
||||
|
|
Loading…
Reference in New Issue