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 v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0
15 Source0: http://download.qt.io/official_releases/qt/5.11/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
16 # Source0-md5: c7dfa4b3504105ec45f888c9012d1969
17 URL: http://www.qt.io/
18 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
19 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
20 BuildRequires: Qt5OpenGL-devel >= %{qtbase_ver}
21 BuildRequires: Qt5Widgets-devel >= %{qtbase_ver}
22 BuildRequires: Qt5Xml-devel >= %{qtbase_ver}
24 BuildRequires: qt5-assistant >= %{qttools_ver}
26 BuildRequires: qt5-build >= %{qtbase_ver}
27 BuildRequires: qt5-qmake >= %{qtbase_ver}
28 BuildRequires: rpmbuild(macros) >= 1.654
29 BuildRequires: tar >= 1:1.22
31 BuildRequires: zlib-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define specflags -fno-strict-aliasing
35 %define qt5dir %{_libdir}/qt5
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.
42 This package contains Qt5 Svg library.
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
50 Ten pakiet zawiera bibliotekę Qt5 Svg.
53 Summary: The Qt5 Svg library
54 Summary(pl.UTF-8): Biblioteka Qt5 Svg
56 Requires: Qt5Core >= %{qtbase_ver}
57 Requires: Qt5Gui >= %{qtbase_ver}
58 Requires: Qt5Widgets >= %{qtbase_ver}
61 %description -n Qt5Svg
62 Qt5 Svg library provides functionality for handling SVG images.
64 %description -n Qt5Svg -l pl.UTF-8
65 Biblioteka Qt5 Svg udostępnia obsługę obrazów SVG.
67 %package -n Qt5Svg-devel
68 Summary: Qt5 Svg library - development files
69 Summary(pl.UTF-8): Biblioteka Qt5 Svg - pliki programistyczne
70 Group: X11/Development/Libraries
71 Requires: OpenGL-devel
72 Requires: Qt5Core-devel >= %{qtbase_ver}
73 Requires: Qt5Gui-devel >= %{qtbase_ver}
74 Requires: Qt5Svg = %{version}-%{release}
75 Requires: Qt5Widgets-devel >= %{qtbase_ver}
77 Obsoletes: qt5-qtsvg-devel
79 %description -n Qt5Svg-devel
80 Qt5 Svg library - development files.
82 %description -n Qt5Svg-devel -l pl.UTF-8
83 Biblioteka Qt5 Svg - pliki programistyczne.
86 Summary: Qt5 Svg documentation in HTML format
87 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie HTML
89 Requires: qt5-doc-common >= %{qtbase_ver}
90 %if "%{_rpmversion}" >= "5"
95 Qt5 Svg documentation in HTML format.
97 %description doc -l pl.UTF-8
98 Dokumentacja do biblioteki Qt5 Svg w formacie HTML.
101 Summary: Qt5 Svg documentation in QCH format
102 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Svg w formacie QCH
104 Requires: qt5-doc-common >= %{qtbase_ver}
105 %if "%{_rpmversion}" >= "5"
110 Qt5 Svg documentation in QCH format.
112 %description doc-qch -l pl.UTF-8
113 Dokumentacja do biblioteki Qt5 Svg w formacie QCH.
116 Summary: Qt5 Svg examples
117 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Svg
118 Group: X11/Development/Libraries
119 %if "%{_rpmversion}" >= "5"
123 %description examples
126 %description examples -l pl.UTF-8
127 Przykłady do biblioteki Qt5 Svg.
130 %setup -q -n %{orgname}-everywhere-src-%{version}
135 %{?with_doc:%{__make} docs}
138 rm -rf $RPM_BUILD_ROOT
140 INSTALL_ROOT=$RPM_BUILD_ROOT
143 %{__make} install_docs \
144 INSTALL_ROOT=$RPM_BUILD_ROOT
148 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
149 # actually drop *.la, follow policy of not packaging them when *.pc exist
150 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
152 # Prepare some files list
154 r="$RPM_BUILD_ROOT$2"
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
162 echo "Error generation $1 files list!"
163 echo "$r: no such file or directory!"
169 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
174 echo "%defattr(644,root,root,755)" > examples.files
175 ifecho_tree examples %{_examplesdir}/qt5/svg
178 rm -rf $RPM_BUILD_ROOT
180 %post -n Qt5Svg -p /sbin/ldconfig
181 %postun -n Qt5Svg -p /sbin/ldconfig
184 %defattr(644,root,root,755)
185 %doc LGPL_EXCEPTION.txt dist/changes-*
186 %attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*.*
187 %attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.5
188 %attr(755,root,root) %{qt5dir}/plugins/iconengines/libqsvgicon.so
189 %attr(755,root,root) %{qt5dir}/plugins/imageformats/libqsvg.so
191 %files -n Qt5Svg-devel
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_libdir}/libQt5Svg.so
194 %{_libdir}/libQt5Svg.prl
195 %{_includedir}/qt5/QtSvg
196 %{_pkgconfigdir}/Qt5Svg.pc
197 %dir %{_libdir}/cmake/Qt5Svg
198 %{_libdir}/cmake/Qt5Svg/Qt5SvgConfig*.cmake
199 %{_libdir}/cmake/Qt5Svg/Qt5Svg_QSvgIconPlugin.cmake
200 %{_libdir}/cmake/Qt5Svg/Qt5Svg_QSvgPlugin.cmake
201 %{qt5dir}/mkspecs/modules/qt_lib_svg.pri
202 %{qt5dir}/mkspecs/modules/qt_lib_svg_private.pri
206 %defattr(644,root,root,755)
207 %{_docdir}/qt5-doc/qtsvg
210 %defattr(644,root,root,755)
211 %{_docdir}/qt5-doc/qtsvg.qch
214 %files examples -f examples.files
215 %defattr(644,root,root,755)
216 # XXX: dir shared with qt5-qtbase-examples
217 %dir %{_examplesdir}/qt5