3 %bcond_without doc # Documentation
6 %define qtbase_ver %{version}
7 %define qttools_ver %{version}
8 Summary: The Qt5 Svg library
9 Summary(pl.UTF-8): Biblioteka Qt5 Svg
13 License: LGPL v3 or GPL v2 or GPL v3 or comercial
15 Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
16 # Source0-md5: c0f5c1c2cc1b66e56ce4ef13a2b7093a
17 URL: https://www.qt.io/
18 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
19 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
20 BuildRequires: Qt5Widgets-devel >= %{qtbase_ver}
22 BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver}
24 BuildRequires: Qt5Xml-devel >= %{qtbase_ver}
26 BuildRequires: qt5-assistant >= %{qttools_ver}
28 BuildRequires: qt5-build >= %{qtbase_ver}
29 BuildRequires: qt5-qmake >= %{qtbase_ver}
30 BuildRequires: rpmbuild(macros) >= 1.752
31 BuildRequires: tar >= 1:1.22
33 BuildRequires: zlib-devel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define specflags -fno-strict-aliasing
37 %define qt5dir %{_libdir}/qt5
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.
44 This package contains Qt5 Svg library.
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
52 Ten pakiet zawiera bibliotekę Qt5 Svg.
55 Summary: The Qt5 Svg library
56 Summary(pl.UTF-8): Biblioteka Qt5 Svg
58 Requires: Qt5Core >= %{qtbase_ver}
59 Requires: Qt5Gui >= %{qtbase_ver}
60 Requires: Qt5Widgets >= %{qtbase_ver}
61 Obsoletes: qt5-qtsvg < 5.3.0
63 %description -n Qt5Svg
64 Qt5 Svg library provides functionality for handling SVG images.
66 %description -n Qt5Svg -l pl.UTF-8
67 Biblioteka Qt5 Svg udostępnia obsługę obrazów SVG.
69 %package -n Qt5Svg-devel
70 Summary: Qt5 Svg library - development files
71 Summary(pl.UTF-8): Biblioteka Qt5 Svg - pliki programistyczne
72 Group: X11/Development/Libraries
73 Requires: Qt5Core-devel >= %{qtbase_ver}
74 Requires: Qt5Gui-devel >= %{qtbase_ver}
75 Requires: Qt5Svg = %{version}-%{release}
76 Requires: Qt5Widgets-devel >= %{qtbase_ver}
78 Obsoletes: qt5-qtsvg-devel < 5.3.0
80 %description -n Qt5Svg-devel
81 Qt5 Svg library - development files.
83 %description -n Qt5Svg-devel -l pl.UTF-8
84 Biblioteka Qt5 Svg - pliki programistyczne.
87 Summary: Qt5 Svg documentation in HTML format
88 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie HTML
90 Requires: qt5-doc-common >= %{qtbase_ver}
94 Qt5 Svg documentation in HTML format.
96 %description doc -l pl.UTF-8
97 Dokumentacja do biblioteki Qt5 Svg w formacie HTML.
100 Summary: Qt5 Svg documentation in QCH format
101 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie QCH
103 Requires: qt5-doc-common >= %{qtbase_ver}
107 Qt5 Svg documentation in QCH format.
109 %description doc-qch -l pl.UTF-8
110 Dokumentacja do biblioteki Qt5 Svg w formacie QCH.
113 Summary: Qt5 Svg examples
114 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Svg
115 Group: X11/Development/Libraries
118 %description examples
121 %description examples -l pl.UTF-8
122 Przykłady do biblioteki Qt5 Svg.
125 %setup -q -n %{orgname}-everywhere-src-%{version}
130 %{?with_doc:%{__make} docs}
133 rm -rf $RPM_BUILD_ROOT
136 INSTALL_ROOT=$RPM_BUILD_ROOT
139 %{__make} install_docs \
140 INSTALL_ROOT=$RPM_BUILD_ROOT
144 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
145 # actually drop *.la, follow policy of not packaging them when *.pc exist
146 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
148 # Prepare some files list
150 r="$RPM_BUILD_ROOT$2"
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
158 echo "Error generation $1 files list!"
159 echo "$r: no such file or directory!"
165 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
170 echo "%defattr(644,root,root,755)" > examples.files
171 ifecho_tree examples %{_examplesdir}/qt5/svg
174 rm -rf $RPM_BUILD_ROOT
176 %post -n Qt5Svg -p /sbin/ldconfig
177 %postun -n Qt5Svg -p /sbin/ldconfig
180 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*.*
183 %attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.5
185 %attr(755,root,root) %{qt5dir}/plugins/iconengines/libqsvgicon.so
187 %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqsvg.so
189 %files -n Qt5Svg-devel
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/libQt5Svg.so
192 %{_libdir}/libQt5Svg.prl
193 %{_includedir}/qt5/QtSvg
194 %{_pkgconfigdir}/Qt5Svg.pc
195 %dir %{_libdir}/cmake/Qt5Svg
196 %{_libdir}/cmake/Qt5Svg/Qt5SvgConfig*.cmake
197 %{_libdir}/cmake/Qt5Gui/Qt5Gui_QSvgIconPlugin.cmake
198 %{_libdir}/cmake/Qt5Gui/Qt5Gui_QSvgPlugin.cmake
199 %{qt5dir}/mkspecs/modules/qt_lib_svg.pri
200 %{qt5dir}/mkspecs/modules/qt_lib_svg_private.pri
204 %defattr(644,root,root,755)
205 %{_docdir}/qt5-doc/qtsvg
208 %defattr(644,root,root,755)
209 %{_docdir}/qt5-doc/qtsvg.qch
212 %files examples -f examples.files
213 %defattr(644,root,root,755)
214 # XXX: dir shared with qt5-qtbase-examples
215 %dir %{_examplesdir}/qt5