commit 9583d9b1c40d57a650ca511e0122dfe26c205f82 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:56:14 2019 +0800 Package init diff --git a/qt5-qtsvg.spec b/qt5-qtsvg.spec new file mode 100644 index 0000000..fdfbad2 --- /dev/null +++ b/qt5-qtsvg.spec @@ -0,0 +1,64 @@ +Name: qt5-qtsvg +Version: 5.11.1 +Release: 3 +Summary: Qt GUI toolkit for rendering and displaying SVG +License: LGPLv2 with exceptions or GPLv3 with exceptions +Url: http://www.qt.io +Source0: https://download.qt.io/official_releases/qt/5.11/%{version}/submodules/qtsvg-everywhere-src-%{version}.tar.xz +Patch0001: qtsvg-opensource-src-5.6.0-beta1-example-install.patch +BuildRequires: qt5-qtbase-devel >= %{version} pkgconfig(zlib) qt5-qtbase-private-devel +%{?_qt5:Requires: %{_qt5} = %{_qt5_version}} + +%description +The Qt SVG module provides functionality for displaying SVG images in +widget, and to create SVG files using drawing commands. + +%package devel +Summary: Library and header files of libdwarf for qt5-qtsvg +Requires: %{name} = %{version}-%{release} qt5-qtbase-devel +Provides: %{name}-examples = %{version}-%{release} +Obsoletes: %{name}-examples < %{version}-%{release} + +%description devel +qt5-qtsvg-devel provides libraries and header files for qt5-qtsvg. + +%prep +%autosetup -n qtsvg-everywhere-src-%{version} -p1 + +%build +%{qmake_qt5} + +%make_build + +%install +make install INSTALL_ROOT=%{buildroot} + +pushd %{buildroot}%{_qt5_libdir} +for prl_file in libQt5*.prl ; do + sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} + if [ -f "$(basename ${prl_file} .prl).so" ]; then + rm -fv "$(basename ${prl_file} .prl).la" + sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} + fi +done +popd + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license LICENSE.* +%dir %{_qt5_libdir}/cmake/Qt5Svg/ +%{_qt5_libdir}/{libQt5Svg.so.5*,cmake/Qt5Svg/Qt5Svg_*Plugin.cmake} +%{_qt5_plugindir}/{iconengines/libqsvgicon.so,imageformats/libqsvg.so} + +%files devel +%{_qt5_examplesdir}/ +%{_qt5_headerdir}/QtSvg/ +%{_qt5_libdir}/cmake/Qt5Svg/Qt5SvgConfig*.cmake +%{_qt5_libdir}/{libQt5Svg.so,libQt5Svg.prl,pkgconfig/Qt5Svg.pc} +%{_qt5_archdatadir}/mkspecs/modules/qt_lib_svg*.pri + +%changelog +* Thu Nov 07 2019 yanzhihua - 5.11.1-3 +- Package init diff --git a/qtsvg-everywhere-src-5.11.1.tar.xz b/qtsvg-everywhere-src-5.11.1.tar.xz new file mode 100644 index 0000000..9d71de0 Binary files /dev/null and b/qtsvg-everywhere-src-5.11.1.tar.xz differ diff --git a/qtsvg-opensource-src-5.6.0-beta1-example-install.patch b/qtsvg-opensource-src-5.6.0-beta1-example-install.patch new file mode 100644 index 0000000..d2eb649 --- /dev/null +++ b/qtsvg-opensource-src-5.6.0-beta1-example-install.patch @@ -0,0 +1,12 @@ +diff --git a/examples/svg/richtext/textobject/textobject.pro b/examples/svg/richtext/textobject/textobject.pro +index 8892ae7..f9ec7c6 100644 +--- a/examples/svg/richtext/textobject/textobject.pro ++++ b/examples/svg/richtext/textobject/textobject.pro +@@ -14,6 +14,6 @@ INSTALLS += target + + wince*{ + filesToDeploy.files = files/*.svg +- filesToDeploy.path = files ++ filesToDeploy.path = $$[QT_INSTALL_EXAMPLES]/svg/richtext/textobject/files + DEPLOYMENT += filesToDeploy + }