~ubuntu-branches/ubuntu/natty/xmedcon/natty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# filename: xmedcon.spec.in                                               #
#                                                                         #
# UTILITY text: Medical Image Conversion Utility                          #
#                                                                         #
# purpose     : the RPM package spec template                             #
#                                                                         #
# project     : (X)MedCon by Erik Nolf                                    #
#                                                                         #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# $Id: xmedcon.spec.in,v 1.4 2007/11/09 23:03:49 enlf Exp $
#
%define _sysconfdir %{_prefix}/etc

Name: xmedcon
Version: 0.10.4
Release: 1

BuildRoot: %{_tmppath}/%{name}-%{version}-root

Summary: a medical image conversion utility and library
License: (L)GPL
Group: Applications/Graphics

Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
URL: http://xmedcon.sourceforge.net
Packager: Erik Nolf

Requires: gtk2
BuildRequires:  gtk2-devel

%description
This project stands for Medical Image Conversion and is released under the
GNU's (L)GPL license. It bundles the C sourcecode, a library, a flexible
command-line utility and a graphical front-end based on the amazing Gtk+
toolkit.

Its main purpose is image conversion while preserving valuable medical
study information. The currently supported formats are: Acr/Nema 2.0,
Analyze (SPM), Concorde/uPET, DICOM 3.0, CTI ECAT 6/7, InterFile 3.3
and PNG or Gif87a/89a towards desktop applications.

%package devel
Summary: static libraries and header files for (X)MedCon development
Group: Development/Libraries
Requires: xmedcon = %{version}

%description devel

The xmedcon-devel package contains the header files and static libraries
necessary for developing programs that make use of the (X)MedCon library
(libmdc).

%prep
%setup -q 

%build
%configure
make

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall

%clean
rm -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc ChangeLog COPYING COPYING.LIB README REMARKS AUTHORS
%{_libdir}/*so.*
%{_libdir}/*.la
%{_bindir}/*
%{_sysconfdir}/*
%{_mandir}/man1/*


%files devel
%doc README COPYING COPYING.LIB
%defattr(-,root,root)
%{_mandir}/man3/*
%{_mandir}/man4/*
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.so
%{_datadir}/aclocal/*

%changelog
* Sat Nov 20 2004 Erik Nolf
- multi-lib; bin & devel packages; install in /usr