File f3dfilter.spec of Package f3dfilter
#
# spec file for package f3dFormat (Version 6.1)
#
# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: f3dfilter
License: GPL
Group: System/Libraries
Version: 1.1
Release: 0
Summary: Implementation of different filters for volume data processing
Source: %name-%version.tar.gz
URL: http://gerlach.viskom.oeaw.ac.at/f3dtrac
%if 0%{?fedora}
BuildRequires: cmake doxygen gcc-c++ yasm gsl-devel libXi-devel libXmu-devel mesa-libGLU-devel
%else
BuildRequires: cmake doxygen gcc-c++ yasm gsl-devel Mesa-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
f3d (Format 3 Dimensional) is a simple format for storage of 3D datasets supporting different voxel types (8, 16, 32 bit signed/unsigned integers and 32 bit floats) and different grids (cartesian, regular, rectilinear). It does not support curvilinear and unstructured grids.
%package -n lib%{name}1
Summary: Implementation of different filters for volume data processing
Group: System/Libraries
%description -n lib%{name}1
f3d (Format 3 Dimensional) is a simple format for storage of 3D datasets supporting different voxel types (8, 16, 32 bit signed/unsigned integers and 32 bit floats) and different grids (cartesian, regular, rectilinear). It does not support curvilinear and unstructured grids.
This library contains only limited number of filter types. Some filter types have multiple different hardware implementations which are present in specialised hardware dependent libraries libf3dfilterXXX. You require these for certain aforementioned filters to operate.
%package -n lib%{name}-devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: lib%{name}1 = %{version}
%description -n lib%{name}-devel
The libf3dfilter-devel package contains libraries and header files for developing applications that use f3d filter.
# %package -n lib%{name}FFT1
# Summary: Implementation of filters using FFT
# Group: System/Libraries
#
# %description -n lib%{name}FFT1
# This package contains implementation of filters for f3dfilter library. In this package only variants using FFT operation are included. For different implementations of filters check packages libf3dfilterXXX where XXX is an identifier of a variant.
%package -n lib%{name}GL1
Summary: Implementation of filters using OpenGL
Group: System/Libraries
%description -n lib%{name}GL1
This package contains implementation of filters for f3dfilter library. In this package only variants using OpenGL are included. For different implementations of filters check packages libf3dfilterXXX where XXX is an identifier of a variant.
%package -n lib%{name}GSL1
Summary: Implementation of filters using GSL library
Group: System/Libraries
%description -n lib%{name}GSL1
This package contains implementation of filters for f3dfilter library. In this package only variants using GSL library are included. For different implementations of filters check packages libf3dfilterXXX where XXX is an identifier of a variant.
%package -n lib%{name}CPU1
Summary: Implementation of filters using common CPU instructions
Group: System/Libraries
%description -n lib%{name}CPU1
This package contains implementation of filters for f3dfilter library. In this package only variants using common CPU instructions are included. For different implementations of filters check packages libf3dfilterXXX where XXX is an identifier of a variant.
%package -n lib%{name}SSE1
Summary: Implementation of filters using SSE instructions
Group: System/Libraries
%description -n lib%{name}SSE1
This package contains implementation of filters for f3dfilter library. In this package only variants using SSE instructions are included. For different implementations of filters check packages libf3dfilterXXX where XXX is an identifier of a variant.
%prep
%setup -q
%build
mkdir build
cd build
cmake -DBUILD_f3dfilter_SHARED=ON -DENABLE_OpenGL=ON -DENABLE_FFT=OFF -DENABLE_CUDA=OFF -DENABLE_OpenCL=OFF -DENABLE_GSL=ON -DENABLE_SSE=ON ..
make %{?_smp_mflags}
cd ../doc
doxygen Doxyfile
cd ..
%install
cd build
cmake -DBUILD_f3dfilter_SHARED=ON -DENABLE_OpenGL=ON -DENABLE_FFT=OFF -DENABLE_CUDA=OFF -DENABLE_OpenCL=OFF -DENABLE_GSL=ON -DENABLE_SSE=ON -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_prefix} ..
make install
cd ..
%clean
rm -rf %{buildroot}
%post -n lib%{name}1 -p /sbin/ldconfig
# %post -n %lib{name}FFT1 -p /sbin/ldconfig
%post -n lib%{name}GL1 -p /sbin/ldconfig
%post -n lib%{name}GSL1 -p /sbin/ldconfig
%post -n lib%{name}CPU1 -p /sbin/ldconfig
%post -n lib%{name}SSE1 -p /sbin/ldconfig
%postun -n lib%{name}1 -p /sbin/ldconfig
# %postun -n lib%{name}FFT1 -p /sbin/ldconfig
%postun -n lib%{name}GL1 -p /sbin/ldconfig
%postun -n lib%{name}GSL1 -p /sbin/ldconfig
%postun -n lib%{name}CPU1 -p /sbin/ldconfig
%postun -n lib%{name}SSE1 -p /sbin/ldconfig
%files -n lib%{name}1
%defattr(-,root,root,-)
%{_libdir}/lib%{name}.so.*
# %files -n lib%{name}FFT1
# %defattr(-,root,root,-)
# %{_libdir}/lib%{name}FFT.so.*
%files -n lib%{name}GL1
%defattr(-,root,root,-)
%{_libdir}/lib%{name}GL.so.*
%files -n lib%{name}GSL1
%defattr(-,root,root,-)
%{_libdir}/lib%{name}GSL.so.*
%files -n lib%{name}CPU1
%defattr(-,root,root,-)
%{_libdir}/lib%{name}CPU.so.*
%files -n lib%{name}SSE1
%defattr(-,root,root,-)
%{_libdir}/lib%{name}SSE.so.*
%files -n lib%{name}-devel
%defattr(-,root,root,-)
%dir %{_includedir}/f3d
%{_includedir}/f3d/*.h
%{_libdir}/lib%{name}.so
%doc doc/html
%doc README
%changelog