michael@214: ## michael@214: ## qtcreator.spec -- OpenPKG RPM Specification michael@214: ## Copyright (c) 2009 Michael Schloh von Bennewitz michael@214: ## michael@214: ## Permission to use, copy, modify, and distribute this software for michael@214: ## any purpose with or without fee is hereby granted, provided that michael@214: ## the above copyright notice and this permission notice appear in all michael@214: ## copies. michael@214: ## michael@214: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@214: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@214: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@214: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@214: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@214: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@214: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@214: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@214: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@214: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@214: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@214: ## SUCH DAMAGE. michael@214: ## michael@214: michael@214: # package information michael@214: Name: qtcreator michael@214: Summary: Cross Platform Application Framework michael@214: URL: http://qt.nokia.com/products/appdev/developer-tools/developer-tools michael@214: Vendor: Nokia Corporation michael@214: Packager: Michael Schloh von Bennewitz michael@214: Distribution: MSvB Recherche Production michael@214: Class: EVAL michael@214: Group: Development michael@214: License: GPL michael@246: Version: 1.2.90 michael@246: Release: 20091014 michael@214: michael@214: # list of sources michael@216: Source0: ftp://ftp.qt.nokia.com/qtcreator/qt-creator-%{version}-src.tar.gz michael@214: michael@214: # build information michael@214: Prefix: %{l_prefix} michael@214: BuildRoot: %{l_buildroot} michael@214: BuildPreReq: OpenPKG, openpkg >= 20050726, qt, gcc michael@214: PreReq: OpenPKG, openpkg >= 20050726, qt michael@214: AutoReq: no michael@214: AutoReqProv: no michael@214: michael@214: %description michael@214: Qt Creator is a cross platform integrated development environment michael@214: (IDE) with an advanced C++ code editor, integrated GUI layout and michael@214: forms designer, project and build management tools, integrated michael@214: context sensitive help system, visual debugger, and rapid code michael@214: navigation tools. Its portable design and leverage of the Qt SDK michael@214: allows for support of multiple platforms. michael@214: michael@214: %track michael@214: prog qtcreator = { michael@214: version = %{version} michael@214: url = ftp://ftp.trolltech.com/qtcreator/ michael@214: regex = qt-creator-(__VER__)-src\.tar\.gz michael@214: } michael@214: michael@214: %prep michael@214: %setup -q -n qt-creator-%{version}-src michael@214: %{l_shtool} subst \ michael@214: -e 's;\(CONFIG[\ \t]*+=\)\(.*\);\1 static\2;' \ michael@214: qtcreator.pro michael@219: %{l_shtool} subst \ michael@219: -e 's;\(QMAKE_RPATHDIR +=\);#\1;g' \ michael@219: -e 's;\(QMAKE_RPATHDIR =\)$;\1 %{l_prefix}/lib/qtcreator:%{l_prefix}/lib/qt/dynamic;' \ michael@219: src/qtcreatorplugin.pri \ michael@219: src/rpath.pri michael@214: michael@214: %build michael@214: %{l_prefix}/bin/qmake qtcreator.pro michael@214: %{l_make} %{l_mflags -O} michael@214: michael@214: %install michael@214: rm -rf $RPM_BUILD_ROOT michael@214: michael@214: # carry out installation procedure michael@214: %{l_make} %{l_mflags} install_subtargets INSTALL_ROOT="$RPM_BUILD_ROOT%{l_prefix}" michael@214: michael@214: # clean up installation michael@214: ( cd $RPM_BUILD_ROOT/%{l_prefix} michael@214: mv bin/qtcreator.bin bin/qtcreator michael@214: rm bin/qtcreator_process_stub michael@214: mv share/pixmaps share/qtcreator michael@214: ) || exit $? michael@214: michael@214: # determine internal file listing michael@214: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@214: michael@214: %files -f files michael@214: michael@214: %clean michael@214: rm -rf $RPM_BUILD_ROOT michael@214: