libvigra/libvigra.spec
2024-01-06 06:02:36 +01:00

116 lines
3.9 KiB
RPMSpec

%define pkgver %(echo %version | tr . -)
Name: libvigra
Version: 1.10.0
Release: 3mamba
Summary: A computer vision library that puts its main emphasize on customizable algorithms and data structures
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://hci.iwr.uni-heidelberg.de/vigra
Source: https://github.com/ukoethe/vigra/releases/download/Version-%{pkgver}/vigra-%{version}-src-with-docu.tar.gz
#Source: http://hci.iwr.uni-heidelberg.de/vigra/vigra-%{version}-src.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libfftw-devel
BuildRequires: libgcc
BuildRequires: libhdf5-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libz-devel
BuildRequires: python-boost-devel
## AUTOBUILDREQ-END
BuildRequires: python-nose
BuildRequires: python-numpy
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
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.
This package contains static libraries and header files need for development.
%prep
%setup -q -n vigra-%{version}
%build
%cmake -d build \
-DWITH_OPENEXR=1 \
-DDOCINSTALL=share/doc
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
rm -f %{buildroot}%{_docdir}/vigranumpy/.buildinfo
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libvigraimpex.so.*
%ifnarch arm
%dir %{python_sitearch}/vigra
%{python_sitearch}/vigra/*
%endif
#%doc README.txt
%files devel
%defattr(-,root,root)
%{_bindir}/vigra-config
%dir %{_includedir}/vigra
%{_includedir}/vigra/*
%{_libdir}/vigra/*.cmake
%ifnarch arm
%{_libdir}/vigranumpy/VigranumpyConfig.cmake
%endif
%{_libdir}/libvigraimpex.so
%dir %{_docdir}/vigra
%{_docdir}/vigra/*
%dir %{_docdir}/vigranumpy
%{_docdir}/vigranumpy/*
%changelog
* Thu Apr 13 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.10.0-3mamba
- Added support for openEXR
* Sun Dec 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-2mamba
- rebuilt with gcc 5.2.0
* Sun Jan 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-1mamba
- update to 1.10.0
* Mon Dec 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.0-3mamba
- rebuilt with python 2.7
* Mon Mar 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.0-2mamba
- rebuilt with libhdf5 1.8.10
* Mon Mar 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.0-1mamba
- update to 1.9.0
* Fri Jan 07 2011 Automatic Build System <autodist@mambasoft.it> 1.7.1-2mamba
- automatic update by autodist
* Thu Jan 06 2011 Automatic Build System <autodist@mambasoft.it> 1.7.1-1mamba
- update to 1.7.1
* Thu Jan 06 2011 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic update by autodist
* Tue Jul 07 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1mamba
- package created by autospec