2010-04-21 21:28:14 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
2009-06-08 22:11:28 +00:00
|
|
|
Summary: Generic Programming for Computer Vision
|
|
|
|
Name: vigra
|
2012-11-08 23:26:51 +00:00
|
|
|
Version: 1.9.0
|
2013-08-29 14:10:49 +00:00
|
|
|
Release: 9%{?dist}
|
2009-06-08 22:11:28 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries
|
2013-08-29 14:38:31 +00:00
|
|
|
Source0: http://hci.iwr.uni-heidelberg.de/%{name}/%{name}-%{version}-src.tar.gz
|
|
|
|
Source1: vigra-config.sh
|
2010-04-21 21:28:14 +00:00
|
|
|
URL: http://hci.iwr.uni-heidelberg.de/vigra/
|
2009-06-08 22:11:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2010-04-21 21:28:14 +00:00
|
|
|
BuildRequires: zlib-devel libjpeg-devel libpng-devel libtiff-devel fftw-devel >= 3
|
2013-02-14 11:17:09 +00:00
|
|
|
BuildRequires: cmake boost-devel doxygen
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
BuildRequires: hdf5-devel python-sphinx numpy-f2py boost-python OpenEXR-devel
|
|
|
|
%endif
|
2013-07-24 13:52:25 +00:00
|
|
|
Patch0: vigra.rhbz987048.shebang.patch
|
2006-09-12 21:50:31 +00:00
|
|
|
|
|
|
|
%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
|
2010-04-21 21:28:14 +00:00
|
|
|
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
|
2013-06-04 11:11:41 +00:00
|
|
|
Requires: boost-devel
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
Requires: hdf5-devel numpy-f2py boost-python OpenEXR-devel
|
|
|
|
%endif
|
2006-09-12 21:50:31 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The vigra-devel package includes the header files necessary for developing
|
|
|
|
programs that use the vigra library.
|
|
|
|
|
2013-02-14 11:17:09 +00:00
|
|
|
%if ! 0%{?rhel}
|
2010-04-21 21:28:14 +00:00
|
|
|
%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
|
2013-02-14 11:17:09 +00:00
|
|
|
%endif
|
2010-04-21 21:28:14 +00:00
|
|
|
|
2006-09-12 21:50:31 +00:00
|
|
|
%prep
|
2011-02-04 23:42:07 +00:00
|
|
|
%setup -q
|
2013-07-24 13:52:25 +00:00
|
|
|
%patch0 -p1 -b .rhbz987048.shebang.patch
|
2006-09-12 21:50:31 +00:00
|
|
|
|
|
|
|
%build
|
2013-02-14 11:17:09 +00:00
|
|
|
%if ! 0%{?rhel}
|
|
|
|
%cmake . -DWITH_OPENEXR=1 -DWITH_HDF5=1 -DWITH_VIGRANUMPY=1 -DWITH_VALGRIND=0
|
|
|
|
%else
|
|
|
|
%cmake . -DWITH_OPENEXR=0 -DWITH_HDF5=0 -DWITH_VIGRANUMPY=0 -DWITH_VALGRIND=0
|
|
|
|
%endif
|
2010-04-21 21:28:14 +00:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
# cleanup
|
|
|
|
rm -f doc/vigranumpy/.buildinfo
|
|
|
|
find ./doc/ -type f | xargs chmod -x
|
2006-09-12 21:50:31 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2010-04-21 21:28:14 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
2006-09-12 21:50:31 +00:00
|
|
|
rm -rf %{buildroot}/usr/doc
|
2013-08-29 14:10:49 +00:00
|
|
|
(
|
|
|
|
cd $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mv vigra-config vigra-config-%{__isa_bits}
|
|
|
|
)
|
|
|
|
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/vigra-config
|
2006-09-12 21:50:31 +00:00
|
|
|
|
2012-11-06 15:15:30 +00:00
|
|
|
#fixme: this fails,
|
|
|
|
#%check
|
|
|
|
#make VERBOSE=1 check
|
2012-11-06 14:56:06 +00:00
|
|
|
|
2006-09-12 21:50:31 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root,-)
|
2007-02-21 21:38:27 +00:00
|
|
|
%doc LICENSE.txt README.txt
|
2006-09-12 21:50:31 +00:00
|
|
|
%{_libdir}/libvigraimpex.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
%{_includedir}/vigra
|
2013-08-29 14:10:49 +00:00
|
|
|
%{_bindir}/vigra-config*
|
2006-09-12 21:50:31 +00:00
|
|
|
%{_libdir}/libvigraimpex.so
|
2010-04-21 21:28:14 +00:00
|
|
|
%{_libdir}/vigra
|
|
|
|
%doc doc/vigra doc/vigranumpy
|
|
|
|
|
2013-02-14 11:17:09 +00:00
|
|
|
%if ! 0%{?rhel}
|
2010-04-21 21:28:14 +00:00
|
|
|
%files python
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
%{python_sitearch}/vigra
|
2013-02-14 11:17:09 +00:00
|
|
|
%endif
|
2006-09-12 21:50:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-08-29 14:10:49 +00:00
|
|
|
* Thu Aug 29 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-9
|
|
|
|
- Resolves: rhbz#884207 multi-lib vigra-config
|
|
|
|
|
2013-07-24 13:52:25 +00:00
|
|
|
* Wed Jul 24 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-8
|
|
|
|
- Resolves: rhbz#987048 explicit python path in shebang
|
|
|
|
|
2013-06-04 11:11:41 +00:00
|
|
|
* Tue Jun 04 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-7
|
|
|
|
- Resolves: rhbz#970561 no hdf5-devel in RHEL-7
|
|
|
|
|
2013-05-16 18:45:16 +00:00
|
|
|
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 1.9.0-6
|
|
|
|
- Rebuild for hdf5 1.8.11
|
|
|
|
|
2013-03-10 21:34:19 +00:00
|
|
|
* Sun Mar 10 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.9.0-5
|
|
|
|
- rebuild (OpenEXR)
|
|
|
|
|
2013-02-14 11:17:09 +00:00
|
|
|
* Thu Feb 14 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-4
|
|
|
|
- no hdf5-devel in RHEL-7
|
|
|
|
|
2013-02-09 22:23:23 +00:00
|
|
|
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.9.0-3
|
|
|
|
- Rebuild for Boost-1.53.0
|
|
|
|
|
2013-01-21 16:40:27 +00:00
|
|
|
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.9.0-2
|
|
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
|
2012-11-08 23:26:51 +00:00
|
|
|
* Tue Nov 06 2012 Bruno Postle <bruno@postle.net> 1.9.0-1
|
|
|
|
- upstream release, support impex OpenEXR
|
|
|
|
|
2012-11-06 14:56:06 +00:00
|
|
|
* Tue Nov 06 2012 Caolán McNamara <caolanm@redhat.com> - 1.8.0-7
|
2012-11-06 15:15:30 +00:00
|
|
|
- document that there is a test suite, but it fails
|
2012-11-06 14:56:06 +00:00
|
|
|
|
2012-10-31 19:52:39 +00:00
|
|
|
* Wed Oct 31 2012 Tom Callaway <spot@fedoraproject.org> - 1.8.0-6
|
|
|
|
- rebuild
|
|
|
|
|
2012-07-22 02:43:59 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-27 21:26:03 +00:00
|
|
|
* Mon Feb 27 2012 Bruno Postle <bruno@postle.net> 1.8.0-4
|
|
|
|
- patch to build with gcc-4.7.0
|
|
|
|
|
2012-01-14 07:54:39 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-06 06:25:03 +00:00
|
|
|
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.8.0-2
|
|
|
|
- Rebuild for new libpng
|
|
|
|
|
2011-09-24 21:38:54 +00:00
|
|
|
* Sat Sep 24 2011 Bruno Postle <bruno@postle.net> 1.8.0-1
|
|
|
|
- upstream release
|
|
|
|
|
2011-08-26 20:35:30 +00:00
|
|
|
* Fri Aug 26 2011 Tom Callaway <spot@fedoraproject.org> - 1.7.1-4
|
|
|
|
- rebuild against boost
|
|
|
|
|
2011-05-18 04:06:11 +00:00
|
|
|
* Tue May 17 2011 Orion Poplawski <orion@cora.nwra.com> - 1.7.1-3
|
2011-05-18 04:05:32 +00:00
|
|
|
- Rebuild for hdf5 1.8.7
|
|
|
|
|
2011-02-08 01:29:35 +00:00
|
|
|
* 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
|
|
|
|
|
2011-02-04 23:42:07 +00:00
|
|
|
* Sun Jan 23 2011 Bruno Postle <bruno@postle.net> 1.7.1-1
|
|
|
|
- upstream release
|
|
|
|
|
2010-07-31 03:03:11 +00:00
|
|
|
* Fri Jul 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> 1.7.0-2
|
|
|
|
- Rebuild for new python release
|
|
|
|
|
2010-04-21 21:28:14 +00:00
|
|
|
* 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.
|
|
|
|
|
2009-07-27 06:52:36 +00:00
|
|
|
* 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
|
|
|
|
|
2009-06-08 22:11:28 +00:00
|
|
|
* Mon Jun 08 2009 Bruno Postle - 1.6.0-1
|
|
|
|
- Update to latest release
|
|
|
|
|
2009-02-26 00:21:18 +00:00
|
|
|
* 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
|
|
|
|
|
2008-02-18 21:37:36 +00:00
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0-4
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-08-21 21:05:35 +00:00
|
|
|
* Tue Aug 21 2007 Bruno Postle <bruno@postle.net> 1.5.0-3
|
|
|
|
- Bumping for Jesse
|
|
|
|
|
2007-02-21 21:55:48 +00:00
|
|
|
* Mon Feb 19 2007 Bruno Postle <bruno@postle.net> 1.5.0-2
|
2007-02-21 21:38:27 +00:00
|
|
|
- update to 1.5.0 release
|
|
|
|
- fix bug 228926: vigra: $RPM_OPT_FLAGS not used
|
|
|
|
|
2006-09-12 21:50:31 +00:00
|
|
|
* Sun Nov 23 2003 Bruno Postle <bruno@postle.net>
|
2009-06-08 22:11:28 +00:00
|
|
|
- initial package
|
2006-09-12 21:50:31 +00:00
|
|
|
|
|
|
|
|