Пакет octave-vibes: Specfile

# BEGIN SourceDeps(oneline):
BuildRequires: makeinfo
# END SourceDeps(oneline)
%def_with _octave_arch
%define octpkg vibes
Name: octave-%octpkg
Version: 0.2.0
Release: alt5
Summary: Interface to VIBes, Visualizer for Intervals and Boxes

Group: Sciences/Mathematics
License: GPL-3.0+, MIT
Url: http://octave.sourceforge.net/

Source0: https://downloads.sourceforge.net/project/octave/Octave%%20Forge%%20Packages/Individual%%20Package%%20Releases/%{octpkg}-%{version}.tar.gz
Patch: build-against-octave-6.patch

BuildRequires(pre): rpm-build-octave
BuildRequires: octave-devel
%if_with _octave_arch
BuildRequires: gcc-c++ gcc-g77 libfftw3-devel libhdf5-devel liblapack-devel libncurses-devel libreadline-devel
%else
BuildArch: noarch
%endif
Provides: octave(vibes) = %version
# Depends: octave (>= 4.0.0)
Requires: octave >= 4.0.0

%description
The VIBes API allows one to easily display results (boxes, pavings)

%prep
%setup -q -n %{octpkg}-%{version}
%patch -p1

%build
%octave_build

%install
%octave_install

%files
%doc NEWS COPYING DESCRIPTION
%_datadir/octave/packages/%octpkg-%version
%if_with _octave_arch
%_libdir/octave/packages/%octpkg-%version
%endif

%changelog
* Mon Jan 18 2021 Andrey Cherepanov <cas@altlinux.org> 0.2.0-alt5
- FTBFS: fix build with Octave 6.x.

* Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 0.2.0-alt4
- rebuild with octave 5

* Tue May 22 2018 Igor Vlasenko <viy@altlinux.ru> 0.2.0-alt3
- rebuild with octave 4.4

* Thu May 18 2017 Paul Wolneykien <manowar@altlinux.org> 0.2.0-alt2
- regenerated from template by package builder

* Tue Sep 27 2016 Igor Vlasenko <viy@altlinux.ru> 0.2.0-alt1
- initial import by package builder