]>
Commit | Line | Data |
---|---|---|
0d45f8c5 JB |
1 | # |
2 | # Conditional build: | |
b95d7e94 | 3 | %bcond_without doc # Rocumentation |
13472b50 WF |
4 | |
5 | %define orgname qtimageformats | |
0d45f8c5 JB |
6 | %define qtbase_ver %{version} |
7 | %define qttools_ver %{version} | |
8 | Summary: The Qt5 Image Formats plugins | |
9 | Summary(pl.UTF-8): Wtyczki Qt5 Image Formats | |
13472b50 | 10 | Name: qt5-%{orgname} |
d50fb08d | 11 | Version: 5.14.1 |
943bc74d | 12 | Release: 1 |
8b0af943 | 13 | License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0 |
13472b50 | 14 | Group: X11/Libraries |
d04cd2f7 | 15 | Source0: http://download.qt.io/official_releases/qt/5.14/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
d50fb08d | 16 | # Source0-md5: 32e27cc590f849aacd3c7005b0651353 |
68746434 | 17 | URL: http://www.qt.io/ |
186598a4 JB |
18 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
19 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
20 | BuildRequires: jasper-devel | |
13472b50 WF |
21 | BuildRequires: libmng-devel |
22 | BuildRequires: libtiff-devel | |
68746434 | 23 | BuildRequires: libwebp-devel >= 0.4.3 |
b95d7e94 | 24 | %if %{with doc} |
0d45f8c5 JB |
25 | BuildRequires: qt5-assistant >= %{qttools_ver} |
26 | %endif | |
27 | BuildRequires: qt5-build >= %{qtbase_ver} | |
28 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
13472b50 | 29 | BuildRequires: rpmbuild(macros) >= 1.654 |
91bfc0e2 ER |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
13472b50 WF |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
13472b50 | 34 | %define specflags -fno-strict-aliasing |
0d45f8c5 | 35 | %define qt5dir %{_libdir}/qt5 |
13472b50 WF |
36 | |
37 | %description | |
0d45f8c5 JB |
38 | Qt is a cross-platform application and UI framework. Using Qt, you can |
39 | write web-enabled applications once and deploy them across desktop, | |
40 | mobile and embedded systems without rewriting the source code. | |
41 | ||
186598a4 | 42 | This package contains Qt5 Image Formats plugins for Qt5Gui library. |
0d45f8c5 JB |
43 | |
44 | %description -l pl.UTF-8 | |
45 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
46 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
47 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
48 | źródłowego. | |
49 | ||
186598a4 | 50 | Ten pakiet zawiera wtyczki Qt5 Image Formats dla biblioteki Qt5Gui. |
13472b50 | 51 | |
186598a4 JB |
52 | %package -n Qt5Gui-imageformats |
53 | Summary: Qt5 Image Formats plugins for Qt5Gui library | |
54 | Summary(pl.UTF-8): Wtyczki Qt5 Image Formats dla biblioteki Qt5Gui | |
55 | Group: X11/Libraries | |
68746434 | 56 | Requires: libwebp >= 0.4.3 |
186598a4 JB |
57 | Obsoletes: qt5-qtimageformats |
58 | Obsoletes: qt5-qtimageformats-devel | |
59 | ||
60 | %description -n Qt5Gui-imageformats | |
61 | This package contains Qt5Gui Image Formats plugins that support the | |
62 | following formats: | |
63 | - DDS (Direct Draw Surface) | |
64 | - ICNS (Apple Icon Image) | |
65 | - JP2 (JPEG2000; Joint Photographic Experts Group 2000) | |
66 | - MNG (Multiple-image Network Graphics) | |
67 | - TGA (Truevision Graphics Adapter) | |
68 | - TIFF (Tagged Image File Format) | |
69 | - WBMP (Wireless Bitmap) | |
70 | - WEBP (WebP) | |
71 | ||
72 | %description -n Qt5Gui-imageformats -l pl.UTF-8 | |
73 | Ten pakiet zawiera wtyczki Image Formats dla biblioteki Qt5Gui, | |
74 | obsługujące następujące formaty: | |
75 | - DDS (Direct Draw Surface) | |
76 | - ICNS (Apple Icon Image) | |
77 | - JP2 (JPEG2000; Joint Photographic Experts Group 2000) | |
78 | - MNG (Multiple-image Network Graphics) | |
79 | - TGA (Truevision Graphics Adapter) | |
80 | - TIFF (Tagged Image File Format) | |
81 | - WBMP (Wireless Bitmap) | |
82 | - WEBP (WebP) | |
13472b50 WF |
83 | |
84 | %package doc | |
0d45f8c5 JB |
85 | Summary: Qt5 Image Formats documentation in HTML format |
86 | Summary(pl.UTF-8): Dokumentacja do wtyczek Qt5 Image Formats w formacie HTML | |
13472b50 | 87 | Group: Documentation |
0d45f8c5 | 88 | Requires: qt5-doc-common >= %{qtbase_ver} |
91bfc0e2 ER |
89 | %if "%{_rpmversion}" >= "5" |
90 | BuildArch: noarch | |
91 | %endif | |
13472b50 WF |
92 | |
93 | %description doc | |
0d45f8c5 JB |
94 | Qt5 Image Formats documentation in HTML format. |
95 | ||
96 | %description doc -l pl.UTF-8 | |
97 | Dokumentacja do wtyczek Qt5 Image Formats w formacie HTML. | |
98 | ||
99 | %package doc-qch | |
100 | Summary: Qt5 Image Formats documentation in QCH format | |
101 | Summary(pl.UTF-8): Dokumentacja do wtyczek Qt5 Image Formats w formacie QCH | |
102 | Group: Documentation | |
103 | Requires: qt5-doc-common >= %{qtbase_ver} | |
104 | %if "%{_rpmversion}" >= "5" | |
105 | BuildArch: noarch | |
106 | %endif | |
107 | ||
108 | %description doc-qch | |
109 | Qt5 Image Formats documentation in QCH format. | |
110 | ||
111 | %description doc-qch -l pl.UTF-8 | |
112 | Dokumentacja do wtyczek Qt5 Image Formats w formacie QCH. | |
13472b50 | 113 | |
13472b50 | 114 | %prep |
d1ee6ab1 | 115 | %setup -q -n %{orgname}-everywhere-src-%{version} |
13472b50 WF |
116 | |
117 | %build | |
118 | qmake-qt5 | |
119 | %{__make} | |
b95d7e94 | 120 | %{?with_doc:%{__make} docs} |
13472b50 WF |
121 | |
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | %{__make} install \ | |
125 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
126 | ||
b95d7e94 JR |
127 | %if %{with doc} |
128 | %{__make} install_docs \ | |
13472b50 | 129 | INSTALL_ROOT=$RPM_BUILD_ROOT |
b95d7e94 | 130 | %endif |
13472b50 WF |
131 | |
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
186598a4 | 135 | %files -n Qt5Gui-imageformats |
13472b50 | 136 | %defattr(644,root,root,755) |
d8f790f5 | 137 | %doc dist/changes-* |
943bc74d | 138 | #%attr(755,root,root) %{qt5dir}/plugins/imageformats/libqdds.so |
186598a4 JB |
139 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqicns.so |
140 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqjp2.so | |
141 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqmng.so | |
142 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqtga.so | |
143 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqtiff.so | |
144 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqwbmp.so | |
145 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqwebp.so | |
943bc74d | 146 | #%{_libdir}/cmake/Qt5Gui/Qt5Gui_QDDSPlugin.cmake |
186598a4 JB |
147 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake |
148 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QJp2Plugin.cmake | |
149 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QMngPlugin.cmake | |
150 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QTgaPlugin.cmake | |
151 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake | |
152 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QWbmpPlugin.cmake | |
153 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QWebpPlugin.cmake | |
13472b50 | 154 | |
b95d7e94 | 155 | %if %{with doc} |
13472b50 WF |
156 | %files doc |
157 | %defattr(644,root,root,755) | |
0d45f8c5 | 158 | %{_docdir}/qt5-doc/qtimageformats |
186598a4 | 159 | |
186598a4 JB |
160 | %files doc-qch |
161 | %defattr(644,root,root,755) | |
162 | %{_docdir}/qt5-doc/qtimageformats.qch | |
163 | %endif |