Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 5ed0c35ee2b30663ca2325ae9f86cbe3 > files > 1

vigra-1.3.2-1mdk.src.rpm

%define name	vigra
%define version	1.3.2
%define release	1mdk
%define major	2
%define libname	%mklibname %{name} %{major}

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Generic Programming for Computer Vision
License:	The VIGRA Artistic License
Group:		Development/C
Source0:	http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/%{name}%{version}.tar.bz2
URL:		http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/
BuildRoot:	%{_tmppath}/%{name}-root
BuildRequires:	zlib-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libpng-devel
BuildRequires:	libtiff-devel
BuildRequires:	fftw-devel

%description
VIGRA stands for "Vision with Generic Algorithms". It's a novel computer vision
library that puts its main emphasize 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 thereby giving up execution speed.

%package -n %{libname}
Summary:        Main library for %{name}
Group:          System/Libraries
Provides:       lib%{name} = %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run %{name}.

%package -n %{libname}-devel
Summary:        Development header files for %{name}
Group:          Development/C
Requires:       %{libname} = %{version}
Provides:       lib%{name}-devel = %{version}-%{release}

%description -n %{libname}-devel
Libraries, include files and other resources you can use to develop
%{name} applications.

%prep
%setup -q -n %{name}%{version}

%build
#cd config
#aclocal
#autoconf
#cp -f configure ../
#cd ..
#ln -s config/configure.in
#libtoolize --force
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	 --with-tiff \
	--with-jpeg \
	--with-png \
	--with-zlib \
	--with-fftw
%make CXXFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc

%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/vigra-config

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n %{libname}
%defattr (-,root,root)
%doc LICENSE README
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr (-,root,root)
%doc doc/vigra/*
%{_includedir}/%{name}
%multiarch %{multiarch_bindir}/vigra-config
%{_bindir}/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la

%changelog
* Sun Apr 03 2005 Couriousous <couriousous@mandrake.org> 1.3.2-1mdk
- New Release
- Multiarch

* Sun Jan 23 2005 Couriousous <couriousous@mandrake.org> 1.3.1-1mdk
- New Release

* Thu Dec 08 2004 Couriouous <couriousous@mandrake.org> 1.3.0-1mdk
- 1.3.0
- Remove patch0, merged upstream

* Thu Jul 01 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.2.0-4mdk 
- more complete patch from upstream

* Wed Jun 09 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.2.0-3mdk 
- fixed build
- rpmbuildupdate aware
- dropped patch0

* Sat Mar 13 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.2.0-2mdk
- fix link

* Mon Jan 12 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.2.0-1mdk
- first mdk package (leafred <fred@lea-linux.org>)