]>
Commit | Line | Data |
---|---|---|
13472b50 WF |
1 | # TODO: |
2 | # - cleanup | |
3 | ||
4 | %define orgname qtimageformats | |
5 | Summary: The Qt5 Image Formats | |
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: fe9898272b3952e3d97eacbaca484b55 | |
13 | URL: http://qt-project.org/ | |
14 | BuildRequires: libmng-devel | |
15 | BuildRequires: libtiff-devel | |
16 | BuildRequires: qt5-qtbase-devel = %{version} | |
17 | BuildRequires: qt5-qttools-devel = %{version} | |
18 | BuildRequires: rpmbuild(macros) >= 1.654 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
22 | %define _noautostrip '.*_debug\\.so*' | |
23 | ||
24 | %define specflags -fno-strict-aliasing | |
25 | %define _qtdir %{_libdir}/qt5 | |
26 | ||
27 | %description | |
28 | Qt5 Image Formats libraries. | |
29 | ||
30 | %package devel | |
31 | Summary: The Qt5 Image Formats - development files | |
32 | Group: X11/Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Qt5 Image Formats - development files. | |
37 | ||
38 | %package doc | |
39 | Summary: The Qt5 Image Formats - docs | |
40 | Group: Documentation | |
41 | ||
42 | %description doc | |
43 | Qt5 Image Formats - documentation. | |
44 | ||
45 | %package examples | |
46 | Summary: Qt5 Image Formats examples | |
47 | Group: X11/Development/Libraries | |
48 | ||
49 | %description examples | |
50 | Qt5 Formats - examples. | |
51 | ||
52 | %prep | |
53 | %setup -q -n %{orgname}-opensource-src-%{version} | |
54 | ||
55 | %build | |
56 | qmake-qt5 | |
57 | %{__make} | |
58 | %{__make} docs | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} install \ | |
63 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install_docs \ | |
66 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_qtdir}/plugins | |
74 | ||
75 | %files devel | |
76 | %defattr(644,root,root,755) | |
77 | %{_libdir}/cmake/Qt5Gui | |
78 | ||
79 | %files doc | |
80 | %defattr(644,root,root,755) | |
81 | %{_docdir}/qt5-doc |