File kradview.spec of Package kradview

#
# spec file for package kradview (Version 1.1.0)
#
# Copyright 2006-2008 Pascal Bleser <guru@unixtech.be>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#

# norootforbuild

%define _prefix		/opt/kde3
%define _sysconfdir	/etc%{_prefix}
%define qtdir			/usr/lib/qt3

Name:				kradview
Version:			1.1.0
Release:			1
Summary:			DICOM Medical Image Viewer
Source:			http://www.orcero.org/irbis/kradview/kradview-%{version}.tar.bz2
URL:				http://www.orcero.org/irbis/kradview/
Group:			Productivity/Graphics/Viewers
License:			GPL-3.0
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	kdelibs3-devel kdebase3-devel
BuildRequires:	gettext gcc-c++ make glibc-devel libstdc++-devel
BuildRequires:	autoconf automake libtool
Patch0:                 kradview-deprecate-update-desktop-files.patch

%description
Nowadays, all the image capturing devices for medical purposes use the same
image format: DICOM. DICOM stands for Digital Imaging and COmmunications in
Medicine; and it is a very rich image format, independent from the capturing
device and the visualization platform. Now DICOM is considered the worldwide
standard for Industry and research. The format is open, and the most of its
information can be freely download.

Kradview is a GPLed viewer of images obtained for some different sources:
X-ray, NMR and DICOM-compatible imaging devices that runs on free operating
systems. Its aim is a easy to use DICOM viewer with instant rendering of
images, no matter the size and the zoom of the DICOM image. It covers the
"let's see the the X-ray image" need of the medical professional.




Authors:
--------
    David del Rio Medina <ddrm@alu.uma.es>
    David Santo Orcero <irbis@orcero.org>


%prep
%setup -q
%patch -P 0 -p1

sed -i 's/QImage::QImage/QImage/g' ./src/panel2d.cpp

%build
# don't use the usual KDE build procedure, as it fails to build
export QTDIR="%{qtdir}"
%configure \
			  %if "%{_lib}"=="lib64"
			  --enable-libsuffix=64 \
			  %endif
			  --with-qt-dir="%{qtdir}" \
			  --with-qt-libraries="%{qtdir}/%{_lib}"

%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
chmod -x AUTHORS ChangeLog COPYING NEWS README TODO

# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Utilities/kradview.desktop %{buildroot}/opt/kde3/share/applications/kde/kradview.desktop

%find_lang "%{name}"

%clean
%__rm -rf "%{buildroot}"

%files -f "%{name}.lang"
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/kradview
%{_bindir}/kradview_client
%{_datadir}/applications/kde/kradview.desktop
%{_datadir}/apps/kradview
%{_datadir}/icons/*/*/apps/kradview.png

%changelog

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by