source: packaging/qt.spec@ 1078

Last change on this file since 1078 was 1078, checked in by Dmitry A. Kuminov, 14 years ago

packaging: Stuff package templates with real files.

File size: 19.5 KB
RevLine 
[1041]1#
2# http://svn.netlabs.org/qt4
3#
[1068]4# If you are a packager, please read HowToDistribute.txt for general
5# instructions.
6#
[1041]7
[1068]8Name: qt
9Vendor: netlabs.org
10License: LGPLv2 with exceptions or GPLv3 with exceptions
11Url: http://www.qtsoftware.com/
12
[1041]13%define ver_major 4
[1068]14%define ver_minor 7
[1041]15%define ver_patch 3
16
[1068]17%define os2_release 0
18
[1041]19%define rpm_release 1
20
[1068]21%define svn_revision 1070
[1041]22
23%define descr_brief Qt is a software toolkit for developing applications.
24
25%define pkg_wps_base QT4
26%define pkg_wps_folder_id <%{pkg_wps_base}_FOLDER>
27%define pkg_wps_folder_create %{pkg_wps_base}_FOLDER:WPFolder|Qt 4|<WP_DESKTOP>
28%define pkg_wps_view_txt() EXENAME=e.exe;PROGTYPE=PROG_PM;PARAMETERS=((%*))
29
[1078]30%define pkg_docdir %{_docdir}/%{qtM}
[1041]31
[1068]32%if 0%{?os2_release}
33Version: %{ver_major}.%{ver_minor}.%{ver_patch}.%{os2_release}
34%else
35Version: %{ver_major}.%{ver_minor}.%{ver_patch}
36%endif
37Release: %{rpm_release}
38
39Source: %{name}-%{version}.zip
40
41#BuildRequires: gnumake (when available)
42BuildRequires: libc-devel
43BuildRequires: gcc
44BuildRequires: gcc-wlink
45BuildRequires: gcc-wrc
46#BuildRequires: cups-devel (when available)
47BuildRequires: openssl-devel
48BuildRequires: pthread-devel
49#BuildRequires: mysql-devel (when available)
50#BuildRequires: psql-devel (when available)
51
52# @todo add wrc support to Qt!
53
54#------------------------------------------------------------------------------
55# commons
56#------------------------------------------------------------------------------
57
58# process command line arguments
59%if "%{?QT_SOURCE_TREE}" == ""
60%define QT_SOURCE_TREE .
61%endif
62
63# @todo temporary
64%define skip_prep_export 1
65
66# installation paths
[1041]67%define qt_prefix %{_libdir}/%{qtM}
68%define qt_libdir %{_libdir}
[1062]69%define qt_headerdir %{_includedir}/qt4
[1041]70%define qt_bindir %{qt_prefix}/bin
71%define qt_plugindir %{qt_prefix}/plugins
[1062]72%define qt_importdir %{qt_prefix}/imports
[1041]73%define qt_demosdir %{qt_prefix}/demos
74%define qt_examplesdir %{qt_prefix}/examples
[1062]75%define qt_datadir %{_datadir}/%{qtM}
[1041]76%define qt_docdir %{qt_datadir}/doc
77%define qt_translationdir %{qt_datadir}/translations
78%define qt_sysconfdir %{_sysconfdir}/xdg
79
[1068]80%define qtM %{name}%{ver_major}
81
[1075]82# disable lxlite compression (Qt EXEs and DLLs are already compressed)
83%define __os_install_post %{nil}
84
[1041]85#------------------------------------------------------------------------------
86# main package
87#------------------------------------------------------------------------------
88
89Summary: Qt runtime
90Group: System Environment/Libraries
91
92Provides: %{qtM} = %{version}-%{release}
93
[1062]94%description
[1041]95%{descr_brief}
96
97This package contains runtime Qt libraries for console applications, including
98core, network and XML modules.
99
100%files
101%defattr(-,root,root,-)
[1078]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
[1068]127%{qt_libdir}/QtCore%{ver_major}.dll
[1078]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
[1041]134
135%pre
136
[1068]137%warpin_conflicts_begin
138netlabs.org\Qt4\Runtime
139%warpin_conflicts_end
[1041]140
141#------------------------------------------------------------------------------
142%package pm
143#------------------------------------------------------------------------------
144
145Summary: Qt GUI runtime
146Group: System Environment/Libraries
147
[1068]148Requires: %{name} = %{version}-%{release}
[1041]149
150Provides: %{qtM}-pm = %{version}-%{release}
151
152%description pm
153%{descr_brief}
154
155This package contains runtime Qt libraries for Presentation Manager GUI
156applications.
157
158%files pm
159%defattr(-,root,root,-)
[1078]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
[1068]173%{qt_libdir}/QtGui%{ver_major}.dll
[1078]174%{qt_libdir}/QtHelp%{ver_major}.dll
175%{qt_libdir}/QtScTl%{ver_major}.dll
176%{qt_libdir}/QtSvg%{ver_major}.dll
[1041]177
178#------------------------------------------------------------------------------
[1078]179%package webkit
[1041]180#------------------------------------------------------------------------------
[1078]181
182Summary: Qt WebKit runtime
183Group: System Environment/Libraries
184
185Requires: %{name}-pm = %{version}-%{release}
186
187Provides: %{qtM}-webkit = %{version}-%{release}
188
189%description webkit
190%{descr_brief}
191
192This package contains runtime Qt libraries for applications based on the WebKit
193technology.
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#------------------------------------------------------------------------------
204Summary: Qt demos and examples
[1041]205Group: Documentation
206
[1068]207Requires: %{name}-pm = %{version}-%{release}
[1078]208Requires: %{name}-webkit = %{version}-%{release}
[1041]209
[1078]210Provides: %{qtM}-demos = %{version}-%{release}
[1041]211
[1078]212%description demos
[1041]213%{descr_brief}
214
[1062]215This package contains the demo and example Qt applications and their
216source code. These applications demonstrate the possibilities of the
217Qt toolkit.
[1041]218
[1078]219%files demos
[1041]220%defattr(-,root,root,-)
[1078]221%{qt_plugindir}/designer/
222%exclude %{qt_plugindir}/designer/qdeclv.dll
223%exclude %{qt_plugindir}/designer/qwebv.dll
[1041]224%{qt_bindir}/qtdemo.exe
[1078]225%{qt_examplesdir}
226%{qt_demosdir}
[1041]227
[1078]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))
232%wps_object_create_end
[1062]233
[1078]234%postun demos
235%wps_object_delete_all -n %{name}-demos
236
237#------------------------------------------------------------------------------
238%package qmlviewer
239#------------------------------------------------------------------------------
240Summary: Qt QML Viewer tool
241Group: Development/Tools
242
243Requires: %{name}-pm = %{version}-%{release}
244
245Provides: %{qtM}-qmlviewer = %{version}-%{release}
246
247%description qmlviewer
248%{descr_brief}
249
250This 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))
[1041]260%wps_object_create_end
261
[1078]262%postun qmlviewer
263%wps_object_delete_all -n %{name}-qmlviewer
[1041]264
265#------------------------------------------------------------------------------
266%package linguist
267#------------------------------------------------------------------------------
268Summary: Qt Linguist tool
269Group: Development/Tools
270
[1068]271Requires: %{name}-pm = %{version}-%{release}
[1041]272
273Provides: %{qtM}-linguist = %{version}-%{release}
274
275%description linguist
276%{descr_brief}
277
278This package contains the Qt Linguist tool used to edit the translation files
279for Qt applications.
280
281%files linguist
282%defattr(-,root,root,-)
[1078]283%{qt_translationdir}/linguist_??.qm
284%{qt_translationdir}/linguist_??_??.qm
285%dir %{qt_datadir}/phrasebooks/
286%{qt_datadir}/phrasebooks/*
[1041]287%{qt_bindir}/linguist.exe
288
289%post linguist
290%wps_object_create_begin -n %{name}-linguist
291%{wps_qt4_folder}
[1078]292%{pkg_wps_base}_LINGUIST:WPProgram|Linguist|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/linguist.exe))
[1041]293%wps_object_create_end
294
295%postun linguist
296%wps_object_delete_all -n %{name}-linguist
297
298#------------------------------------------------------------------------------
299%package assistant
300#------------------------------------------------------------------------------
301Summary: Qt Assistant tool
302Group: Development/Tools
303
[1068]304Requires: %{name}-pm = %{version}-%{release}
[1041]305
306Provides: %{qtM}-assistant = %{version}-%{release}
307
308%description assistant
309%{descr_brief}
310
311This package contains the Qt Assistant tool used to read and search the Qt
312Toolkit reference documentation.
313
314%files assistant
315%defattr(-,root,root,-)
[1078]316%{qt_translationdir}/assistant_??.qm
317%{qt_translationdir}/assistant_??_??.qm
[1041]318%{qt_bindir}/assistant.exe
319
[1078]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
328
[1041]329#------------------------------------------------------------------------------
[1068]330%package designer
331#------------------------------------------------------------------------------
332Summary: Qt Designer tool
333Group: Development/Tools
334
335Requires: %{name}-pm = %{version}-%{release}
336
337Provides: %{qtM}-designer = %{version}-%{release}
338
339%description designer
340%{descr_brief}
341
342This package contains the Qt Designer tool used to for designing and building
343graphical user interfaces from Qt components.
344
345%files designer
346%defattr(-,root,root,-)
[1078]347%{qt_translationdir}/designer_??.qm
348%{qt_translationdir}/designer_??_??.qm
349%{qt_libdir}/QtDsgC%{ver_major}.dll
350%{qt_libdir}/QtDsgn%{ver_major}.dll
[1068]351%{qt_bindir}/designer.exe
352
[1078]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
361
[1068]362#------------------------------------------------------------------------------
363%package devel-tools
364#------------------------------------------------------------------------------
365Summary: Qt development tools
366Group: Development/Tools
367
368Requires: %{name}-pm = %{version}-%{release}
369
370Provides: %{qtM}-devel-tools = %{version}-%{release}
371
372%description devel-tools
373%{descr_brief}
374
375This package contains tools used to assist in Qt development, including
[1078]376PixelTool, Help Converter and other applications.
[1068]377
378%files devel-tools
379%defattr(-,root,root,-)
[1078]380%{qt_bindir}/lconvert.exe
[1068]381%{qt_bindir}/pixeltool.exe
[1078]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
[1068]390
391#------------------------------------------------------------------------------
[1041]392%package doc
393#------------------------------------------------------------------------------
394Summary: API documentation for Qt
395Group: Documentation
396BuildArch: noarch
397
[1068]398Requires: %{name}-assistant = %{version}-%{release}
[1041]399
400Provides: %{qtM}-doc = %{version}-%{release}
401
402%description doc
403%{descr_brief}
404
405This package contains the Qt Toolkit reference documentation that provides the
406detailed description of all Qt classes and tools.
407
408%files doc
409%defattr(-,root,root,-)
410%{qt_docdir}/qch/*.qch
411
412#------------------------------------------------------------------------------
413%package devel
414#------------------------------------------------------------------------------
415Summary: Development files for Qt
416Group: Development/Libraries
417
[1068]418Requires: %{name}-pm = %{version}-%{release}
[1041]419
420Provides: %{qtM}-devel = %{version}-%{release}
421
422%description devel
423%{descr_brief}
424
425This package contains the headers, libraries and tools necessary to develop
[1068]426applications using the Qt toolkit.
[1041]427
428%files devel
429%defattr(-,root,root,-)
[1078]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
[1068]448%{qt_bindir}/moc.exe
[1078]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
[1041]455
456#------------------------------------------------------------------------------
[1078]457%package webkit-devel
458#------------------------------------------------------------------------------
459Summary: Development files for Qt WebKit
460Group: Development/Libraries
461
462Requires: %{name}-webkit = %{version}-%{release}
463Requires: %{name}-devel = %{version}-%{release}
464
465Provides: %{qtM}-webkit-devel = %{version}-%{release}
466
467%description webkit-devel
468%{descr_brief}
469
470This package contains the headers, libraries and tools necessary to
471develop 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
482
483#------------------------------------------------------------------------------
[1068]484%package devel-all
485#------------------------------------------------------------------------------
486Summary: Qt development kit
487Group: Development/Libraries
488
[1078]489Requires: %{name}-demos = %{version}-%{release}
490Requires: %{name}-qmlviewer = %{version}-%{release}
[1068]491Requires: %{name}-linguist = %{version}-%{release}
492Requires: %{name}-assistant = %{version}-%{release}
493Requires: %{name}-designer = %{version}-%{release}
494Requires: %{name}-devel-tools = %{version}-%{release}
495Requires: %{name}-doc = %{version}-%{release}
[1078]496Requires: %{name}-devel = %{version}-%{release}
497Requires: %{name}-webkit-devel = %{version}-%{release}
[1068]498
499Provides: %{qtM}-devel-all = %{version}-%{release}
500
501%description devel-all
502%{descr_brief}
503
504This meta package installs all individual packages containing various Qt
505development components, including the Qt headers and libraries, the Linguist,
506Assistant and designer Designer applications, development tools, example
507Qt applications and the API documentation.
508
509#------------------------------------------------------------------------------
[1041]510%prep
511#------------------------------------------------------------------------------
512
[1068]513%if !0%{?skip_prep}
514
[1062]515%if "%{?QT_SOURCE_TREE}" != ""
[1068]516%if !0%{?skip_prep_export}
517# get clean source tree from SVN
518%setup -n "%{name}-%{version}" -Tc
519svn export -r %{svn_revision} %{QT_SOURCE_TREE} .
[1041]520%else
[1068]521# use passed source tree as is (shadow build)
[1075]522%setup -n "%{name}-%{version}" -Tc%{?skip_prep_clean:D}
[1041]523%endif
[1068]524%else
525# use source zip
526%setup -q
527%endif
[1041]528
[1068]529%endif # if !0%{?skip_prep}
530
[1041]531#------------------------------------------------------------------------------
532%build
533#------------------------------------------------------------------------------
534
[1068]535%if !0%{?skip_build}
[1041]536
[1062]537die() { echo "ERROR: $@"; exit 1; }
538check_var() { eval "[ -n \"\$$1\" ] || die \"$1 variable is not set.\""; }
539
[1068]540# Qt source tree (DOS format)
[1062]541QT_SOURCE_TREE_D=$(echo "%{QT_SOURCE_TREE}" | tr '/' '\\')
542
543# Sanity checks (laking these would turn off features that must be ON)
[1068]544check_var "CUPS_INCLUDEPATH"
[1062]545check_var "MYSQL_INCLUDEPATH"
546check_var "MYSQL_LIBS"
547check_var "PSQL_INCLUDEPATH"
548check_var "PSQL_LIBS"
549
[1075]550[ -z "$MAKE_JOBS" ] && MAKE_JOBS=1
551
[1068]552# Qt links to some OS/2 DLLs directly (w/o import libs)
553export LIBRARY_PATH=%{os2_boot_drive}/OS2/DLL\;%{os2_boot_drive}/MPTN/DLL\;$LIBRARY_PATH
554
[1062]555# CMD.EXE is required by the build process for now
556export MAKESHELL=%{os2_boot_drive}\\OS2\\CMD.EXE
557
558# Qt doesn't understand /@unixroot in library paths, replace it with $(UNIXROOT)
559library_paths=$(echo \
560 --official-build-quiet %{svn_revision} \
561 -prefix "%{qt_prefix}" \
562 -datadir "%{qt_datadir}" \
563 -libdir "%{qt_libdir}" \
564 -headerdir "%{qt_headerdir}" \
565 -bindir "%{qt_bindir}" \
566 -plugindir "%{qt_plugindir}" \
567 -importdir "%{qt_importdir}" \
568 -demosdir "%{qt_demosdir}" \
569 -examplesdir "%{qt_examplesdir}" \
570 -docdir "%{qt_docdir}" \
571 -translationdir "%{qt_translationdir}" \
572 -sysconfdir "%{qt_sysconfdir}" \
573| sed -re 's,/@unixroot,$(UNIXROOT),g')
574
[1071]575BUILDDIR_D=$(echo "%{_builddir}/%{buildsubdir}" | sed -re 's,/,\\,g')
576
577# make sure the right DLLs are used by the build (and in particular by qdoc
[1075]578# in make docs) in case if there is another Qt version installed
[1071]579export PATH="$BUILDDIR_D\\bin\;$PATH"
580export BEGINLIBPATH="$BUILDDIR_D\\bin\;$BEGINLIBPATH"
581
[1075]582# temporarily reset UNIXROOT so that install targets will get only Qt prefixes
583# w/o the UNIXROOT directory chain (if it's not at root)
584UNIXROOT_OLD="$UNIXROOT"
[1078]585export UNIXROOT=/.
[1075]586
[1062]587cmd /c $QT_SOURCE_TREE_D\\configure.cmd $library_paths
588
[1075]589make -j$MAKE_JOBS
590
591# resture UNIXROOT
592export UNIXROOT="$UNIXROOT_OLD"
593
594%if !0%{?skip_build_docs}
[1071]595# qdoc needs the qsqlite plugin but nothing is installed to target locations
596# yet, so generate qt.conf to override paths
597echo \
598"[Paths]
599Prefix = ..
600Settings = \$(ETC)/xdg
601Examples = examples
602Demos = demos" \
603> "%{_builddir}/%{buildsubdir}/bin/qt.conf"
[1068]604make docs -j$MAKE_JOBS
[1075]605rm -f "%{_builddir}/%{buildsubdir}/bin/qt.conf"
[1068]606%endif
607
608%endif # if !0%{?skip_build}
609
[1041]610#------------------------------------------------------------------------------
611%install
612#------------------------------------------------------------------------------
613
[1068]614%if !0%{?skip_install}
615
[1041]616rm -rf %{buildroot}
617
[1075]618# Qt links to some OS/2 DLLs directly (w/o import libs)
619export LIBRARY_PATH=%{os2_boot_drive}/OS2/DLL\;%{os2_boot_drive}/MPTN/DLL\;$LIBRARY_PATH
[1041]620
[1075]621# CMD.EXE is required by the build process for now
622export MAKESHELL=%{os2_boot_drive}\\OS2\\CMD.EXE
623
624# exclude install_htmldocs from install targets
625make install_subtargets install_qchdocs install_qmake install_mkspecs \
626 INSTALL_ROOT=$(echo "%{buildroot}/@unixroot" | sed -re 's,/,\\,g')
627
[1068]628# copy READMEs (make install doesn't do that)
[1078]629mkdir -p "%{buildroot}/%{pkg_docdir}/"
[1075]630cp -dp \
[1078]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}/"
[1041]638
[1078]639# remove *.dll from bin (they will live in %{qt_libdir})
640rm -f "%{buildroot}/%{qt_bindir}/*.dll" "%{buildroot}/%{qt_bindir}/*.sym"
641
642# remove translations we don't need
643rm -f "%{buildroot}/%{qt_translationdir}/qtconfig_??.qm" \
644 "%{buildroot}/%{qt_translationdir}/qtconfig_??_??.qm"
645rm -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}"
650mkdir -p "%{buildroot}/%{_bindir}/"
651mv "%{buildroot}/%{qt_bindir}/qmake.exe" "%{buildroot}/%{_bindir}/"
652ln -s "%{_bindir}/qmake.exe" "%{buildroot}/%{qt_bindir}/qmake.exe"
653%endif
654
655# @todo temporarily delete .sym files (until we generate -debuginfo packages)
656find "%{buildroot}/" -type f -name "*.sym" -exec rm -f "{}" \;
657
[1068]658%endif # if !0%{?skip_install}
659
[1041]660#------------------------------------------------------------------------------
661%clean
662#------------------------------------------------------------------------------
663
[1068]664#rm -rf %{buildroot}
[1041]665
666#------------------------------------------------------------------------------
667%changelog
Note: See TracBrowser for help on using the repository browser.