%global octpkg image
# Exclude .oct files from provides
%global __provides_exclude_from ^%{octpkglibdir}/.*\\.oct$
Name: octave-%{octpkg}
Version: 1.0.13
Release: 1%{?dist}
Summary: Image processing for Octave
Group: Applications/Engineering
License: GPLv2+
URL: http://octave.sourceforge.net/image/
Source0: http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
BuildRequires: octave-devel
Requires: octave(api) = %{octave_api}
Requires(post): octave
Requires(postun): octave
%description
The Octave-forge Image package provides functions for processing images. The
package also provides functions for feature extraction, image statistics,
spatial and geometric transformations, morphological operations, linear
filtering, and much more.
%prep
%setup -q -n %{octpkg}-%{version}
%build
%octave_pkg_build
%install
%octave_pkg_install
%post
%octave_cmd pkg rebuild
%preun
%octave_pkg_preun
%postun
%octave_cmd pkg rebuild
%files
%{octpkglibdir}
%dir %{octpkgdir}
%{octpkgdir}/*.m
%doc %{octpkgdir}/doc-cache
%{octpkgdir}/packinfo
%changelog
* Sat Feb 12 2011 Orion Poplawski <orion@cora.nwra.com> 1.0.13-1
- Initial Fedora package