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