File f3dview-qt.spec of Package f3dview-qt

#
# spec file for package f3dview-qt
#

# norootforbuild

Name:          f3dview-qt
License:       GPL
Group:         Productivity/Scientific/Other
Version:       0.1
Release:       0
Summary:       Viewer for f3d volume files
Source:        %name-%version.tar.gz
URL:           http://gerlach.viskom.oeaw.ac.at/f3dtrac
BuildRequires: gcc-c++ libf3dformat-devel libqt4-devel
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 integers, floats) and different grids (cartesian, regular, rectilinear). It does not support curvilinear and unstructured grids.
The package includes viewer application (f3dview-qt) for exploring the f3d volume files. Application uses Qt4 framework. Files can be viewed by displaying volume aligned slices.

%prep
%setup -q

%build
%if 0%{?fedora}
	qmake-qt4
%else
	qmake
%endif
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_prefix}/bin
cp f3dview-qt %{buildroot}%{_prefix}/bin

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/*

%changelog