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}/%{} 31 31 32 32 %if 0%{?os2_release} … … 100 100 %files 101 101 %defattr(-,root,root,-) 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 102 127 %{qt_libdir}/QtCore%{ver_major}.dll 128 129 130 131 132 133 103 134 104 135 %pre … … 127 158 %files pm 128 159 %defattr(-,root,root,-) 160 161 162 163 164 165 166 167 168 169 170 171 172 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 284 285 286 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 |EXENAME=((%{qt_bindir}/linguist.exe)) 192 293 %wps_object_create_end 193 294 … … 213 314 %files assistant 214 315 %defattr(-,root,root,-) 316 317 215 318 %{qt_bindir}/assistant.exe 319 320 321 322 323 324 325 326 327 216 328 217 329 #------------------------------------------------------------------------------ … … 233 345 %files designer 234 346 %defattr(-,root,root,-) 347 348 349 350 235 351 %{qt_bindir}/designer.exe 352 353 354 355 356 357 358 359 360 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 255 381 %{qt_bindir}/pixeltool.exe 382 383 384 385 386 387 388 389 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 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 298 448 %{qt_bindir}/moc.exe 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 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 497 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 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.