ViTables/ViTables.spec

74 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2017-12-04 09:16:12 +00:00
Summary: Viewer for Hierarchical Datafiles (HDF5)
Name: ViTables
2020-01-05 09:27:11 +00:00
Version: 3.0.2
2022-02-11 12:17:07 +00:00
Release: %autorelease
2017-12-04 09:16:12 +00:00
License: GPLv3
2020-01-05 09:24:02 +00:00
URL: https://www.vitables.org/
2017-12-04 09:16:12 +00:00
Source0: https://github.com/uvemas/ViTables/archive/v%{version}/vitables-%{version}.tar.gz
Patch: vitables-collections-import.patch
2017-12-04 09:16:12 +00:00
BuildRequires: make
2019-03-11 13:45:02 +00:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2019-03-11 13:45:02 +00:00
BuildRequires: python3-numpy
BuildRequires: python3-tables
2017-12-04 09:16:12 +00:00
BuildRequires: hdf5-devel
2019-03-11 13:45:02 +00:00
BuildRequires: python3-sphinx
2017-12-04 09:16:12 +00:00
BuildArch: noarch
2020-01-05 09:24:02 +00:00
%global _description %{expand:
ViTables is a component of the PyTables family. It is a graphical tool
for browsing and editing files in both PyTables and HDF5 formats. It
is developed using Python and PyQt (the Python binding to the Qt
library), so it can run on any platform that supports these components.}
2017-12-04 09:16:12 +00:00
%description %_description
%package -n vitables
Summary: %{summary}
Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < 3.0.0-1
Requires: hdf5
2019-03-11 13:45:02 +00:00
Requires: python3-numpy
Requires: python3-tables
Requires: python3-qt5
Requires: python3-QtPy
2017-12-04 09:16:12 +00:00
%description -n vitables %_description
%package -n vitables-doc
Summary: vitables documentation and examples
Requires: vitables = %{version}-%{release}
%description -n vitables-doc
This package contains the documentation and examples for vitables.
2011-12-15 13:34:15 +00:00
%prep
%autosetup -p1
2011-12-15 13:34:15 +00:00
2017-12-04 09:16:12 +00:00
%build
2019-03-11 13:45:02 +00:00
%py3_build
2017-12-04 09:16:12 +00:00
make -C doc html
2011-12-15 13:34:15 +00:00
%install
2019-03-11 13:45:02 +00:00
%py3_install
2011-12-15 13:34:15 +00:00
2013-10-17 02:20:54 +00:00
# force the directory to be the same for ViTables and ViTables-doc
2017-12-04 09:16:12 +00:00
%global _docdir_fmt vitables
2013-10-17 02:20:54 +00:00
2017-12-04 09:16:12 +00:00
%files -n vitables
2016-06-29 18:08:13 +00:00
%license LICENSE.txt
%doc ANNOUNCE.txt README.txt TODO.txt
2011-12-15 13:34:15 +00:00
%{_bindir}/vitables
2019-03-11 13:45:02 +00:00
%{python3_sitelib}/vitables
%{python3_sitelib}/%{name}-%{version}-py*.egg-info
2011-12-15 13:34:15 +00:00
2017-12-04 09:16:12 +00:00
%files -n vitables-doc
2013-10-17 02:20:54 +00:00
%doc examples/
2017-12-04 09:16:12 +00:00
%doc doc/_build/html/
2011-12-15 13:34:15 +00:00
%changelog
2022-02-11 12:17:07 +00:00
%autochangelog