]>
Commit | Line | Data |
---|---|---|
a23acca5 WF |
1 | # TODO: |
2 | # - cleanup | |
3 | ||
4 | %define orgname qtgraphicaleffects | |
5 | Summary: The Qt5 Graphical Effects | |
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: 85e94989bbc624f676102f0ea343b6dd | |
13 | URL: http://qt-project.org/ | |
14 | BuildRequires: qt5-qtbase-devel = %{version} | |
15 | BuildRequires: qt5-qtdeclarative-devel = %{version} | |
16 | BuildRequires: qt5-qtscript-devel = %{version} | |
17 | BuildRequires: qt5-qttools-devel = %{version} | |
18 | BuildRequires: rpmbuild(macros) >= 1.654 | |
e8949435 ER |
19 | BuildRequires: tar >= 1:1.22 |
20 | BuildRequires: xz | |
a23acca5 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 | The Qt5 Graphical Effects libraries. | |
31 | ||
32 | %package devel | |
33 | Summary: The Qt5 Graphical Effects - development files | |
34 | Group: X11/Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | ||
37 | %description devel | |
38 | The Qt5 Graphical Effects - development files. | |
39 | ||
40 | %package doc | |
41 | Summary: The Qt5 Graphical Effects - docs | |
42 | Group: Documentation | |
e8949435 ER |
43 | %if "%{_rpmversion}" >= "5" |
44 | BuildArch: noarch | |
45 | %endif | |
a23acca5 WF |
46 | |
47 | %description doc | |
48 | The Qt5 Graphical Effects - documentation. | |
49 | ||
50 | %package examples | |
51 | Summary: The Qt5 Graphical Effects examples | |
52 | Group: X11/Development/Libraries | |
e8949435 ER |
53 | %if "%{_rpmversion}" >= "5" |
54 | BuildArch: noarch | |
55 | %endif | |
a23acca5 WF |
56 | |
57 | %description examples | |
58 | The Qt5 Graphical Effects - 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 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %{_qtdir}/qml | |
85 | ||
86 | %files doc | |
87 | %defattr(644,root,root,755) | |
88 | %{_docdir}/qt5-doc |