126 lines
3.9 KiB
RPMSpec
126 lines
3.9 KiB
RPMSpec
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
Summary: Generic Programming for Computer Vision
|
|
Name: vigra
|
|
Version: 1.7.1
|
|
Release: 4%{?dist}
|
|
License: MIT
|
|
Group: Development/Libraries
|
|
Source: http://hci.iwr.uni-heidelberg.de/%{name}/%{name}-%{version}-src.tar.gz
|
|
Patch1: vigra-1.7.1.lib_suffix.patch
|
|
Patch2: vigra-1.7.1.gcc460.patch
|
|
URL: http://hci.iwr.uni-heidelberg.de/vigra/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: zlib-devel libjpeg-devel libpng-devel libtiff-devel fftw-devel >= 3
|
|
BuildRequires: cmake hdf5-devel boost-devel boost-python doxygen python-sphinx numpy-f2py
|
|
|
|
%description
|
|
VIGRA stands for "Vision with Generic Algorithms". It's 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 thereby giving up execution speed.
|
|
|
|
%package devel
|
|
Summary: Development tools for programs which will use the vigra library
|
|
Group: Development/Libraries
|
|
Requires: vigra = %{version}-%{release}
|
|
Requires: libjpeg-devel libtiff-devel libpng-devel zlib-devel fftw-devel >= 3
|
|
Requires: hdf5-devel boost-devel boost-python numpy-f2py
|
|
|
|
%description devel
|
|
The vigra-devel package includes the header files necessary for developing
|
|
programs that use the vigra library.
|
|
|
|
%package python
|
|
Summary: Python interface for the vigra computer vision library
|
|
Requires: vigra = %{version}-%{release}
|
|
Requires: numpy numpy-f2py
|
|
|
|
%description python
|
|
The vigra-python package provides python bindings for vigra
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%cmake .
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
# cleanup
|
|
rm -f doc/vigranumpy/.buildinfo
|
|
find ./doc/ -type f | xargs chmod -x
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
rm -rf %{buildroot}/usr/doc
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root,-)
|
|
%doc LICENSE.txt README.txt
|
|
%{_libdir}/libvigraimpex.so.*
|
|
|
|
%files devel
|
|
%defattr(-, root, root,-)
|
|
%{_includedir}/vigra
|
|
%{_bindir}/vigra-config
|
|
%{_libdir}/libvigraimpex.so
|
|
%{_libdir}/vigra
|
|
%doc doc/vigra doc/vigranumpy
|
|
|
|
%files python
|
|
%defattr(-, root, root,-)
|
|
%{python_sitearch}/vigra
|
|
|
|
%changelog
|
|
* Fri Aug 26 2011 Tom Callaway <spot@fedoraproject.org> - 1.7.1-4
|
|
- rebuild against boost
|
|
|
|
* Tue May 17 2011 Orion Poplawski <orion@cora.nwra.com> - 1.7.1-3
|
|
- Rebuild for hdf5 1.8.7
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Sun Jan 23 2011 Bruno Postle <bruno@postle.net> 1.7.1-1
|
|
- upstream release
|
|
|
|
* Fri Jul 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> 1.7.0-2
|
|
- Rebuild for new python release
|
|
|
|
* Tue Apr 20 2010 Bruno Postle <bruno@postle.net> 1.7.0-1
|
|
- new upstream with cmake replacing autotools.
|
|
- patch for x86_64 systems.
|
|
- add vigra-python sub-package.
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Mon Jun 08 2009 Bruno Postle - 1.6.0-1
|
|
- Update to latest release
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0-4
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Aug 21 2007 Bruno Postle <bruno@postle.net> 1.5.0-3
|
|
- Bumping for Jesse
|
|
|
|
* Mon Feb 19 2007 Bruno Postle <bruno@postle.net> 1.5.0-2
|
|
- update to 1.5.0 release
|
|
- fix bug 228926: vigra: $RPM_OPT_FLAGS not used
|
|
|
|
* Sun Nov 23 2003 Bruno Postle <bruno@postle.net>
|
|
- initial package
|
|
|
|
|