qtcreator/qtcreator.spec

changeset 261
4f973c756446
parent 260
2a1b1cf8080a
child 281
acad5c9dea5f
equal deleted inserted replaced
4:d0c1bb48c8dc 5:47f56ee9a075
1 ## 1 ##
2 ## qtcreator.spec -- OpenPKG RPM Specification 2 ## qtcreator.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2010 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
30 Distribution: MSvB Recherche Production 30 Distribution: MSvB Recherche Production
31 Class: EVAL 31 Class: EVAL
32 Group: Development 32 Group: Development
33 License: GPL 33 License: GPL
34 Version: 2.0.1 34 Version: 2.0.1
35 Release: 20101010 35 Release: 20101012
36 36
37 # list of sources 37 # list of sources
38 Source0: ftp://ftp.qt.nokia.com/qtcreator/qt-creator-%{version}-src.tgz 38 Source0: ftp://ftp.qt.nokia.com/qtcreator/qt-creator-%{version}-src.tgz
39 39
40 # build information 40 # build information
54 allows for support of multiple platforms. 54 allows for support of multiple platforms.
55 55
56 %track 56 %track
57 prog qtcreator = { 57 prog qtcreator = {
58 version = %{version} 58 version = %{version}
59 url = ftp://ftp.trolltech.com/qtcreator/ 59 url = ftp://ftp.qt.nokia.com/qtcreator/
60 regex = qt-creator-(__VER__)-src\.tar\.gz 60 regex = qt-creator-(__VER__)-src\.tgz
61 } 61 }
62 62
63 %prep 63 %prep
64 %setup -q -n qt-creator-%{version}-src 64 %setup -q -n qt-creator-%{version}-src
65 %{l_shtool} subst \ 65 %{l_shtool} subst \
66 -e 's;\(CONFIG[\ \t]*+=\)[\ \t]*\(.*\);\1 static \2;' \ 66 -e 's;\(QMAKE_RPATHDIR +=\);#\1;g' \
67 qtcreator.pro 67 -e 's;\(\$\$join(QMAKE_RPATHDIR, ":"\));\1, "%{l_prefix}/lib/qtcreator:");' \
68 src/rpath.pri
68 %{l_shtool} subst \ 69 %{l_shtool} subst \
69 -e 's;\(QMAKE_RPATHDIR +=\);#\1;g' \ 70 -e 's;\(share\)/\(doc\)/\(qtcreator\);\1/\3/\2;' \
70 -e 's;\(QMAKE_RPATHDIR =\)$;\1 %{l_prefix}/lib/qtcreator:%{l_prefix}/lib/qt/dynamic;' \ 71 doc/doc.pri \
71 src/qtcreatorplugin.pri \ 72 qtcreator.pri \
72 src/rpath.pri 73 src/plugins/help/helpplugin.cpp
74 echo '' >>src/libs/3rdparty/botan/botan.pro
75 for profil in `find . -name '*.pro' | grep -v '[ ]'`; do
76 echo 'CONFIG += shared' >>$profil
77 done
73 78
74 %build 79 %build
75 %{l_prefix}/bin/qmake qtcreator.pro 80 %{l_prefix}/bin/qmake qtcreator.pro
76 %{l_make} %{l_mflags -O} 81 %{l_make} %{l_mflags -O}
77 82
78 %install 83 %install
79 rm -rf $RPM_BUILD_ROOT 84 rm -rf $RPM_BUILD_ROOT
80 85
81 # carry out installation procedure 86 # carry out installation procedure
82 %{l_make} %{l_mflags} install_subtargets INSTALL_ROOT="$RPM_BUILD_ROOT%{l_prefix}" 87 %{l_make} %{l_mflags} install INSTALL_ROOT="$RPM_BUILD_ROOT%{l_prefix}"
83 88
84 # clean up installation 89 # clean up installation
85 rm $RPM_BUILD_ROOT/%{l_prefix}/bin/qtcreator_process_stub 90 rm $RPM_BUILD_ROOT/%{l_prefix}/bin/qtcreator_process_stub
86 91
87 # determine internal file listing 92 # determine internal file listing

mercurial