1 # Note that this is NOT a relocatable package
9 Group: Development/Libraries
11 BuildRoot: /tmp/bbtk-%{version}-root
12 Prereq: /sbin/install-info
14 #Requires: vtk = 4.5.0-0.cvs.2.fc4
15 #Requires: vtk-python = 4.5.0-0.cvs.2.fc4
16 #BuildPrereq: vtk-devel = 4.5.0-0.cvs.2.fc4
17 #BuildRequires: cmake >= 2
24 * Wed Jul 23 2008 Laurent Guigues <Laurent.Guigues@creatis.insa-lyon.fr> 1.0.0
25 - initial packaging with cmake
32 export MAKE='make %{?_smp_mflags}'
33 export CFLAGS="$RPM_OPT_FLAGS"
34 export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
43 -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
44 -DCMAKE_SKIP_RPATH:BOOL=ON \
45 -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
46 -DCMAKE_C_COMPILER:FILEPATH=$CC \
49 -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
50 -DCMAKE_SKIP_RPATH:BOOL=ON \
51 -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
52 -DCMAKE_C_COMPILER:FILEPATH=$CC \
55 -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
56 -DCMAKE_SKIP_RPATH:BOOL=ON \
57 -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
58 -DCMAKE_C_COMPILER:FILEPATH=$CC \
61 -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
62 -DCMAKE_SKIP_RPATH:BOOL=ON \
63 -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
64 -DCMAKE_C_COMPILER:FILEPATH=$CC \
71 # TO USE MULTIPLE PROCESSORS :
76 rm -rf $RPM_BUILD_ROOT
78 make DESTDIR=$RPM_BUILD_ROOT install
81 # creating file bbtk.conf in /etc/ld.so.conf.d
82 # which contains the path to BBTK dynamic libs
83 #install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
84 #echo "%{_libdir}/bbtk" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/bbtk.conf
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(-, root, root)
96 #%doc AUTHORS ChangeLog README TODO DEVELOPPER INSTALL PACKAGER
97 #%doc ChangeLog README TODO
103 #%{_sysconfdir}/ld.so.conf.d/BBTK.conf