Sophie

Sophie

distrib > Fedora > 19 > x86_64 > by-pkgid > f49968391dbf81578088987f4c24b5f2 > files > 3

nifti2dicom-0.4.7-1.fc19.src.rpm

Name:           nifti2dicom
Version:        0.4.7
Release:        1%{?dist}
Summary:        Converts 3D medical images to DICOM 2D series

License:        GPLv3+
URL:            https://github.com/biolab-unige/nifti2dicom
Source0:        https://github.com/biolab-unige/nifti2dicom/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

Patch0:         nifti2dicom-fix-desktop-file.patch

ExcludeArch:    ppc ppc64

BuildRequires:  cmake
BuildRequires:  gdcm-devel
BuildRequires:  desktop-file-utils
BuildRequires:  qt4-devel
BuildRequires:  qt4-webkit-devel
BuildRequires:  vtk-devel
BuildRequires:  vxl-devel
BuildRequires:  hdf5-devel
BuildRequires:  InsightToolkit-devel
BuildRequires:  tclap-devel
BuildRequires:  doxygen

%description
Nifti2Dicom is a conversion tool that converts 3D NIfTI files (and other
formats supported by ITK, including Analyze, MetaImage Nrrd and VTK)
to DICOM.

Unlike other conversion tools, it can import a DICOM file that is used
to import the patient and study DICOM tags, and allows you to edit the
accession number and other DICOM tags, in order to create a valid DICOM
that can be imported in a PACS.


%prep
%setup -q

%patch0 -p1 -b .desktopfile

%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake} ..
popd

make %{?_smp_mflags} -C %{_target_platform}

%install
%make_install -C %{_target_platform}
desktop-file-validate %{buildroot}%{_datadir}/applications/qnifti2dicom.desktop

%post
/bin/touch --no-create %{_datadir}/icons/{hicolor,locolor,mono} &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/{hicolor,locolor,mono} &>/dev/null
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/{hicolor,locolor,mono} &>/dev/null || :
fi

%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
        
%files
%{_bindir}/nifti2dicom
%{_bindir}/qnifti2dicom
%{_datadir}/icons/*/*/apps/qnifti2dicom.png
%{_datadir}/applications/qnifti2dicom.desktop

%doc AUTHORS NEWS COPYING
%{_mandir}/man1/*.1.*


%changelog
* Tue Apr 15 2014 Daniel Vrátil <dvratil@redhat.com> 0.4.7-1
 - Update to latest upstream release

* Mon Aug 05 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.6-4
 - Rebuild against VTK

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Jul 11 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.6-2
 - rebuild against ITK

* Thu May 06 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.6-1
 - update to 0.4.6
 - dropped the linking patch (now included in upstream)

* Thu May 02 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.5-4
 - added AUTHORS, NEWS and COPYING to doc
 - removed graphviz from BR
 - exclude ppc and ppc64 until InsightToolkit's available there

* Sat Apr 27 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.5-3
 - added qt4-webkit-devel to BR

* Fri Apr 26 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.5-2
 - updated license to GPLv3+
 - added cmake to BR
 - added desktop-file-validate
 - added gtk-update-icon-cache
 - fixed %doc instal file

* Wed Apr 24 2013 Daniel Vrátil <dvratil@redhat.com> 0.4.5-1
 - Initial SPEC