c63b1e5
%global octpkg symbolic
c63b1e5
84495e6
# Disable automatic compilation of Python files in extra directories
84495e6
%global _python_bytecompile_extra 0
84495e6
c63b1e5
Name:           octave-%{octpkg}
0f0c3b8
Version:        3.1.1
a0f2467
Release:        %autorelease
c63b1e5
Summary:        Symbolic computations for Octave
57af0a3
License:        GPL-3.0-or-later AND FSFAP
3956480
URL:            https://octave.sourceforge.io/%{octpkg}
Orion Poplawski 004b50f
Source0:        https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
c63b1e5
aa9a4c6
BuildArch:      noarch
c63b1e5
BuildRequires:  octave-devel
0e6ecd2
BuildRequires:  octave-doctest >= 0.8.0
84495e6
BuildRequires:  python3
969c64d
BuildRequires:  python3-packaging
cf962c7
BuildRequires:  python%{python3_pkgversion}-sympy >= 1.4
c63b1e5
c63b1e5
Requires:       octave(api) = %{octave_api}
c63b1e5
Requires(post): octave
c63b1e5
Requires(postun): octave
cf962c7
Requires:       python%{python3_pkgversion}-sympy >= 1.4
c63b1e5
c63b1e5
c63b1e5
%description
aa9a4c6
Adds symbolic calculation features to GNU Octave.
aa9a4c6
These include common Computer Algebra System tools such as algebraic
aa9a4c6
operations, calculus, equation solving, Fourier and Laplace transforms,
aa9a4c6
variable precision arithmetic and other features.
c63b1e5
c63b1e5
%prep
3956480
%setup -q -n %{octpkg}-%{version}
68152b7
68152b7
%build
3956480
%octave_pkg_build
c63b1e5
c63b1e5
%install
c63b1e5
%octave_pkg_install
ca49da9
ca49da9
%check
148ea42
3956480
# "octave_pkg_check" macro uses "runtests" which doesn't test classes
ca49da9
pushd %{buildroot}/%{octpkgdir}
26bdc3b
%octave_cmd r=octsympy_tests; if r, type fntests.log; end; exit(r)
26bdc3b
rm -f fntests.log
0e6ecd2
%octave_cmd pkg load doctest; syms x; r=doctest("."); exit(~r)
ca49da9
popd
c63b1e5
c63b1e5
%post
c63b1e5
%octave_cmd pkg rebuild
c63b1e5
c63b1e5
%preun
c63b1e5
%octave_pkg_preun
c63b1e5
c63b1e5
%postun
c63b1e5
%octave_cmd pkg rebuild
c63b1e5
c63b1e5
%files
c63b1e5
%dir %{octpkgdir}
c63b1e5
%doc %{octpkgdir}/doc-cache
c63b1e5
%{octpkgdir}/*.m
ca49da9
%{octpkgdir}/*.tst
aa9a4c6
%{octpkgdir}/@logical
aa9a4c6
%{octpkgdir}/private
aa9a4c6
%{octpkgdir}/@sym
aa9a4c6
%{octpkgdir}/@symfun
72c8170
%{octpkgdir}/@double
9bb6bad
%dir %{octpkgdir}/packinfo
a2fa522
%license %{octpkgdir}/packinfo/COPYING
2083859
%doc %{octpkgdir}/packinfo/NEWS
2083859
%{octpkgdir}/packinfo/DESCRIPTION
2083859
%{octpkgdir}/packinfo/INDEX
2083859
%{octpkgdir}/packinfo/*.m
Orion Poplawski 4b4e834
%{_metainfodir}/octave-%{octpkg}.metainfo.xml
2083859
c63b1e5
c63b1e5
%changelog
a0f2467
%autochangelog