9 License: LGPL v2.1 or GPL v3.0
11 Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
12 # Source0-md5: 3f6132475f6edcd7b6cfb57650846185
13 URL: http://qt-project.org/
14 BuildRequires: qt5-qtbase-devel = %{version}
15 BuildRequires: qt5-qttools-devel = %{version}
16 BuildRequires: rpmbuild(macros) >= 1.654
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _noautoreqdep libGL.so.1 libGLU.so.1
20 %define _noautostrip '.*_debug\\.so*'
22 %define specflags -fno-strict-aliasing
23 %define _qtdir %{_libdir}/qt5
29 Summary: The Qt5 Svg - development files
30 Group: X11/Development/Libraries
31 Requires: %{name} = %{version}-%{release}
34 Qt5 Svg - development files.
37 Summary: The Qt5 Svg - docs
41 Qt5 Svg - documentation.
44 Summary: Qt5 Svg examples
45 Group: X11/Development/Libraries
51 %setup -q -n %{orgname}-opensource-src-%{version}
59 rm -rf $RPM_BUILD_ROOT
61 INSTALL_ROOT=$RPM_BUILD_ROOT
63 %{__make} install_docs \
64 INSTALL_ROOT=$RPM_BUILD_ROOT
66 # Prepare some files list
68 RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
69 [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set
70 r=`echo $RESULT | awk '{ print $1 }'`
73 echo "%%dir $2" >> $1.files
74 elif [ -x "$r" ] ; then
75 echo "%%attr(755,root,root) $2" >> $1.files
76 elif [ -f "$r" ]; then
79 echo "Error generation $1 files list!"
80 echo "$r: no such file or directory!"
85 echo "%defattr(644,root,root,755)" > examples.files
86 ifecho examples %{_examplesdir}/qt5
87 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt5 -printf "%%P "`; do
88 ifecho examples %{_examplesdir}/qt5/$f
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.?
100 %attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*
101 %attr(755,root,root) %{_qtdir}/plugins
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libQt5Svg.so
106 %{_libdir}/libQt5Svg.la
107 %{_libdir}/libQt5Svg.prl
108 %{_libdir}/cmake/Qt5Gui
109 %{_libdir}/cmake/Qt5Svg
110 %{_includedir}/qt5/QtSvg
111 %{_pkgconfigdir}/*.pc
115 %defattr(644,root,root,755)
118 %files examples -f examples.files