]>
Commit | Line | Data |
---|---|---|
dffafefb WF |
1 | # TODO: |
2 | # - use PLD ldflags | |
3 | # - cleanup | |
4 | ||
5 | %define orgname qtdeclarative | |
6 | Summary: The Qt5 Declarative | |
7 | Name: qt5-%{orgname} | |
8 | Version: 5.2.0 | |
9 | Release: 0.1 | |
10 | License: LGPL v2.1 or GPL v3.0 | |
11 | Group: X11/Libraries | |
12 | Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz | |
13 | # Source0-md5: 0f7714c5c91b8eb7cdc1071f0a51c202 | |
14 | URL: http://qt-project.org/ | |
15 | BuildRequires: qt5-qtbase-devel = %{version} | |
16 | BuildRequires: rpmbuild(macros) >= 1.654 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
20 | %define _noautostrip '.*_debug\\.so*' | |
21 | ||
22 | %define specflags -fno-strict-aliasing | |
23 | %define _qtdir %{_libdir}/qt5 | |
24 | ||
25 | %description | |
26 | Qt5 declarative libraries. | |
27 | ||
28 | %package devel | |
29 | Summary: The Qt5 Declarative application framework - development files | |
30 | Group: X11/Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
34 | Qt5 Declarative - development files. | |
35 | ||
36 | %package examples | |
37 | Summary: Qt5 Declarative examples | |
38 | Group: X11/Development/Libraries | |
39 | ||
40 | %description examples | |
41 | Qt5 Declarative - examples. | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{orgname}-opensource-src-%{version} | |
45 | ||
46 | %build | |
47 | qmake-qt5 | |
48 | %{__make} | |
49 | %{__make} docs | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | %{__make} install install_docs \ | |
54 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
55 | ||
56 | # Prepare some files list | |
57 | ifecho() { | |
58 | RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null` | |
59 | [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set | |
60 | r=`echo $RESULT | awk '{ print $1 }'` | |
61 | ||
62 | if [ -d "$r" ]; then | |
63 | echo "%%dir $2" >> $1.files | |
64 | elif [ -x "$r" ] ; then | |
65 | echo "%%attr(755,root,root) $2" >> $1.files | |
66 | elif [ -f "$r" ]; then | |
67 | echo "$2" >> $1.files | |
68 | else | |
69 | echo "Error generation $1 files list!" | |
70 | echo "$r: no such file or directory!" | |
71 | return 1 | |
72 | fi | |
73 | } | |
74 | ||
75 | echo "%defattr(644,root,root,755)" > examples.files | |
76 | ifecho examples %{_examplesdir}/qt5 | |
77 | for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt5 -printf "%%P "`; do | |
78 | ifecho examples %{_examplesdir}/qt5/$f | |
79 | done | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | #%attr(755,root,root) %{_bindir}/* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libQt5Qml.so.? | |
91 | %attr(755,root,root) %{_libdir}/libQt5Qml.so.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libQt5Quick.so.? | |
93 | %attr(755,root,root) %{_libdir}/libQt5Quick.so.*.* | |
94 | %attr(755,root,root) %ghost %{_libdir}/libQt5QuickParticles.so.? | |
95 | %attr(755,root,root) %{_libdir}/libQt5QuickParticles.so.*.* | |
96 | %attr(755,root,root) %ghost %{_libdir}/libQt5QuickTest.so.? | |
97 | %attr(755,root,root) %{_libdir}/libQt5QuickTest.so.*.* | |
98 | %{_libdir}/libQt5QmlDevTools.a | |
99 | %attr(755,root,root) %{_qtdir}/bin/qml* | |
100 | %attr(755,root,root) %{_qtdir}/plugins | |
101 | %attr(755,root,root) %{_qtdir}/qml | |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_libdir}/libQt5Qml.so | |
106 | %attr(755,root,root) %{_libdir}/libQt5Quick.so | |
107 | %attr(755,root,root) %{_libdir}/libQt5QuickParticles.so | |
108 | %attr(755,root,root) %{_libdir}/libQt5QuickTest.so | |
109 | %{_libdir}/libQt5Qml.la | |
110 | %{_libdir}/libQt5Quick.la | |
111 | %{_libdir}/libQt5QuickParticles.la | |
112 | %{_libdir}/libQt5QuickTest.la | |
113 | %{_libdir}/libQt5QmlDevTools.la | |
114 | ||
115 | %{_libdir}/libQt5Qml.prl | |
116 | %{_libdir}/libQt5Quick.prl | |
117 | %{_libdir}/libQt5QuickParticles.prl | |
118 | %{_libdir}/libQt5QuickTest.prl | |
119 | %{_libdir}/libQt5QmlDevTools.prl | |
120 | ||
121 | %{_libdir}/cmake/Qt5Qml | |
122 | %{_libdir}/cmake/Qt5Quick | |
123 | %{_libdir}/cmake/Qt5QuickTest | |
124 | %{_libdir}/cmake/Qt5Widgets | |
125 | ||
126 | %{_includedir}/qt5/QtQml | |
127 | %{_includedir}/qt5/QtQuick | |
128 | %{_includedir}/qt5/QtQuickParticles | |
129 | %{_includedir}/qt5/QtQuickTest | |
130 | ||
131 | %{_pkgconfigdir}/*.pc | |
132 | ||
133 | %{_qtdir}/mkspecs | |
134 | ||
135 | %files examples -f examples.files |