1 # Note that this is NOT a relocatable package
4 Version: @GDCM_VERSION@
5 Release: @GDCM_VERSION@.@GDCM_DATE@
7 Group: Development/Libraries
9 BuildRoot: /var/tmp/gdcm-%{version}-root
10 Prereq: /sbin/install-info
12 BuildRequires: cmake >= 2.2.0, swig = 1.3.24
15 gdcm is a library dedicated to read and write DICOM files.
18 * Tue Oct 11 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-0.cvs.2.fc4
22 * Tue Oct 11 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-0.cvs.1.fc4
24 - changed the release tag
26 * Wed May 04 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-1.20050504
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
32 * Wed Mar 23 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-4
33 - rebuild for VTK cvs20040114.
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
39 * Thu May 27 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-2
40 - rebuild for Fedora Core 2
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.
47 * Tue Feb 24 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
55 export MAKE='make %{?_smp_mflags}'
56 export CFLAGS="$RPM_OPT_FLAGS"
57 export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
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" \
65 -DGDCM_WRAP_PYTHON:BOOL=ON \
66 -DGDCM_DOCUMENTATION:BOOL=ON \
67 -DSWIG_DIR:PATH="%{_datadir}/swig/1.3.24"
73 rm -rf $RPM_BUILD_ROOT
74 make DESTDIR=$RPM_BUILD_ROOT install
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
80 rm -rf $RPM_BUILD_ROOT
82 %post -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
87 %defattr(-, root, root)
89 %doc AUTHORS ChangeLog README TODO DEVELOPPER INSTALL PACKAGER
95 %{_libdir}/python*/site-packages/*.pth
97 %{_sysconfdir}/ld.so.conf.d/gdcm.conf