Пакет cvtool: Specfile

%def_disable static

Name: cvtool
Version: 0.2.5
Release: alt2

Packager: Victor Forsyuk <force@altlinux.org>

Summary: A simple image management, viewing, and printing program
License: GPLv2+
Group: Graphics

Url: http://cvtool.sourceforge.net/
Source: http://dl.sourceforge.net/cvtool/cvtool-%version.tar.bz2
Patch1: cvtool-0.2.5-detectcairo.patch

# Automatically added by buildreq on Fri Dec 12 2008
# and manually purged away items triggered by configure checks but not really
# needed for build.
BuildRequires: libcairo-devel libglew-devel

%description
flphoto is a basic image management and display program based on the FLTK
toolkit. It can read, display, print, and export many image file formats,
and supports EXIF information provided by digital cameras.

%package -n libcvl
Summary: Library for image and data processing using graphics processing units (GPUs)
Group: System/Libraries

%description -n libcvl
CVL is a library for image and data processing using graphics processing
units (GPUs).

It is suitable as a base for GPGPU applications (see http://www.gpgpu.org/).
CVL is based on OpenGL 2.1 and requires the GLEW library.

%package -n libcvl-devel
Summary: Development files of library for image and data processing using GPUs
Group: Development/C
Requires: libcvl = %version-%release

%description -n libcvl-devel
CVL is a library for image and data processing using graphics processing
units (GPUs).

It is suitable as a base for GPGPU applications (see http://www.gpgpu.org/).
CVL is based on OpenGL 2.1 and requires the GLEW library.


%prep
%setup
%patch1 -p2

%build
%autoreconf
%configure %{subst_enable static}
%make_build LIBS="-lrt -lm -lGL -lGLU -lGLEW"

%install
%makeinstall

%post
%install_info cvtool.info

%preun
%uninstall_info cvtool.info

%post -n libcvl-devel
%install_info cvl.info

%preun -n libcvl-devel
%uninstall_info cvl.info

%files
%_bindir/*
%_man1dir/*
%_infodir/cvtool.info*
%exclude /usr/share/doc

%files -n libcvl
%_libdir/*.so.*

%files -n libcvl-devel
%_includedir/*
%_libdir/*.so
%_infodir/cvl.info*

%changelog
* Fri Dec 12 2008 Victor Forsyuk <force@altlinux.org> 0.2.5-alt2
- Fix libcairo detect (bug spotted by Alexey Tourbin).
- Remove obsolete ldconfig calls.

* Wed Jul 30 2008 Victor Forsyuk <force@altlinux.org> 0.2.5-alt1
- 0.2.5

* Wed May 21 2008 Victor Forsyuk <force@altlinux.org> 0.2.4-alt1
- 0.2.4

* Thu Jan 24 2008 Victor Forsyuk <force@altlinux.org> 0.2.3-alt2
- Fix wrong URL.

* Mon Jan 21 2008 Victor Forsyuk <force@altlinux.org> 0.2.3-alt1
- Initial build.