]>
Commit | Line | Data |
---|---|---|
8b69a6c6 JB |
1 | # |
2 | # Conditional build: | |
027d5396 | 3 | %bcond_without doc # Documentation |
f5135eb6 WF |
4 | |
5 | %define orgname qtsvg | |
8b69a6c6 JB |
6 | %define qtbase_ver %{version} |
7 | %define qttools_ver %{version} | |
8 | Summary: The Qt5 Svg library | |
9 | Summary(pl.UTF-8): Biblioteka Qt5 Svg | |
f5135eb6 | 10 | Name: qt5-%{orgname} |
814ea8e1 JP |
11 | Version: 5.15.10 |
12 | Release: 1 | |
8765b5f1 | 13 | License: LGPL v3 or GPL v2 or GPL v3 or comercial |
f5135eb6 | 14 | Group: X11/Libraries |
a5ee2448 | 15 | Source0: https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-opensource-src-%{version}.tar.xz |
814ea8e1 | 16 | # Source0-md5: d77aa82f139312fd0071d8b77be62be2 |
95fe1f82 | 17 | Patch0: CVE-2023-32573-qtsvg-5.15.diff |
8765b5f1 | 18 | URL: https://www.qt.io/ |
1db2d764 JB |
19 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
20 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
21 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
8765b5f1 JB |
22 | # for examples |
23 | BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver} | |
24 | # for tests | |
1db2d764 | 25 | BuildRequires: Qt5Xml-devel >= %{qtbase_ver} |
027d5396 | 26 | %if %{with doc} |
8b69a6c6 JB |
27 | BuildRequires: qt5-assistant >= %{qttools_ver} |
28 | %endif | |
29 | BuildRequires: qt5-build >= %{qtbase_ver} | |
30 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
270a99f3 | 31 | BuildRequires: rpm-build >= 4.6 |
3b0ca69d | 32 | BuildRequires: rpmbuild(macros) >= 2.016 |
cb835ed0 ER |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
1db2d764 | 35 | BuildRequires: zlib-devel |
f5135eb6 WF |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
f5135eb6 | 38 | %define specflags -fno-strict-aliasing |
8b69a6c6 | 39 | %define qt5dir %{_libdir}/qt5 |
f5135eb6 WF |
40 | |
41 | %description | |
8b69a6c6 JB |
42 | Qt is a cross-platform application and UI framework. Using Qt, you can |
43 | write web-enabled applications once and deploy them across desktop, | |
44 | mobile and embedded systems without rewriting the source code. | |
45 | ||
46 | This package contains Qt5 Svg library. | |
47 | ||
48 | %description -l pl.UTF-8 | |
49 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
50 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
51 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
52 | źródłowego. | |
53 | ||
54 | Ten pakiet zawiera bibliotekę Qt5 Svg. | |
55 | ||
56 | %package -n Qt5Svg | |
57 | Summary: The Qt5 Svg library | |
58 | Summary(pl.UTF-8): Biblioteka Qt5 Svg | |
59 | Group: Libraries | |
21d8d7c5 | 60 | %requires_eq_to Qt5Core Qt5Core-devel |
1db2d764 JB |
61 | Requires: Qt5Gui >= %{qtbase_ver} |
62 | Requires: Qt5Widgets >= %{qtbase_ver} | |
bc05b6d4 | 63 | Obsoletes: qt5-qtsvg < 5.3.0 |
f5135eb6 | 64 | |
8b69a6c6 | 65 | %description -n Qt5Svg |
1db2d764 | 66 | Qt5 Svg library provides functionality for handling SVG images. |
8b69a6c6 | 67 | |
46e21c2f | 68 | %description -n Qt5Svg -l pl.UTF-8 |
1db2d764 | 69 | Biblioteka Qt5 Svg udostępnia obsługę obrazów SVG. |
8b69a6c6 JB |
70 | |
71 | %package -n Qt5Svg-devel | |
72 | Summary: Qt5 Svg library - development files | |
73 | Summary(pl.UTF-8): Biblioteka Qt5 Svg - pliki programistyczne | |
f5135eb6 | 74 | Group: X11/Development/Libraries |
8b69a6c6 | 75 | Requires: Qt5Core-devel >= %{qtbase_ver} |
1db2d764 | 76 | Requires: Qt5Gui-devel >= %{qtbase_ver} |
8b69a6c6 | 77 | Requires: Qt5Svg = %{version}-%{release} |
1db2d764 JB |
78 | Requires: Qt5Widgets-devel >= %{qtbase_ver} |
79 | Requires: zlib-devel | |
bc05b6d4 | 80 | Obsoletes: qt5-qtsvg-devel < 5.3.0 |
8b69a6c6 JB |
81 | |
82 | %description -n Qt5Svg-devel | |
83 | Qt5 Svg library - development files. | |
f5135eb6 | 84 | |
8b69a6c6 JB |
85 | %description -n Qt5Svg-devel -l pl.UTF-8 |
86 | Biblioteka Qt5 Svg - pliki programistyczne. | |
f5135eb6 WF |
87 | |
88 | %package doc | |
8b69a6c6 JB |
89 | Summary: Qt5 Svg documentation in HTML format |
90 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie HTML | |
f5135eb6 | 91 | Group: Documentation |
8b69a6c6 | 92 | Requires: qt5-doc-common >= %{qtbase_ver} |
de67c8f4 | 93 | BuildArch: noarch |
f5135eb6 WF |
94 | |
95 | %description doc | |
8b69a6c6 JB |
96 | Qt5 Svg documentation in HTML format. |
97 | ||
98 | %description doc -l pl.UTF-8 | |
99 | Dokumentacja do biblioteki Qt5 Svg w formacie HTML. | |
100 | ||
101 | %package doc-qch | |
102 | Summary: Qt5 Svg documentation in QCH format | |
103 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie QCH | |
104 | Group: Documentation | |
105 | Requires: qt5-doc-common >= %{qtbase_ver} | |
de67c8f4 | 106 | BuildArch: noarch |
8b69a6c6 JB |
107 | |
108 | %description doc-qch | |
109 | Qt5 Svg documentation in QCH format. | |
110 | ||
111 | %description doc-qch -l pl.UTF-8 | |
112 | Dokumentacja do biblioteki Qt5 Svg w formacie QCH. | |
f5135eb6 WF |
113 | |
114 | %package examples | |
115 | Summary: Qt5 Svg examples | |
8b69a6c6 | 116 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Svg |
f5135eb6 | 117 | Group: X11/Development/Libraries |
de67c8f4 | 118 | BuildArch: noarch |
f5135eb6 WF |
119 | |
120 | %description examples | |
8b69a6c6 JB |
121 | Qt5 Svg examples. |
122 | ||
123 | %description examples -l pl.UTF-8 | |
124 | Przykłady do biblioteki Qt5 Svg. | |
f5135eb6 WF |
125 | |
126 | %prep | |
023588e1 | 127 | %setup -q -n %{orgname}-everywhere-src-%{version} |
95fe1f82 | 128 | %patch0 -p1 |
f5135eb6 WF |
129 | |
130 | %build | |
3b0ca69d | 131 | %{qmake_qt5} |
f5135eb6 | 132 | %{__make} |
027d5396 | 133 | %{?with_doc:%{__make} docs} |
f5135eb6 WF |
134 | |
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
8765b5f1 | 137 | |
f5135eb6 WF |
138 | %{__make} install \ |
139 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
140 | ||
027d5396 JR |
141 | %if %{with doc} |
142 | %{__make} install_docs \ | |
f5135eb6 | 143 | INSTALL_ROOT=$RPM_BUILD_ROOT |
027d5396 | 144 | %endif |
f5135eb6 | 145 | |
8b69a6c6 | 146 | # useless symlinks |
023588e1 | 147 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
8b69a6c6 JB |
148 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
150 | ||
f5135eb6 WF |
151 | # Prepare some files list |
152 | ifecho() { | |
1db2d764 | 153 | r="$RPM_BUILD_ROOT$2" |
f5135eb6 WF |
154 | if [ -d "$r" ]; then |
155 | echo "%%dir $2" >> $1.files | |
156 | elif [ -x "$r" ] ; then | |
157 | echo "%%attr(755,root,root) $2" >> $1.files | |
158 | elif [ -f "$r" ]; then | |
159 | echo "$2" >> $1.files | |
160 | else | |
161 | echo "Error generation $1 files list!" | |
162 | echo "$r: no such file or directory!" | |
163 | return 1 | |
164 | fi | |
165 | } | |
1db2d764 JB |
166 | ifecho_tree() { |
167 | ifecho $1 $2 | |
168 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
169 | ifecho $1 $2/$f | |
170 | done | |
171 | } | |
f5135eb6 WF |
172 | |
173 | echo "%defattr(644,root,root,755)" > examples.files | |
1db2d764 | 174 | ifecho_tree examples %{_examplesdir}/qt5/svg |
f5135eb6 WF |
175 | |
176 | %clean | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
8b69a6c6 JB |
179 | %post -n Qt5Svg -p /sbin/ldconfig |
180 | %postun -n Qt5Svg -p /sbin/ldconfig | |
f5135eb6 | 181 | |
8b69a6c6 | 182 | %files -n Qt5Svg |
f5135eb6 | 183 | %defattr(644,root,root,755) |
09c12669 | 184 | %doc dist/changes-* |
8b69a6c6 JB |
185 | %attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*.* |
186 | %attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.5 | |
8765b5f1 | 187 | # R: Core Gui Svg |
1db2d764 | 188 | %attr(755,root,root) %{qt5dir}/plugins/iconengines/libqsvgicon.so |
8765b5f1 | 189 | # R: Core Gui Svg |
1db2d764 | 190 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqsvg.so |
f5135eb6 | 191 | |
1db2d764 | 192 | %files -n Qt5Svg-devel |
f5135eb6 WF |
193 | %defattr(644,root,root,755) |
194 | %attr(755,root,root) %{_libdir}/libQt5Svg.so | |
f5135eb6 | 195 | %{_libdir}/libQt5Svg.prl |
f5135eb6 | 196 | %{_includedir}/qt5/QtSvg |
8b69a6c6 | 197 | %{_pkgconfigdir}/Qt5Svg.pc |
1db2d764 JB |
198 | %dir %{_libdir}/cmake/Qt5Svg |
199 | %{_libdir}/cmake/Qt5Svg/Qt5SvgConfig*.cmake | |
2bcb6f9c JP |
200 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QSvgIconPlugin.cmake |
201 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QSvgPlugin.cmake | |
1db2d764 JB |
202 | %{qt5dir}/mkspecs/modules/qt_lib_svg.pri |
203 | %{qt5dir}/mkspecs/modules/qt_lib_svg_private.pri | |
f5135eb6 | 204 | |
027d5396 | 205 | %if %{with doc} |
f5135eb6 WF |
206 | %files doc |
207 | %defattr(644,root,root,755) | |
1db2d764 JB |
208 | %{_docdir}/qt5-doc/qtsvg |
209 | ||
1db2d764 JB |
210 | %files doc-qch |
211 | %defattr(644,root,root,755) | |
212 | %{_docdir}/qt5-doc/qtsvg.qch | |
213 | %endif | |
f5135eb6 WF |
214 | |
215 | %files examples -f examples.files | |
1db2d764 JB |
216 | %defattr(644,root,root,755) |
217 | # XXX: dir shared with qt5-qtbase-examples | |
218 | %dir %{_examplesdir}/qt5 |