File dcmtk.spec of Package dcmtk
#
# spec file for package dcmtk
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dcmtk
Version: 3.6.0
Release: 3
License: AS IS, BSD, ASL-2.0
Summary: DICOM Toolkit
Url: http://dicom.offis.de/dcmtk.php.en
Group: Productivity/Scientific/Other
Source: dcmtk-3.6.0.tar.bz2
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libopenssl-devel
BuildRequires: libpng14-compat-devel
BuildRequires: libsndfile-devel
BuildRequires: libtiff-devel
BuildRequires: tcpd-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(libxml-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
DCMTK is a collection of libraries and applications implementing large
parts the DICOM standard.
%package devel
Summary: Development files for %{name}
License: AS IS, BSD, ASL-2.0
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package provides development libraries and headers needed to build
software using %{name}
%prep
%setup -q -n %{name}-%{version}
%build
%configure
make
%install
make install-all DESTDIR=%{?buildroot}
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}
%if 0%{?suse_version} < 1210
rm -r %{buildroot}%{_docdir}/dcmtk/dcmtk/
%else
%fdupes -s %{buildroot}%{_docdir}/%{name}/
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYRIGHT FAQ HISTORY README VERSION
%{_mandir}/man?/*
%{_docdir}/dcmtk
%config %{_sysconfdir}/*.cfg
%{_bindir}/*
%{_datadir}/*.dump
%{_datadir}/*.lut
%{_datadir}/*.dtd
%{_datadir}/*.dic
%{_datadir}/*.xsd
%{_datadir}/*.txt
%{_datadir}/*.css
%{_datadir}/wlistqry
%{_datadir}/wlistdb
%files devel
%defattr(-,root,root)
%doc COPYRIGHT FAQ HISTORY README VERSION
%{_includedir}/dcmtk/
%{_libdir}/*.a
%changelog