Changeset 1078
- Timestamp:
- Sep 13, 2011, 3:32:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
packaging/qt.spec
r1075 r1078 28 28 %define pkg_wps_view_txt() EXENAME=e.exe;PROGTYPE=PROG_PM;PARAMETERS=((%*)) 29 29 30 %define pkg_docdir %{_docdir}/%{ name}30 %define pkg_docdir %{_docdir}/%{qtM} 31 31 32 32 %if 0%{?os2_release} … … 100 100 %files 101 101 %defattr(-,root,root,-) 102 %docdir %{pkg_docdir}/ 103 %doc %{pkg_docdir}/* 104 %if "%{qt_prefix}" != "%{_prefix}" 105 %dir %{qt_prefix}/ 106 %endif 107 %if "%{qt_libdir}" != "%{_libdir}" 108 %dir %{qt_libdir}/ 109 %endif 110 %if "%{qt_bindir}" != "%{_bindir}" 111 %dir %{qt_bindir}/ 112 %endif 113 %dir %{qt_plugindir} 114 %{qt_plugindir}/bearer/ 115 %{qt_plugindir}/codecs/ 116 %dir %{qt_plugindir}/sqldrivers/ 117 %{qt_plugindir}/sqldrivers/* 118 %dir %{qt_datadir}/ 119 %dir %{qt_docdir}/ 120 %dir %{qt_docdir}/qch/ 121 %dir %{qt_translationdir}/ 122 %{qt_translationdir}/qt_??.qm 123 %{qt_translationdir}/qt_??_??.qm 124 %if "%{qt_sysconfdir}" != "%{_sysconfdir}" && "%{qt_sysconfdir}" != "%{_sysconfdir}/xdg" 125 %dir %{qt_sysconfdir}/ 126 %endif 102 127 %{qt_libdir}/QtCore%{ver_major}.dll 128 %{qt_libdir}/QtNet%{ver_major}.dll 129 %{qt_libdir}/QtScri%{ver_major}.dll 130 %{qt_libdir}/QtSql%{ver_major}.dll 131 %{qt_libdir}/QtTest%{ver_major}.dll 132 %{qt_libdir}/QtXml%{ver_major}.dll 133 %{qt_libdir}/QtXmlP%{ver_major}.dll 103 134 104 135 %pre … … 127 158 %files pm 128 159 %defattr(-,root,root,-) 160 %dir %{qt_plugindir}/designer 161 %{qt_plugindir}/designer/qdeclv.dll 162 %{qt_plugindir}/accessible/ 163 %{qt_plugindir}/graphicssystems/ 164 %{qt_plugindir}/iconengines/ 165 %{qt_plugindir}/imageformats/ 166 %{qt_plugindir}/qmltooling/ 167 %{qt_translationdir}/qt_help_??.qm 168 %{qt_translationdir}/qt_help_??_??.qm 169 %dir %{qt_importdir}/ 170 %{qt_importdir}/Qt/ 171 %{qt_libdir}/QtCLuc%{ver_major}.dll 172 %{qt_libdir}/QtDecl%{ver_major}.dll 129 173 %{qt_libdir}/QtGui%{ver_major}.dll 130 131 #------------------------------------------------------------------------------ 132 %package examples 133 #------------------------------------------------------------------------------ 134 Summary: Example applications for Qt 174 %{qt_libdir}/QtHelp%{ver_major}.dll 175 %{qt_libdir}/QtScTl%{ver_major}.dll 176 %{qt_libdir}/QtSvg%{ver_major}.dll 177 178 #------------------------------------------------------------------------------ 179 %package webkit 180 #------------------------------------------------------------------------------ 181 182 Summary: Qt WebKit runtime 183 Group: System Environment/Libraries 184 185 Requires: %{name}-pm = %{version}-%{release} 186 187 Provides: %{qtM}-webkit = %{version}-%{release} 188 189 %description webkit 190 %{descr_brief} 191 192 This package contains runtime Qt libraries for applications based on the WebKit 193 technology. 194 195 %files webkit 196 %defattr(-,root,root,-) 197 %{qt_plugindir}/designer/qwebv.dll 198 %{qt_importdir}/QtWebKit/ 199 %{qt_libdir}/QtWebK%{ver_major}.dll 200 201 #------------------------------------------------------------------------------ 202 %package demos 203 #------------------------------------------------------------------------------ 204 Summary: Qt demos and examples 135 205 Group: Documentation 136 206 137 207 Requires: %{name}-pm = %{version}-%{release} 138 139 Provides: %{qtM}-examples = %{version}-%{release} 140 141 %description examples 208 Requires: %{name}-webkit = %{version}-%{release} 209 210 Provides: %{qtM}-demos = %{version}-%{release} 211 212 %description demos 142 213 %{descr_brief} 143 214 … … 146 217 Qt toolkit. 147 218 148 %files examples 149 %defattr(-,root,root,-) 219 %files demos 220 %defattr(-,root,root,-) 221 %{qt_plugindir}/designer/ 222 %exclude %{qt_plugindir}/designer/qdeclv.dll 223 %exclude %{qt_plugindir}/designer/qwebv.dll 150 224 %{qt_bindir}/qtdemo.exe 151 # @todo put shortcuts to /usr/bin 152 #%if "%{qt_bindir}" != "%{_bindir}" 153 #%endif 154 #%dir %{qt_examplesdir}/ 155 #%dir %{qt_demosdir}/ 156 157 %post examples 158 159 %wps_object_create_begin -n %{name}-examples 160 %pkg_wps_folder_create% 161 %{pkg_wps_base}_DEMO:WPProgram|Examples and Demos|<QT4_FOLDER>|EXENAME=((%{qt_bindir}/qtdemo.exe)) 162 #%{pkg_wps_base}_CHANGELOG:WPProgram|ChangeLog|%{pkg_wps_folder_id}|%{pkg_wps_view_txt %{pkg_docdir}/ChangeLog} 225 %{qt_examplesdir} 226 %{qt_demosdir} 227 228 %post demos 229 %wps_object_create_begin -n %{name}-demos 230 %{pkg_wps_folder_create} 231 %{pkg_wps_base}_DEMO:WPProgram|Examples and Demos|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/qtdemo.exe)) 163 232 %wps_object_create_end 164 233 165 %postun examples 166 %wps_object_delete_all -n %{name}-examples 234 %postun demos 235 %wps_object_delete_all -n %{name}-demos 236 237 #------------------------------------------------------------------------------ 238 %package qmlviewer 239 #------------------------------------------------------------------------------ 240 Summary: Qt QML Viewer tool 241 Group: Development/Tools 242 243 Requires: %{name}-pm = %{version}-%{release} 244 245 Provides: %{qtM}-qmlviewer = %{version}-%{release} 246 247 %description qmlviewer 248 %{descr_brief} 249 250 This package contains the Qt QML Viewer tool that allows to view QML files. 251 252 %files qmlviewer 253 %defattr(-,root,root,-) 254 %{qt_bindir}/qmlviewer.exe 255 256 %post qmlviewer 257 %wps_object_create_begin -n %{name}-qmlviewer 258 %{pkg_wps_folder_create} 259 %{pkg_wps_base}_QMLVIEWER:WPProgram|QML Viewer|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/qmlview.exe)) 260 %wps_object_create_end 261 262 %postun qmlviewer 263 %wps_object_delete_all -n %{name}-qmlviewer 167 264 168 265 #------------------------------------------------------------------------------ … … 184 281 %files linguist 185 282 %defattr(-,root,root,-) 283 %{qt_translationdir}/linguist_??.qm 284 %{qt_translationdir}/linguist_??_??.qm 285 %dir %{qt_datadir}/phrasebooks/ 286 %{qt_datadir}/phrasebooks/* 186 287 %{qt_bindir}/linguist.exe 187 288 … … 189 290 %wps_object_create_begin -n %{name}-linguist 190 291 %{wps_qt4_folder} 191 QT4_LINGUIST:WPProgram|Linguist|<QT4_FOLDER>|EXENAME=((%{qt_bindir}/linguist.exe))292 %{pkg_wps_base}_LINGUIST:WPProgram|Linguist|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/linguist.exe)) 192 293 %wps_object_create_end 193 294 … … 213 314 %files assistant 214 315 %defattr(-,root,root,-) 316 %{qt_translationdir}/assistant_??.qm 317 %{qt_translationdir}/assistant_??_??.qm 215 318 %{qt_bindir}/assistant.exe 319 320 %post assistant 321 %wps_object_create_begin -n %{name}-assistant 322 %{wps_qt4_folder} 323 %{pkg_wps_base}_ASSISTANT:WPProgram|Assistant|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/assistant.exe)) 324 %wps_object_create_end 325 326 %postun assistant 327 %wps_object_delete_all -n %{name}-assistant 216 328 217 329 #------------------------------------------------------------------------------ … … 233 345 %files designer 234 346 %defattr(-,root,root,-) 347 %{qt_translationdir}/designer_??.qm 348 %{qt_translationdir}/designer_??_??.qm 349 %{qt_libdir}/QtDsgC%{ver_major}.dll 350 %{qt_libdir}/QtDsgn%{ver_major}.dll 235 351 %{qt_bindir}/designer.exe 352 353 %post designer 354 %wps_object_create_begin -n %{name}-designer 355 %{wps_qt4_folder} 356 %{pkg_wps_base}_DESIGNER:WPProgram|Designer|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/designer.exe)) 357 %wps_object_create_end 358 359 %postun designer 360 %wps_object_delete_all -n %{name}-designer 236 361 237 362 #------------------------------------------------------------------------------ … … 249 374 250 375 This package contains tools used to assist in Qt development, including 251 PixelTool, QML Viewer,Help Converter and other applications.376 PixelTool, Help Converter and other applications. 252 377 253 378 %files devel-tools 254 379 %defattr(-,root,root,-) 380 %{qt_bindir}/lconvert.exe 255 381 %{qt_bindir}/pixeltool.exe 382 %{qt_bindir}/qcollectiongenerator.exe 383 %{qt_bindir}/qdoc3.exe 384 %{qt_bindir}/qhelpconverter.exe 385 %{qt_bindir}/qhelpgenerator.exe 386 %{qt_bindir}/qt3to4.exe 387 %{qt_bindir}/qttracereplay.exe 388 %{qt_bindir}/xmlpatterns.exe 389 %{qt_bindir}/xmlpatternsvalidator.exe 256 390 257 391 #------------------------------------------------------------------------------ … … 276 410 %{qt_docdir}/qch/*.qch 277 411 278 # @todo assistant.exe -remove-search-index279 280 412 #------------------------------------------------------------------------------ 281 413 %package devel … … 296 428 %files devel 297 429 %defattr(-,root,root,-) 430 %if "%{qt_headerdir}" != "%{_includedir}" 431 %dir %{qt_headerdir}/ 432 %endif 433 %{qt_headerdir}/* 434 %exclude %{qt_headerdir}/Qt/QtWebKit 435 %exclude %{qt_headerdir}/Qt/qgraphicswebview.h 436 %exclude %{qt_headerdir}/Qt/qweb*.h 437 %exclude %{qt_headerdir}/QtWebKit/ 438 %{qt_libdir}/*.lib 439 %{qt_libdir}/*.prl 440 %exclude %{qt_libdir}/QtWebKit%{ver_major}.lib 441 %exclude %{qt_libdir}/QtWebKit.prl 442 %dir %{qt_datadir}/mkspecs/ 443 %{qt_datadir}/mkspecs/* 444 %exclude %{qt_datadir}/mkspecs/modules/qt_webkit_version.pri 445 %{qt_datadir}/q3porting.xml 446 %{qt_bindir}/lrelease.exe 447 %{qt_bindir}/lupdate.exe 298 448 %{qt_bindir}/moc.exe 449 %if "%{qt_bindir}" != "%{_bindir}" 450 %{_bindir}/qmake.exe 451 %endif 452 %{qt_bindir}/qmake.exe 453 %{qt_bindir}/rcc.exe 454 %{qt_bindir}/uic.exe 455 456 #------------------------------------------------------------------------------ 457 %package webkit-devel 458 #------------------------------------------------------------------------------ 459 Summary: Development files for Qt WebKit 460 Group: Development/Libraries 461 462 Requires: %{name}-webkit = %{version}-%{release} 463 Requires: %{name}-devel = %{version}-%{release} 464 465 Provides: %{qtM}-webkit-devel = %{version}-%{release} 466 467 %description webkit-devel 468 %{descr_brief} 469 470 This package contains the headers, libraries and tools necessary to 471 develop applications using the Qt WebKit technology. 472 473 %files webkit-devel 474 %defattr(-,root,root,-) 475 %{qt_headerdir}/Qt/QtWebKit 476 %{qt_headerdir}/Qt/qgraphicswebview.h 477 %{qt_headerdir}/Qt/qweb*.h 478 %{qt_headerdir}/QtWebKit/ 479 %{qt_libdir}/QtWebKit%{ver_major}.lib 480 %{qt_libdir}/QtWebKit.prl 481 %{qt_datadir}/mkspecs/modules/qt_webkit_version.pri 299 482 300 483 #------------------------------------------------------------------------------ … … 304 487 Group: Development/Libraries 305 488 306 Requires: %{name}-examples = %{version}-%{release} 489 Requires: %{name}-demos = %{version}-%{release} 490 Requires: %{name}-qmlviewer = %{version}-%{release} 307 491 Requires: %{name}-linguist = %{version}-%{release} 308 492 Requires: %{name}-assistant = %{version}-%{release} … … 310 494 Requires: %{name}-devel-tools = %{version}-%{release} 311 495 Requires: %{name}-doc = %{version}-%{release} 496 Requires: %{name}-devel = %{version}-%{release} 497 Requires: %{name}-webkit-devel = %{version}-%{release} 312 498 313 499 Provides: %{qtM}-devel-all = %{version}-%{release} … … 397 583 # w/o the UNIXROOT directory chain (if it's not at root) 398 584 UNIXROOT_OLD="$UNIXROOT" 399 export UNIXROOT= 585 export UNIXROOT=/. 400 586 401 587 cmd /c $QT_SOURCE_TREE_D\\configure.cmd $library_paths … … 441 627 442 628 # copy READMEs (make install doesn't do that) 443 mkdir -p %{buildroot}/%{pkg_docdir}/629 mkdir -p "%{buildroot}/%{pkg_docdir}/" 444 630 cp -dp \ 445 %{QT_SOURCE_TREE}/LICENSE.* \ 446 %{QT_SOURCE_TREE}/LGPL_EXCEPTION.txt \ 447 %{QT_SOURCE_TREE}/README \ 448 %{QT_SOURCE_TREE}/changes-%{ver_major}.%{ver_minor}.%{ver_patch} \ 449 %{QT_SOURCE_TREE}/README.OS2 \ 450 %{QT_SOURCE_TREE}/CHANGES.OS2 \ 451 %{buildroot}/%{pkg_docdir}/ 631 "%{QT_SOURCE_TREE}/LICENSE.*" \ 632 "%{QT_SOURCE_TREE}/LGPL_EXCEPTION.txt" \ 633 "%{QT_SOURCE_TREE}/README" \ 634 "%{QT_SOURCE_TREE}/changes-%{ver_major}.%{ver_minor}.%{ver_patch}" \ 635 "%{QT_SOURCE_TREE}/README.OS2" \ 636 "%{QT_SOURCE_TREE}/CHANGES.OS2" \ 637 "%{buildroot}/%{pkg_docdir}/" 638 639 # remove *.dll from bin (they will live in %{qt_libdir}) 640 rm -f "%{buildroot}/%{qt_bindir}/*.dll" "%{buildroot}/%{qt_bindir}/*.sym" 641 642 # remove translations we don't need 643 rm -f "%{buildroot}/%{qt_translationdir}/qtconfig_??.qm" \ 644 "%{buildroot}/%{qt_translationdir}/qtconfig_??_??.qm" 645 rm -f "%{buildroot}/%{qt_translationdir}/qvfb_??.qm" \ 646 "%{buildroot}/%{qt_translationdir}/qvfb_??_??.qm" 647 648 # move qmake.exe to %{_bindir} (to have it in PATH) and symlink back to qt4/bin 649 %if "%{qt_bindir}" != "%{_bindir}" 650 mkdir -p "%{buildroot}/%{_bindir}/" 651 mv "%{buildroot}/%{qt_bindir}/qmake.exe" "%{buildroot}/%{_bindir}/" 652 ln -s "%{_bindir}/qmake.exe" "%{buildroot}/%{qt_bindir}/qmake.exe" 653 %endif 654 655 # @todo temporarily delete .sym files (until we generate -debuginfo packages) 656 find "%{buildroot}/" -type f -name "*.sym" -exec rm -f "{}" \; 452 657 453 658 %endif # if !0%{?skip_install}
Note:
See TracChangeset
for help on using the changeset viewer.