From 8a6e270defd107e4b88e733b85b122823a160104 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2019 22:20:59 +0000 Subject: import vigra-1.9.0-11.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0403f26 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/vigra-1.9.0-src.tar.gz diff --git a/.vigra.metadata b/.vigra.metadata new file mode 100644 index 0000000..18fa0bf --- /dev/null +++ b/.vigra.metadata @@ -0,0 +1 @@ +6e4981f4ce75932ec62df6523f577c327f885ba0 SOURCES/vigra-1.9.0-src.tar.gz diff --git a/SOURCES/vigra-config.sh b/SOURCES/vigra-config.sh new file mode 100644 index 0000000..8eec5ec --- /dev/null +++ b/SOURCES/vigra-config.sh @@ -0,0 +1,11 @@ +#!/bin/sh +OOO_ARCH=$(uname -m) +case $OOO_ARCH in + x86_64 | s390x | ppc64 | sparc64) + bits=64 + ;; + * ) + bits=32 + ;; +esac +exec vigra-config-$bits "$@" diff --git a/SOURCES/vigra.rhbz987048.shebang.patch b/SOURCES/vigra.rhbz987048.shebang.patch new file mode 100644 index 0000000..6efdc3b --- /dev/null +++ b/SOURCES/vigra.rhbz987048.shebang.patch @@ -0,0 +1,8 @@ +--- vigra-1.9.0/config/vigra-config.in 2013-07-24 14:48:19.473868084 +0100 ++++ vigra-1.9.0/config/vigra-config.in 2013-07-24 14:48:55.747333616 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + + from optparse import OptionParser + import sys diff --git a/SPECS/vigra.spec b/SPECS/vigra.spec new file mode 100644 index 0000000..7c2d715 --- /dev/null +++ b/SPECS/vigra.spec @@ -0,0 +1,201 @@ +%{!?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.9.0 +Release: 11%{?dist} +License: MIT +Group: Development/Libraries +Source0: http://hci.iwr.uni-heidelberg.de/%{name}/%{name}-%{version}-src.tar.gz +Source1: vigra-config.sh +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 boost-devel doxygen +%if ! 0%{?rhel} +BuildRequires: hdf5-devel python-sphinx numpy-f2py boost-python OpenEXR-devel +%endif +Patch0: vigra.rhbz987048.shebang.patch + +%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: boost-devel +%if ! 0%{?rhel} +Requires: hdf5-devel numpy-f2py boost-python OpenEXR-devel +%endif + +%description devel +The vigra-devel package includes the header files necessary for developing +programs that use the vigra library. + +%if ! 0%{?rhel} +%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 +%endif + +%prep +%setup -q +%patch0 -p1 -b .rhbz987048.shebang.patch + +%build +%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 +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 +( + cd $RPM_BUILD_ROOT%{_bindir} + mv vigra-config vigra-config-%{__isa_bits} +) +install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/vigra-config + +#fixme: this fails, +#%check +#make VERBOSE=1 check + +%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 + +%if ! 0%{?rhel} +%files python +%defattr(-, root, root,-) +%{python_sitearch}/vigra +%endif + +%changelog +* Fri Jan 24 2014 Daniel Mach - 1.9.0-11 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.9.0-10 +- Mass rebuild 2013-12-27 + +* Thu Aug 29 2013 Caolán McNamara - 1.9.0-9 +- Resolves: rhbz#884207 multi-lib vigra-config + +* Wed Jul 24 2013 Caolán McNamara - 1.9.0-8 +- Resolves: rhbz#987048 explicit python path in shebang + +* Tue Jun 04 2013 Caolán McNamara - 1.9.0-7 +- Resolves: rhbz#970561 no hdf5-devel in RHEL-7 + +* Thu May 16 2013 Orion Poplawski - 1.9.0-6 +- Rebuild for hdf5 1.8.11 + +* Sun Mar 10 2013 Rex Dieter - 1.9.0-5 +- rebuild (OpenEXR) + +* Thu Feb 14 2013 Caolán McNamara - 1.9.0-4 +- no hdf5-devel in RHEL-7 + +* Sat Feb 09 2013 Denis Arnaud - 1.9.0-3 +- Rebuild for Boost-1.53.0 + +* Mon Jan 21 2013 Adam Tkac - 1.9.0-2 +- rebuild due to "jpeg8-ABI" feature drop + +* Tue Nov 06 2012 Bruno Postle 1.9.0-1 +- upstream release, support impex OpenEXR + +* Tue Nov 06 2012 Caolán McNamara - 1.8.0-7 +- document that there is a test suite, but it fails + +* Wed Oct 31 2012 Tom Callaway - 1.8.0-6 +- rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 1.8.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Feb 27 2012 Bruno Postle 1.8.0-4 +- patch to build with gcc-4.7.0 + +* Sat Jan 14 2012 Fedora Release Engineering - 1.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Dec 06 2011 Adam Jackson - 1.8.0-2 +- Rebuild for new libpng + +* Sat Sep 24 2011 Bruno Postle 1.8.0-1 +- upstream release + +* Fri Aug 26 2011 Tom Callaway - 1.7.1-4 +- rebuild against boost + +* Tue May 17 2011 Orion Poplawski - 1.7.1-3 +- Rebuild for hdf5 1.8.7 + +* Mon Feb 07 2011 Fedora Release Engineering - 1.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jan 23 2011 Bruno Postle 1.7.1-1 +- upstream release + +* Fri Jul 30 2010 Toshio Kuratomi 1.7.0-2 +- Rebuild for new python release + +* Tue Apr 20 2010 Bruno Postle 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 - 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 - 1.5.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 18 2008 Fedora Release Engineering - 1.5.0-4 +- Autorebuild for GCC 4.3 + +* Tue Aug 21 2007 Bruno Postle 1.5.0-3 + - Bumping for Jesse + +* Mon Feb 19 2007 Bruno Postle 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 + - initial package + +