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