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 BuildRequires: tar >= 1:1.22
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _noautoreqdep libGL.so.1 libGLU.so.1
22 %define _noautostrip '.*_debug\\.so*'
24 %define specflags -fno-strict-aliasing
25 %define _qtdir %{_libdir}/qt5
31 Summary: The Qt5 Svg - development files
32 Group: X11/Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Qt5 Svg - development files.
39 Summary: The Qt5 Svg - docs
41 %if "%{_rpmversion}" >= "5"
46 Qt5 Svg - documentation.
49 Summary: Qt5 Svg examples
50 Group: X11/Development/Libraries
51 %if "%{_rpmversion}" >= "5"
59 %setup -q -n %{orgname}-opensource-src-%{version}
67 rm -rf $RPM_BUILD_ROOT
69 INSTALL_ROOT=$RPM_BUILD_ROOT
71 %{__make} install_docs \
72 INSTALL_ROOT=$RPM_BUILD_ROOT
74 # Prepare some files list
76 RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
77 [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set
78 r=`echo $RESULT | awk '{ print $1 }'`
81 echo "%%dir $2" >> $1.files
82 elif [ -x "$r" ] ; then
83 echo "%%attr(755,root,root) $2" >> $1.files
84 elif [ -f "$r" ]; then
87 echo "Error generation $1 files list!"
88 echo "$r: no such file or directory!"
93 echo "%defattr(644,root,root,755)" > examples.files
94 ifecho examples %{_examplesdir}/qt5
95 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt5 -printf "%%P "`; do
96 ifecho examples %{_examplesdir}/qt5/$f
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.?
108 %attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*
109 %attr(755,root,root) %{_qtdir}/plugins
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libQt5Svg.so
114 %{_libdir}/libQt5Svg.la
115 %{_libdir}/libQt5Svg.prl
116 %{_libdir}/cmake/Qt5Gui
117 %{_libdir}/cmake/Qt5Svg
118 %{_includedir}/qt5/QtSvg
119 %{_pkgconfigdir}/*.pc
123 %defattr(644,root,root,755)
126 %files examples -f examples.files