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. |
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 |