]> Creatis software - gdcm.git/blob - Builder/gdcm.spec.in
* Remove bad (unused and older) spec file for linux packaging
[gdcm.git] / Builder / gdcm.spec.in
1 Summary: Dicom library
2 Name: gdcm
3 Version: @GDCM_VERSION@
4 Release: @GDCM_VERSION@.@GDCM_DATE@
5 License: BSD
6 Group: Development/Libraries
7 URL: http://www.creatis.insa-lyon.fr/Public/Gdcm
8 #Source: ftp://ftp.creatis.insa-lyon.fr/gdcm/gdcm/gdcm.tar.gz
9 Source: ../SOURCES/gdcm.tar.gz
10 BuildRoot: /var/tmp/gdcm-%{version}-root
11 Requires: python2
12 BuildRequires: doxygen, swig13, python2
13 Prereq: /sbin/install-info
14 Packager: Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
15
16 %description
17 gdcm is a library dedicated to read and write DICOM files.
18
19 %prep
20 %setup -q -n gdcm
21
22 export CC='gcc'
23 export CXX='g++'
24 export MAKE='make %{?_smp_mflags}'
25 export CFLAGS="$RPM_OPT_FLAGS"
26 export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
27 cmake . \
28 -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
29 -DCMAKE_C_COMPILER:FILEPATH=$CC \
30 -DCMAKE_INSTALL_PREFIX:STRING="/usr" \
31 -DGDCM_DATA_DIR:STRING="/usr/shared/gdcm" \
32 -DBUILD_TESTING:BOOL=OFF \
33 -DBUILD_EXAMPLES:BOOL=ON \
34 -DGDCM_VTK:BOOL=ON \
35 -DGDCM_WRAP_PYTHON:BOOL=ON \
36 -DGDCM_DOCUMENTATION:BOOL=ON
37
38 %build
39 make
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 make DESTDIR=$RPM_BUILD_ROOT install
44
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post -p /sbin/ldconfig
50
51 %postun -p /sbin/ldconfig
52
53 %files
54 %defattr(-, root, root)
55 %doc AUTHORS ChangeLog NEWS README DEVELOPPER INSTALL
56 %{_prefix}/bin/*
57 %{_prefix}/lib/*
58 %{_prefix}/include/*
59 %{_prefix}/share/gdcm/*
60
61 %changelog
62 * Fri Apr 15 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.0-1.20050415
63 - rebuild a post 1.0.0 CVS version with cmake
64
65 * Wed Mar 23 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-4
66 - rebuild for VTK cvs20040114.
67
68 * Thu Nov 11 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-3
69 - fix vtk/Makefile.am for FC3 automake
70 - rebuild for Fedora Core 3
71
72 * Thu May 27 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-2
73 - rebuild for Fedora Core 2
74 - debuginfo rebuild
75
76 * Mon May  3 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
77 - fixed some python paths.
78 - update to version of 2004-04-20, for use with DaVaW.
79
80 * Tue Feb 24 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
81 - initial packaging.
82
83