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