9fc68ec
Name:           python-fiat
9fc68ec
Version:        2019.1.0
673cf1a
Release:        %autorelease
9fc68ec
Summary:        Generator of arbitrary order instances of Lagrange elements on lines, triangles, and tetrahedra
9fc68ec
%global data_version 83d6c1d8f30d
9fc68ec
9fc68ec
Source0:        https://bitbucket.org/fenics-project/fiat/downloads/fiat-%{version}.tar.gz
9fc68ec
Source1:        https://bitbucket.org/fenics-project/fiat/downloads/fiat-%{version}.tar.gz.asc
9fc68ec
Source2:        https://bitbucket.org/fenics-project/fiat-reference-data/get/%{data_version}.zip#/fiat-reference-data-%{data_version}.zip
9fc68ec
9fc68ec
Patch0001:      https://bitbucket.org/fenics-project/fiat/commits/852a15f1a21e360cde3bc8b53693dc933712806e/raw#/patch0001.patch
9fc68ec
Patch0002:      https://bitbucket.org/fenics-project/fiat/commits/b8e9c1e64264bd2a0276db483ab300f7c16bf8e2/raw#/patch0002.patch
9fc68ec
Patch0004:      https://bitbucket.org/fenics-project/fiat/commits/3b17d82a5678746234247bad3b9c019f49bc00ad/raw#/patch0004.patch
9fc68ec
Patch0005:      https://bitbucket.org/fenics-project/fiat/commits/1d0f416f3b3093ccf72ff8cc65a56a213abbbd43/raw#/patch0005.patch
9fc68ec
9fc68ec
License:        LGPLv3+
9fc68ec
URL:            https://bitbucket.org/fenics-project/fiat
fe3aa98
BuildArch:      noarch
fe3aa98
f1983cd
BuildRequires:  python3-devel
1b92034
BuildRequires:  python3-setuptools
9fc68ec
BuildRequires:  python3dist(pytest)
9fc68ec
BuildRequires:  python3dist(pytest-cases)
9fc68ec
BuildRequires:  python3dist(numpy)
9fc68ec
BuildRequires:  python3dist(sympy)
9fc68ec
BuildRequires:  /usr/bin/unzip
fe3aa98
9fc68ec
%global _description %{expand:
dd54915
The FInite element Automatic Tabulator FIAT supports generation of
9fc68ec
arbitrary order instances of the Lagrange elements on lines,
9fc68ec
triangles, and tetrahedra. It is also capable of generating arbitrary
9fc68ec
order instances of Jacobi-type quadrature rules on the same element
9fc68ec
shapes. Further, H(div) and H(curl) conforming finite element spaces
9fc68ec
such as the families of Raviart-Thomas, Brezzi-Douglas-Marini and
9fc68ec
Nedelec are supported on triangles and tetrahedra. Upcoming versions
9fc68ec
will also support Hermite and nonconforming elements.
9fc68ec
9fc68ec
FIAT is part of the FEniCS Project.}
9fc68ec
9fc68ec
%description %_description
9fc68ec
9fc68ec
%package -n python3-fiat
9fc68ec
Summary: %summary
9fc68ec
%{?python_provides python3-fiat}
9fc68ec
9fc68ec
%description -n python3-fiat %_description
fe3aa98
fe3aa98
%prep
9fc68ec
%autosetup -n fiat-%{version} -p1
fff0f3a
fff0f3a
(
fff0f3a
  cd test/regression
fff0f3a
  unzip %{SOURCE2}
fff0f3a
  ln -s fenics-project-fiat-reference-data-%{data_version} fiat-reference-data
fff0f3a
)
fff0f3a
fff0f3a
sed -r -i 's/np[.]float/float/g' test/unit/test_discontinuous_taylor.py
fe3aa98
fe3aa98
%build
f1983cd
%py3_build
fe3aa98
fe3aa98
%install
f1983cd
%py3_install
fe3aa98
9fc68ec
%check
9fc68ec
%__python3 -m pytest -v test/ --skip-download
9fc68ec
9fc68ec
%files -n python3-fiat
9fc68ec
%license COPYING
9fc68ec
%license COPYING.LESSER
9fc68ec
%doc README.rst
9fc68ec
%doc AUTHORS
f1983cd
%{python3_sitelib}/FIAT/
9fc68ec
%{python3_sitelib}/fenics_fiat-%{version}-py%{python3_version}.egg-info/
f1983cd
fe3aa98
%changelog
673cf1a
%autochangelog