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