]> Creatis software - gdcm.git/blob - Builder/gdcm.spec.in
Fix mistypings
[gdcm.git] / Builder / gdcm.spec.in
1 # Note that this is NOT a relocatable package
2 Summary: gdcm
3 Name: gdcm
4 Version: @GDCM_VERSION@
5 Release: @GDCM_VERSION@.@GDCM_DATE@
6 License: BSD
7 Group: Development/Libraries
8 Source: gdcm.tar.gz
9 BuildRoot: /var/tmp/gdcm-%{version}-root
10 Prereq: /sbin/install-info
11 Requires: glib
12 BuildRequires: cmake >= 2.2.0, swig = 1.3.24
13
14 %description
15 gdcm is a library dedicated to read and write DICOM files.
16
17 %changelog
18 * Tue Oct 11 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-0.cvs.2.fc4
19 - enable vtk
20 - fix python path
21
22 * Tue Oct 11 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-0.cvs.1.fc4
23 - rebuild from CVS
24 - changed the release tag
25
26 * Wed May 04 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-1.20050504
27 - rebuild from CVS
28
29 * Fri Apr 15 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.0-1.20050415
30 - rebuild a post 1.0.0 CVS version with cmake
31
32 * Wed Mar 23 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-4
33 - rebuild for VTK cvs20040114.
34
35 * Thu Nov 11 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-3
36 - fix vtk/Makefile.am for FC3 automake
37 - rebuild for Fedora Core 3
38
39 * Thu May 27 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-2
40 - rebuild for Fedora Core 2
41 - debuginfo rebuild
42
43 * Mon May  3 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
44 - fixed some python paths.
45 - update to version of 2004-04-20, for use with DaVaW.
46
47 * Tue Feb 24 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
48 - initial packaging.
49
50 %prep
51 %setup -q -n gdcm
52
53 export CC='gcc'
54 export CXX='g++'
55 export MAKE='make %{?_smp_mflags}'
56 export CFLAGS="$RPM_OPT_FLAGS"
57 export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
58 cmake . \
59         -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
60         -DCMAKE_C_COMPILER:FILEPATH=$CC \
61         -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
62         -DBUILD_TESTING:BOOL=OFF \
63         -DGDCM_DATA_DIR:STRING="%{_datadir}/gdcm" \
64         -DGDCM_VTK:BOOL=ON \
65         -DGDCM_WRAP_PYTHON:BOOL=ON \
66         -DGDCM_DOCUMENTATION:BOOL=ON \
67         -DSWIG_DIR:PATH="%{_datadir}/swig/1.3.24"
68
69 %build
70 make
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 make DESTDIR=$RPM_BUILD_ROOT install
75
76 install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
77 echo "%{_libdir}/gdcm" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/gdcm.conf
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post -p /sbin/ldconfig
83
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(-, root, root)
88
89 %doc AUTHORS ChangeLog README TODO DEVELOPPER INSTALL PACKAGER
90 %doc Doc
91 %{_bindir}/*
92 %{_includedir}/*
93 %{_libdir}/gdcm
94 %{_libdir}/*.cmake
95 %{_libdir}/python*/site-packages/*.pth
96 %{_datadir}/gdcm
97 %{_sysconfdir}/ld.so.conf.d/gdcm.conf