Blob Blame Raw
%global upver 2-3-00

Name:           libminc
Version:        2.3.00
Release:        2%{?dist}
Summary:        Core library and API of the MINC toolkit

License:        MIT
Patch0:         0001-install-cmake-files-in-private-directory.patch
Patch1:         0002-rename-hdf_close-to-hdf_fclose-due-to-first-exposed-.patch
Patch2:         0001-Fix-endian-issues-with-label-data.patch
BuildRequires:  git-core
BuildRequires:  cmake
BuildRequires:  gcc gcc-c++
BuildRequires:  zlib-devel
BuildRequires:  netcdf-devel
BuildRequires:  hdf5-devel

The MINC file format is a highly flexible medical image file format
built on the HDF5 generalized data format. The format is
simple, self-describing, extensible, portable and N-dimensional, with
programming interfaces for both low-level data access and high-level
volume manipulation. On top of the libraries is a suite of generic
image-file manipulation tools. The format, libraries and tools are
designed for use in a medical-imaging research environment : they are
simple and powerful and make no attempt to provide a pretty interface
to users.

%package devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       netcdf-devel%{?_isa}
Requires:       zlib-devel%{?_isa}
Requires:       hdf5-devel%{?_isa}
Requires:       cmake%{?_isa}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%autosetup -n %{name}-%{name}-%{upver} -S git
rm -rf build/
mkdir -p build/
sed -i -e '/SET (LIBMINC_INSTALL_INCLUDE_DIR/s/include/include\/%{name}/' CMakeLists.txt

pushd build/
  %cmake ../ \

pushd build/

pushd build/
  ctest -VV

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%license COPYING
%doc README README.release doc/ NEWS ChangeLog AUTHORS

%files devel
%doc volume_io/example/*.c ezminc/examples/*.cpp ezminc/examples/Example_CMakeLists.txt

* Wed Dec 02 2015 Igor Gnatenko <> - 2.3.00-2
- Apply patch to fix endian tests (RHBZ #1287015)

* Sat Nov 07 2015 Igor Gnatenko <> - 2.3.00-1
- Initial package