1 Here is the checklist when freezing a version of gdcm:
3 * First stage, checkings:
5 Notation: we here assume you have a cvs tree in GDCMHOME directory.
6 cvs -d:pserver:anonymous@cvs.creatis.insa-lyon.fr:2402/cvs/public login
7 cvs -d:pserver:anonymous@cvs.creatis.insa-lyon.fr:2402/cvs/public co gdcm
10 cvs -d:pserver:anonymous@cvs.creatis.insa-lyon.fr:2402/cvs/public co gdcmData
12 1a/ check the full compilation is effective:
13 ./autogen.sh --enable-vtk --enable-python --enable-doxygen
16 1b/ check the python test suite is clean (python testSuite.py)
18 export PYTHONPATH=`pwd`/..
19 ln -s .libs/pygdcm.so _gdcm.so
20 ln -s .libs/vtkgdcmPython.so .
23 1c/ check the setup.py distutil script is operational and then validate
24 its produced packages through the test suite, in all following cases
25 - Direct installation:
27 python setup.py install --prefix=/tmp/
28 cd /tmp/lib/python2.2/site-packages/
29 ln -s $(GDCMDATAHOME) .
30 export PYTHONPATH=`pwd`
33 - Binary distribution:
35 python setup.py bdist --formats=rpm
37 rpm -Uvh dist/gdcmPython-0.[n].i386.rpm
38 cd /usr/lib/python2.2/site-packages/
42 rpm --erase gdcmPython
43 - Source distribution and then binary distribution (out of build
48 tar zxvf ~/cvs/gdcm/dist/gdcmPython-*.tar.gz
50 python setup.py bdist --formats=rpm
51 As root, repeat above installation with rpm and test.
55 * Second stage: preparing packaging:
56 - Update the version number in configure.in (AM_INIT_AUTOMAKE)
57 - Update the version number in setup.py (version entry in setup object).
59 * Third stage: packaging
61 1a/ Packaging at the C/C++/Python level (i.e. exports both libraries,
62 include files and python package)
63 - Make sure you have a ~/.rpmmacros file containing the line
64 %_topdir <somedirectoryPath>
65 and that <somedirectoryPath> exists and contains the subdirs
66 BUILD, SOURCES, RPMS/i386, SRPMS, SPECS
68 - ./autogen.sh --enable-vtk --enable-python --enable-doxygen
69 - make release (generates gdcm-x.y.z.tar.gz)
70 - rpm -ta gdcm-x.y.z.tar.gz
71 1b/ Packaging at the python level:
74 python setup.py bdist --formats=rpm
75 collect both source distro and binary distro