]>
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} |
491c85df | 11 | Version: 5.15.2 |
1db2d764 JB |
12 | Release: 1 |
13 | License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0 | |
f5135eb6 | 14 | Group: X11/Libraries |
9d7c123b | 15 | Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
491c85df | 16 | # Source0-md5: c0f5c1c2cc1b66e56ce4ef13a2b7093a |
3be20deb | 17 | URL: http://www.qt.io/ |
1db2d764 JB |
18 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
19 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
bac6f71e | 20 | BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver} |
1db2d764 JB |
21 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} |
22 | BuildRequires: Qt5Xml-devel >= %{qtbase_ver} | |
027d5396 | 23 | %if %{with doc} |
8b69a6c6 JB |
24 | BuildRequires: qt5-assistant >= %{qttools_ver} |
25 | %endif | |
26 | BuildRequires: qt5-build >= %{qtbase_ver} | |
27 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
f5135eb6 | 28 | BuildRequires: rpmbuild(macros) >= 1.654 |
cb835ed0 ER |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
1db2d764 | 31 | BuildRequires: zlib-devel |
f5135eb6 WF |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
f5135eb6 | 34 | %define specflags -fno-strict-aliasing |
8b69a6c6 | 35 | %define qt5dir %{_libdir}/qt5 |
f5135eb6 WF |
36 | |
37 | %description | |
8b69a6c6 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 | ||
42 | This package contains Qt5 Svg library. | |
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 | ||
50 | Ten pakiet zawiera bibliotekę Qt5 Svg. | |
51 | ||
52 | %package -n Qt5Svg | |
53 | Summary: The Qt5 Svg library | |
54 | Summary(pl.UTF-8): Biblioteka Qt5 Svg | |
55 | Group: Libraries | |
56 | Requires: Qt5Core >= %{qtbase_ver} | |
1db2d764 JB |
57 | Requires: Qt5Gui >= %{qtbase_ver} |
58 | Requires: Qt5Widgets >= %{qtbase_ver} | |
8b69a6c6 | 59 | Obsoletes: qt5-qtsvg |
f5135eb6 | 60 | |
8b69a6c6 | 61 | %description -n Qt5Svg |
1db2d764 | 62 | Qt5 Svg library provides functionality for handling SVG images. |
8b69a6c6 | 63 | |
46e21c2f | 64 | %description -n Qt5Svg -l pl.UTF-8 |
1db2d764 | 65 | Biblioteka Qt5 Svg udostępnia obsługę obrazów SVG. |
8b69a6c6 JB |
66 | |
67 | %package -n Qt5Svg-devel | |
68 | Summary: Qt5 Svg library - development files | |
69 | Summary(pl.UTF-8): Biblioteka Qt5 Svg - pliki programistyczne | |
f5135eb6 | 70 | Group: X11/Development/Libraries |
1db2d764 | 71 | Requires: OpenGL-devel |
8b69a6c6 | 72 | Requires: Qt5Core-devel >= %{qtbase_ver} |
1db2d764 | 73 | Requires: Qt5Gui-devel >= %{qtbase_ver} |
8b69a6c6 | 74 | Requires: Qt5Svg = %{version}-%{release} |
1db2d764 JB |
75 | Requires: Qt5Widgets-devel >= %{qtbase_ver} |
76 | Requires: zlib-devel | |
8b69a6c6 JB |
77 | Obsoletes: qt5-qtsvg-devel |
78 | ||
79 | %description -n Qt5Svg-devel | |
80 | Qt5 Svg library - development files. | |
f5135eb6 | 81 | |
8b69a6c6 JB |
82 | %description -n Qt5Svg-devel -l pl.UTF-8 |
83 | Biblioteka Qt5 Svg - pliki programistyczne. | |
f5135eb6 WF |
84 | |
85 | %package doc | |
8b69a6c6 JB |
86 | Summary: Qt5 Svg documentation in HTML format |
87 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie HTML | |
f5135eb6 | 88 | Group: Documentation |
8b69a6c6 | 89 | Requires: qt5-doc-common >= %{qtbase_ver} |
cb835ed0 ER |
90 | %if "%{_rpmversion}" >= "5" |
91 | BuildArch: noarch | |
92 | %endif | |
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} | |
105 | %if "%{_rpmversion}" >= "5" | |
106 | BuildArch: noarch | |
107 | %endif | |
108 | ||
109 | %description doc-qch | |
110 | Qt5 Svg documentation in QCH format. | |
111 | ||
112 | %description doc-qch -l pl.UTF-8 | |
113 | Dokumentacja do biblioteki Qt5 Svg w formacie QCH. | |
f5135eb6 WF |
114 | |
115 | %package examples | |
116 | Summary: Qt5 Svg examples | |
8b69a6c6 | 117 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Svg |
f5135eb6 | 118 | Group: X11/Development/Libraries |
cb835ed0 ER |
119 | %if "%{_rpmversion}" >= "5" |
120 | BuildArch: noarch | |
121 | %endif | |
f5135eb6 WF |
122 | |
123 | %description examples | |
8b69a6c6 JB |
124 | Qt5 Svg examples. |
125 | ||
126 | %description examples -l pl.UTF-8 | |
127 | Przykłady do biblioteki Qt5 Svg. | |
f5135eb6 WF |
128 | |
129 | %prep | |
023588e1 | 130 | %setup -q -n %{orgname}-everywhere-src-%{version} |
f5135eb6 WF |
131 | |
132 | %build | |
133 | qmake-qt5 | |
134 | %{__make} | |
027d5396 | 135 | %{?with_doc:%{__make} docs} |
f5135eb6 WF |
136 | |
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | %{__make} install \ | |
140 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
141 | ||
027d5396 JR |
142 | %if %{with doc} |
143 | %{__make} install_docs \ | |
f5135eb6 | 144 | INSTALL_ROOT=$RPM_BUILD_ROOT |
027d5396 | 145 | %endif |
f5135eb6 | 146 | |
8b69a6c6 | 147 | # useless symlinks |
023588e1 | 148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
8b69a6c6 JB |
149 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
151 | ||
f5135eb6 WF |
152 | # Prepare some files list |
153 | ifecho() { | |
1db2d764 | 154 | r="$RPM_BUILD_ROOT$2" |
f5135eb6 WF |
155 | if [ -d "$r" ]; then |
156 | echo "%%dir $2" >> $1.files | |
157 | elif [ -x "$r" ] ; then | |
158 | echo "%%attr(755,root,root) $2" >> $1.files | |
159 | elif [ -f "$r" ]; then | |
160 | echo "$2" >> $1.files | |
161 | else | |
162 | echo "Error generation $1 files list!" | |
163 | echo "$r: no such file or directory!" | |
164 | return 1 | |
165 | fi | |
166 | } | |
1db2d764 JB |
167 | ifecho_tree() { |
168 | ifecho $1 $2 | |
169 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
170 | ifecho $1 $2/$f | |
171 | done | |
172 | } | |
f5135eb6 WF |
173 | |
174 | echo "%defattr(644,root,root,755)" > examples.files | |
1db2d764 | 175 | ifecho_tree examples %{_examplesdir}/qt5/svg |
f5135eb6 WF |
176 | |
177 | %clean | |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
8b69a6c6 JB |
180 | %post -n Qt5Svg -p /sbin/ldconfig |
181 | %postun -n Qt5Svg -p /sbin/ldconfig | |
f5135eb6 | 182 | |
8b69a6c6 | 183 | %files -n Qt5Svg |
f5135eb6 | 184 | %defattr(644,root,root,755) |
09c12669 | 185 | %doc dist/changes-* |
8b69a6c6 JB |
186 | %attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*.* |
187 | %attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.5 | |
1db2d764 JB |
188 | %attr(755,root,root) %{qt5dir}/plugins/iconengines/libqsvgicon.so |
189 | %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqsvg.so | |
f5135eb6 | 190 | |
1db2d764 | 191 | %files -n Qt5Svg-devel |
f5135eb6 WF |
192 | %defattr(644,root,root,755) |
193 | %attr(755,root,root) %{_libdir}/libQt5Svg.so | |
f5135eb6 | 194 | %{_libdir}/libQt5Svg.prl |
f5135eb6 | 195 | %{_includedir}/qt5/QtSvg |
8b69a6c6 | 196 | %{_pkgconfigdir}/Qt5Svg.pc |
1db2d764 JB |
197 | %dir %{_libdir}/cmake/Qt5Svg |
198 | %{_libdir}/cmake/Qt5Svg/Qt5SvgConfig*.cmake | |
2bcb6f9c JP |
199 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QSvgIconPlugin.cmake |
200 | %{_libdir}/cmake/Qt5Gui/Qt5Gui_QSvgPlugin.cmake | |
1db2d764 JB |
201 | %{qt5dir}/mkspecs/modules/qt_lib_svg.pri |
202 | %{qt5dir}/mkspecs/modules/qt_lib_svg_private.pri | |
f5135eb6 | 203 | |
027d5396 | 204 | %if %{with doc} |
f5135eb6 WF |
205 | %files doc |
206 | %defattr(644,root,root,755) | |
1db2d764 JB |
207 | %{_docdir}/qt5-doc/qtsvg |
208 | ||
1db2d764 JB |
209 | %files doc-qch |
210 | %defattr(644,root,root,755) | |
211 | %{_docdir}/qt5-doc/qtsvg.qch | |
212 | %endif | |
f5135eb6 WF |
213 | |
214 | %files examples -f examples.files | |
1db2d764 JB |
215 | %defattr(644,root,root,755) |
216 | # XXX: dir shared with qt5-qtbase-examples | |
217 | %dir %{_examplesdir}/qt5 |