File libiu-0_3.spec of Package libiu-0_3

Name:           libiu-0_3
# List of additional build dependencies
BuildRequires:  gcc-c++  libpng-devel libjpeg-devel libtiff-devel SDL_gfx-devel SDL_image-devel scons ImageMagick
#BuildRequires: libavcodec-dev libavformat-dev libsdl-gfx1.2-dev libsdl-image1.2-dev 
Version:        0.3
Release:        1
License:        Apache License 2.0
Source:         iulib-0.3.tar.gz
Patch0:         %{name}-scons-builddist.patch
Group:          Productivity/Other
Summary:        A library of image understanding-related algorithms
Requires:       libpng12-0 libjpeg libtiff3 SDL_gfx SDL_image ImageMagick

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Iulib implements easy-to-use image and video I/O functions, as well as
a large number of common image processing functions.

Design goals are high portability, easy-to-understand algorithms, no
reliance on STL, and using a minimal set of data structures. Almost
all interfaces are written in terms of just numbers and the simple
narray<T> array class (see below).

%package devel
Summary:       Devel files for libiu
Group:         Development/Libraries
Requires:      %{name}

%description devel
Devel files for libiu


%prep
%setup -q -n iulib
%patch0 -p1

%build

# Assume that the package is built by plain 'make' if there's no ./configure.
# This test is there only because the wizard doesn't know much about the
# package, feel free to clean it up
if test -x ./configure; then
	%configure
fi
#scons DESTDIR=%buildroot prefix=%{_prefix} libdir=%{_libdir}
make

    

%install
#scons DESTDIR=%buildroot install
mkdir -p  %buildroot/%_docdir
echo "no non-devel files in this package, please install %{name}-devel" > %buildroot/%_docdir/README
%makeinstall prefix=%buildroot/usr libdir=%buildroot/%_libdir includedir=%buildroot/%_includedir/iulib

%clean
rm -rf %buildroot

%files 
%defattr(644,root,root,755)
%_docdir/*

%files devel
%defattr(644,root,root,755)
%{_includedir}/*
%{_libdir}/*

# This is a place for a proper filelist:
# /usr/bin/libiu-0_3
# You can also use shell wildcards:
# /usr/share/libiu-0_3/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here


%changelog
* Thu Jan 22 2009 dbornkessel@novell.com
- packaged libiu-0_3 version 0.3 using the buildservice spec file wizard
openSUSE Build Service is sponsored by