#--- # $Id$ # rpm spec file for building an ossim_qt binary rpm. # # See note above %file section before trying to build. # # This package require an "ossim" package and the qt development # libraries to build. #--- %define pref /usr %define ver 1.5.5 %define rel 1 %define name ossim_qt vendor: Intelligence Data Systems, Inc. name: ossim_qt version: 1.5.5 release: 1 summary: ossim_qt library and associated applications copyright: LGPL group: Applications/Image source: %{name}-%{ver}.tgz url: http://www.ossim.org distribution: na packager: David Burken buildroot: %{_builddir}/%{name}-%{ver} requires: ossim = %{ver} requires: qt >= 3.2 %description Contains graphical user interface(gui) applications iview, imagelinker and the required ossim_qt library. %prep # %setup %setup %build OSSIM_QT_HOME=$RPM_BUILD_ROOT export OSSIM_QT_HOME qmake ossim_qt.pro make %install OSSIM_QT_HOME=$RPM_BUILD_ROOT export OSSIM_QT_HOME make install INSTALL_DIR=$OSSIM_QT_HOME%{_prefix} BIN_DIR=$INSTALL_DIR/bin LIB_DIR=$INSTALL_DIR/lib mkdir -p $INSTALL_DIR mkdir -p $BIN_DIR mkdir -p $LIB_DIR cp bin/iview $BIN_DIR cp bin/imagelinker $BIN_DIR cp lib/lib* $LIB_DIR %post /sbin/ldconfig %postun /sbin/ldconfig #--- # NOTE: # Since only a few files from the package are actually packaged you must set # the macro "%_unpackaged_files_terminate_build 0" to work around the # unpackaged files error. # # You can edit this in /usr/lib/rpm/macros or put it in your .rpmmacros file # which will override the /usr/lib/rpm/macros. #--- %files %defattr(-,root,root) %{_prefix} %clean rm -rf $RPM_BUILD_ROOT %changelog