Group :: Sciences/Mathematics
Source RPM: octave-vibes
Main Changelog Spec Patches Sources Download Gear Bugs and FR (0/0) Repocop
Raw spec file
# BEGIN SourceDeps(oneline):
BuildRequires: makeinfo
# END SourceDeps(oneline)
%def_with _octave_arch
%define octave_pkg_version 0.2.0
%define octave_pkg_name vibes
%define octave_descr_name vibes
Name: octave-%octave_pkg_name
Version: 0.2.0
Release: alt2
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/%{octave_pkg_name}-%{octave_pkg_version}.tar.gz
BuildRequires: octave-devel
%if_with _octave_arch
BuildRequires: gcc-c++ gcc-g77 libfftw3-devel libhdf5-devel liblapack-devel libncurses-devel libreadline-devel
BuildRequires: libGL-devel libGLU-devel libGraphicsMagick-c++-devel libGraphicsMagick-devel fontconfig-devel libfreetype-devel libX11-devel libgl2ps-devel libcurl-devel libsuitesparse-devel libarpack-ng-devel libqrupdate-devel libpcre-devel
%else
BuildArch: noarch
%endif
Provides: octave(vibes) = %version
# Depends: octave (>= 4.0.0)
Requires: octave >= 4.0.0
%description
Octave-Forge - Extra packages for GNU Octave.
This package contains the %octave_descr_name GNU Octave extension.
Extension Description:
The VIBes API allows one to easily display results (boxes, pavings)
%prep
%setup -q -n %{octave_pkg_name}-%{octave_pkg_version}
%build
%define build_flags CXXFLAGS=$CXXFLAGS
%build_flags octave -H --no-site-file --eval "pkg build -verbose -nodeps . %SOURCE0"
%install
mkdir -p %buildroot%_datadir/octave/packages
mkdir -p %buildroot%_libdir/octave/packages
octave -H --no-site-file --eval "pkg prefix %buildroot%_datadir/octave/packages %buildroot%_libdir/octave/packages; pkg install -verbose -local -nodeps %octave_pkg_name-%octave_pkg_version-$(octave -H --no-site-file --eval "printf([__octave_config_info__(\"canonical_host_type\"), \"-\", __octave_config_info__(\"api_version\")])").tar.gz"
%files
%_datadir/octave/packages/%octave_pkg_name-%octave_pkg_version
%if_with _octave_arch
%_libdir/octave/packages/%octave_pkg_name-%octave_pkg_version
%endif
%changelog
* Thu May 18 2017 Paul Wolneykien <manowar at altlinux.org> 0.2.0-alt2
- regenerated from template by package builder
* Tue Sep 27 2016 Igor Vlasenko <viy at altlinux.ru> 0.2.0-alt1
- initial import by package builder
# BEGIN SourceDeps(oneline):
BuildRequires: makeinfo
# END SourceDeps(oneline)
%def_with _octave_arch
%define octave_pkg_version 0.2.0
%define octave_pkg_name vibes
%define octave_descr_name vibes
Name: octave-%octave_pkg_name
Version: 0.2.0
Release: alt2
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/%{octave_pkg_name}-%{octave_pkg_version}.tar.gz
BuildRequires: octave-devel
%if_with _octave_arch
BuildRequires: gcc-c++ gcc-g77 libfftw3-devel libhdf5-devel liblapack-devel libncurses-devel libreadline-devel
BuildRequires: libGL-devel libGLU-devel libGraphicsMagick-c++-devel libGraphicsMagick-devel fontconfig-devel libfreetype-devel libX11-devel libgl2ps-devel libcurl-devel libsuitesparse-devel libarpack-ng-devel libqrupdate-devel libpcre-devel
%else
BuildArch: noarch
%endif
Provides: octave(vibes) = %version
# Depends: octave (>= 4.0.0)
Requires: octave >= 4.0.0
%description
Octave-Forge - Extra packages for GNU Octave.
This package contains the %octave_descr_name GNU Octave extension.
Extension Description:
The VIBes API allows one to easily display results (boxes, pavings)
%prep
%setup -q -n %{octave_pkg_name}-%{octave_pkg_version}
%build
%define build_flags CXXFLAGS=$CXXFLAGS
%build_flags octave -H --no-site-file --eval "pkg build -verbose -nodeps . %SOURCE0"
%install
mkdir -p %buildroot%_datadir/octave/packages
mkdir -p %buildroot%_libdir/octave/packages
octave -H --no-site-file --eval "pkg prefix %buildroot%_datadir/octave/packages %buildroot%_libdir/octave/packages; pkg install -verbose -local -nodeps %octave_pkg_name-%octave_pkg_version-$(octave -H --no-site-file --eval "printf([__octave_config_info__(\"canonical_host_type\"), \"-\", __octave_config_info__(\"api_version\")])").tar.gz"
%files
%_datadir/octave/packages/%octave_pkg_name-%octave_pkg_version
%if_with _octave_arch
%_libdir/octave/packages/%octave_pkg_name-%octave_pkg_version
%endif
%changelog
* Thu May 18 2017 Paul Wolneykien <manowar at altlinux.org> 0.2.0-alt2
- regenerated from template by package builder
* Tue Sep 27 2016 Igor Vlasenko <viy at altlinux.ru> 0.2.0-alt1
- initial import by package builder