Blame SPECS/vigra.spec

7b449f
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
7b449f
Summary:        Generic Programming for Computer Vision
7b449f
Name:           vigra
7b449f
Version:        1.9.0
7b449f
Release:        11%{?dist}
7b449f
License:        MIT
7b449f
Group:          Development/Libraries
7b449f
Source0:        http://hci.iwr.uni-heidelberg.de/%{name}/%{name}-%{version}-src.tar.gz
7b449f
Source1:        vigra-config.sh
7b449f
URL:            http://hci.iwr.uni-heidelberg.de/vigra/
7b449f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7b449f
BuildRequires:  zlib-devel libjpeg-devel libpng-devel libtiff-devel fftw-devel >= 3
7b449f
BuildRequires:  cmake boost-devel doxygen
7b449f
%if ! 0%{?rhel}
7b449f
BuildRequires:  hdf5-devel python-sphinx numpy-f2py boost-python OpenEXR-devel
7b449f
%endif
7b449f
Patch0: vigra.rhbz987048.shebang.patch
7b449f
7b449f
%description
7b449f
VIGRA stands for "Vision with Generic Algorithms". It's a novel computer vision
7b449f
library that puts its main emphasis on customizable algorithms and data
7b449f
structures. By using template techniques similar to those in the C++ Standard
7b449f
Template Library, you can easily adapt any VIGRA component to the needs of your
7b449f
application without thereby giving up execution speed.
7b449f
7b449f
%package devel
7b449f
Summary: Development tools for programs which will use the vigra library
7b449f
Group: Development/Libraries
7b449f
Requires: vigra = %{version}-%{release}
7b449f
Requires: libjpeg-devel libtiff-devel libpng-devel zlib-devel fftw-devel >= 3
7b449f
Requires: boost-devel
7b449f
%if ! 0%{?rhel}
7b449f
Requires: hdf5-devel numpy-f2py boost-python OpenEXR-devel
7b449f
%endif
7b449f
7b449f
%description devel
7b449f
The vigra-devel package includes the header files necessary for developing
7b449f
programs that use the vigra library.
7b449f
7b449f
%if ! 0%{?rhel}
7b449f
%package python
7b449f
Summary: Python interface for the vigra computer vision library
7b449f
Requires: vigra = %{version}-%{release}
7b449f
Requires: numpy numpy-f2py
7b449f
7b449f
%description python
7b449f
The vigra-python package provides python bindings for vigra
7b449f
%endif
7b449f
7b449f
%prep
7b449f
%setup -q
7b449f
%patch0 -p1 -b .rhbz987048.shebang.patch
7b449f
7b449f
%build
7b449f
%if ! 0%{?rhel}
7b449f
%cmake . -DWITH_OPENEXR=1 -DWITH_HDF5=1 -DWITH_VIGRANUMPY=1 -DWITH_VALGRIND=0
7b449f
%else
7b449f
%cmake . -DWITH_OPENEXR=0 -DWITH_HDF5=0 -DWITH_VIGRANUMPY=0 -DWITH_VALGRIND=0
7b449f
%endif
7b449f
make VERBOSE=1 %{?_smp_mflags}
7b449f
# cleanup
7b449f
rm -f doc/vigranumpy/.buildinfo
7b449f
find ./doc/ -type f | xargs chmod -x
7b449f
7b449f
%install
7b449f
rm -rf %{buildroot}
7b449f
make install DESTDIR=%{buildroot}
7b449f
rm -rf %{buildroot}/usr/doc
7b449f
(
7b449f
 cd $RPM_BUILD_ROOT%{_bindir}
7b449f
 mv vigra-config vigra-config-%{__isa_bits}
7b449f
)
7b449f
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/vigra-config
7b449f
7b449f
#fixme: this fails,
7b449f
#%check
7b449f
#make VERBOSE=1 check
7b449f
7b449f
%post -p /sbin/ldconfig
7b449f
%postun -p /sbin/ldconfig
7b449f
7b449f
%clean
7b449f
rm -rf %{buildroot}
7b449f
7b449f
%files
7b449f
%defattr(-, root, root,-)
7b449f
%doc LICENSE.txt README.txt
7b449f
%{_libdir}/libvigraimpex.so.*
7b449f
7b449f
%files devel
7b449f
%defattr(-, root, root,-)
7b449f
%{_includedir}/vigra
7b449f
%{_bindir}/vigra-config*
7b449f
%{_libdir}/libvigraimpex.so
7b449f
%{_libdir}/vigra
7b449f
%doc doc/vigra doc/vigranumpy
7b449f
7b449f
%if ! 0%{?rhel}
7b449f
%files python
7b449f
%defattr(-, root, root,-)
7b449f
%{python_sitearch}/vigra
7b449f
%endif
7b449f
7b449f
%changelog
7b449f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.9.0-11
7b449f
- Mass rebuild 2014-01-24
7b449f
7b449f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.9.0-10
7b449f
- Mass rebuild 2013-12-27
7b449f
7b449f
* Thu Aug 29 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-9
7b449f
- Resolves: rhbz#884207 multi-lib vigra-config
7b449f
7b449f
* Wed Jul 24 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-8
7b449f
- Resolves: rhbz#987048 explicit python path in shebang
7b449f
7b449f
* Tue Jun 04 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-7
7b449f
- Resolves: rhbz#970561 no hdf5-devel in RHEL-7
7b449f
7b449f
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 1.9.0-6
7b449f
- Rebuild for hdf5 1.8.11
7b449f
7b449f
* Sun Mar 10 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.9.0-5
7b449f
- rebuild (OpenEXR)
7b449f
7b449f
* Thu Feb 14 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-4
7b449f
- no hdf5-devel in RHEL-7
7b449f
7b449f
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.9.0-3
7b449f
- Rebuild for Boost-1.53.0
7b449f
7b449f
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.9.0-2
7b449f
- rebuild due to "jpeg8-ABI" feature drop
7b449f
7b449f
* Tue Nov 06 2012 Bruno Postle <bruno@postle.net> 1.9.0-1
7b449f
- upstream release, support impex OpenEXR
7b449f
7b449f
* Tue Nov 06 2012 Caolán McNamara <caolanm@redhat.com> - 1.8.0-7
7b449f
- document that there is a test suite, but it fails
7b449f
7b449f
* Wed Oct 31 2012 Tom Callaway <spot@fedoraproject.org> - 1.8.0-6
7b449f
- rebuild
7b449f
7b449f
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-5
7b449f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7b449f
7b449f
* Mon Feb 27 2012 Bruno Postle <bruno@postle.net> 1.8.0-4
7b449f
- patch to build with gcc-4.7.0
7b449f
7b449f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
7b449f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7b449f
7b449f
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.8.0-2
7b449f
- Rebuild for new libpng
7b449f
7b449f
* Sat Sep 24 2011 Bruno Postle <bruno@postle.net> 1.8.0-1
7b449f
- upstream release
7b449f
7b449f
* Fri Aug 26 2011 Tom Callaway <spot@fedoraproject.org> - 1.7.1-4
7b449f
- rebuild against boost
7b449f
7b449f
* Tue May 17 2011 Orion Poplawski <orion@cora.nwra.com> - 1.7.1-3
7b449f
- Rebuild for hdf5 1.8.7
7b449f
7b449f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-2
7b449f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7b449f
7b449f
* Sun Jan 23 2011 Bruno Postle <bruno@postle.net> 1.7.1-1
7b449f
- upstream release
7b449f
7b449f
* Fri Jul 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> 1.7.0-2
7b449f
- Rebuild for new python release
7b449f
7b449f
* Tue Apr 20 2010 Bruno Postle <bruno@postle.net> 1.7.0-1
7b449f
- new upstream with cmake replacing autotools.
7b449f
- patch for x86_64 systems.
7b449f
- add vigra-python sub-package.
7b449f
7b449f
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
7b449f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7b449f
7b449f
* Mon Jun 08 2009 Bruno Postle - 1.6.0-1
7b449f
- Update to latest release
7b449f
7b449f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
7b449f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7b449f
7b449f
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0-4
7b449f
- Autorebuild for GCC 4.3
7b449f
7b449f
* Tue Aug 21 2007 Bruno Postle <bruno@postle.net> 1.5.0-3
7b449f
  - Bumping for Jesse
7b449f
7b449f
* Mon Feb 19 2007 Bruno Postle <bruno@postle.net> 1.5.0-2
7b449f
  - update to 1.5.0 release
7b449f
  - fix bug 228926: vigra: $RPM_OPT_FLAGS not used
7b449f
7b449f
* Sun Nov 23 2003 Bruno Postle <bruno@postle.net>
7b449f
  - initial package
7b449f
7b449f