File vigra.spec of Package vigra
#
# spec file for package vigra (Version 1.6.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: vigra
BuildRequires: boost-devel fftw3-devel gcc-c++ libjpeg-devel libpng-devel libtiff-devel pkg-config python-devel zlib-devel
License: X11/MIT
Group: Development/Libraries/C and C++
AutoReqProv: on
Summary: VIGRA Library
Version: 1.6.0
Release: 2
Source: %{name}%{version}.tar.bz2
Patch: vigra1.6.0-autoconf.patch
Url: http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
VIGRA stands for "Vision with Generic Algorithms". It is a novel
computer vision library that puts its main emphasis on customizable
algorithms and data structures. By using template techniques similar to
those in the C++ Standard Template Library, you can easily adapt any
VIGRA component to the needs of your application, without giving up
execution speed.
Authors:
--------
Ullrich Koethe <koethe@informatik.uni-hamburg.de>
%package -n libvigraimpex2
License: X11/MIT
Group: Development/Libraries/C and C++
Summary: VIGRA Library
Provides: %{name} = %{version}
Obsoletes: %{name} <= %{version}
%description -n libvigraimpex2
VIGRA stands for "Vision with Generic Algorithms". It is a novel
computer vision library that puts its main emphasis on customizable
algorithms and data structures. By using template techniques similar to
those in the C++ Standard Template Library, you can easily adapt any
VIGRA component to the needs of your application, without giving up
execution speed.
Authors:
--------
Ullrich Koethe <koethe@informatik.uni-hamburg.de>
%package devel
License: X11/MIT
Group: Development/Libraries/C and C++
Summary: VIGRA Library
Requires: libvigraimpex2 = %{version} libstdc++-devel libpng-devel zlib-devel libjpeg-devel libtiff-devel
%description devel
VIGRA stands for "Vision with Generic Algorithms". It is a novel
computer vision library that puts its main emphasis on customizable
algorithms and data structures. By using template techniques similar to
those in the C++ Standard Template Library, you can easily adapt any
VIGRA component to the needs of your application, without giving up
execution speed.
Authors:
--------
Ullrich Koethe <koethe@informatik.uni-hamburg.de>
%prep
%setup -q -n %{name}%{version}
%patch
%build
export vigra_srcdir=$PWD
cp -a config/configure.in config/acinclude.m4 .
rm config/libtool.m4 config/status.m4 config/aclocal.m4
ACLOCAL="aclocal -I config" autoreconf -f -i
%configure\
--docdir=%{_docdir}/%{name}\
--with-tiff\
--with-jpeg\
--with-png\
--with-zlib\
--with-fftw\
--with-boostpython\
CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS"
make %{?jobs:-j%jobs}
%install
make install\
libdir=$RPM_BUILD_ROOT/%{_libdir}\
bindir=$RPM_BUILD_ROOT/%{_bindir}\
docdir=$RPM_BUILD_ROOT/%{_docdir}/%{name}\
includedir=$RPM_BUILD_ROOT/%{_includedir}
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/libvigraimpex2
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/LICENSE.txt $RPM_BUILD_ROOT/%{_docdir}/libvigraimpex2/
cp -a README.txt $RPM_BUILD_ROOT/%{_docdir}/libvigraimpex2/
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libvigraimpex2 -p /sbin/ldconfig
%postun -n libvigraimpex2 -p /sbin/ldconfig
%files -n libvigraimpex2
%defattr(-,root,root)
%doc %dir %{_docdir}/libvigraimpex2
%doc %{_docdir}/libvigraimpex2/LICENSE.txt
%doc %{_docdir}/libvigraimpex2/README.txt
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/vigra-config
%{_libdir}/*.so
%{_libdir}/*.*a
%{_includedir}/*
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/[a-z]*
%doc %{_docdir}/%{name}/[A-KM-QS-Z]*
%doc %{_docdir}/%{name}/RG*
%doc %{_docdir}/%{name}/Ra*
%changelog
* Tue Oct 14 2008 sbrabec@suse.cz
- Fix acinclude.m4 to allow autoreconf to prevent build failure.
* Thu Sep 04 2008 sbrabec@suse.cz
- Updated to version 1.6.0:
* Added functions for arrays of arbitrary dimensions.
* Added functionality for 3D image analysis.
* Added Random Number Generation.
* Functions for affine transformation matrices.
* Added linear algebra functionality.
* Extended handling of rectangular matrices.
* Extended matrix functionality.
* Added sRGB to Color Space Conversions
* Other improvements and bug fixes in the code and documentation.
* Mon Jul 30 2007 ro@suse.de
- provide and obsolete old name
* Thu Jul 26 2007 sbrabec@suse.cz
- Updated to version 1.5.0:
* minor fixes
* several functions added
* documentation update
- Rename package according to shared library packaging policy.
* Fri Apr 20 2007 aj@suse.de
- Remove unneeded build requires.
* Mon Jul 17 2006 nadvornik@suse.cz
- do not redefine _AC_INIT_HELP in acinclude.m4
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 sbrabec@suse.cz
- Updated to version 1.4.0.
- Split devel subpackage.
* Mon Feb 14 2005 mcihar@suse.cz
- update to 1.3.2
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Tue Oct 26 2004 ro@suse.de
- create directory config before use
* Tue Aug 03 2004 mcihar@suse.cz
- regenerate configure scripts to know all architectures
- fix compilation on 64-bit platforms
* Fri Jul 30 2004 mcihar@suse.cz
- initial packaging