parent
c13368f04b
commit
e2398b5632
|
@ -0,0 +1,80 @@
|
|||
%global githash1 g0790dc2
|
||||
%global githash2 26c5236
|
||||
|
||||
Name: Field3D
|
||||
Version: 1.2.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Library for storing voxel data
|
||||
|
||||
License: BSD
|
||||
URL: https://sites.google.com/site/field3d/
|
||||
|
||||
# The source archive is created on the fly at github.com:
|
||||
# https://nodeload.github.com/imageworks/Field3D/tarball/v1.2.1
|
||||
Source0: imageworks-%{name}-v%{version}-0-%{githash1}.tar.gz
|
||||
|
||||
BuildRequires: cmake doxygen
|
||||
BuildRequires: hdf5-devel
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: ilmbase-devel
|
||||
|
||||
|
||||
%description
|
||||
Field3D is an open source library for storing voxel data. It provides C++
|
||||
classes that handle in-memory storage and a file format based on HDF5 that
|
||||
allows the C++ objects to be written to and read from disk.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development headers and documentation for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n imageworks-%{name}-%{githash2}
|
||||
|
||||
|
||||
%build
|
||||
rm -rf build && mkdir build && pushd build
|
||||
%cmake -DINSTALL_DOCS=OFF \
|
||||
../
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
pushd build
|
||||
make install DESTDIR=%{buildroot}
|
||||
popd
|
||||
|
||||
install -D -m 0644 man/f3dinfo.1 %{buildroot}%{_mandir}/man1/f3dinfo.1
|
||||
|
||||
|
||||
%check
|
||||
pushd build
|
||||
./unitTest
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%doc CHANGES COPYING README
|
||||
%{_bindir}/f3dinfo
|
||||
%{_libdir}/libField3D.so.*
|
||||
%{_mandir}/man1/f3dinfo.1.gz
|
||||
|
||||
%files devel
|
||||
%doc docs/html/
|
||||
%{_includedir}/Field3D/
|
||||
%{_libdir}/libField3D.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Nov 12 2011 Richard Shaw <hobbes1069@gmail.com> - 1.2.1-1
|
||||
- Initial release.
|
Loading…
Reference in New Issue