1 # Note that this is NOT a relocatable package
5 Version: @BBTK_VERSION@
7 # @BBTK_VERSION@.@BBTK_DATE@
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.4.6
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"
36 -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
37 -DCMAKE_SKIP_RPATH:BOOL=ON \
38 -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
39 -DCMAKE_C_COMPILER:FILEPATH=$CC \
46 rm -rf $RPM_BUILD_ROOT
47 make DESTDIR=$RPM_BUILD_ROOT install
49 # creating file BBTK.conf in /etc/ld.so.conf.d
50 # which contains the path to BBTK dynamic libs
51 install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
52 echo "%{_libdir}/BBTK" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/BBTK.conf
54 rm -rf $RPM_BUILD_ROOT
56 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
61 %defattr(-, root, root)
63 #%doc AUTHORS ChangeLog README TODO DEVELOPPER INSTALL PACKAGER
64 %doc ChangeLog README TODO
70 %{_sysconfdir}/ld.so.conf.d/BBTK.conf