From 2a8eafa21756e88e13b562cf12d9fb04abd91a74 Mon Sep 17 00:00:00 2001 From: sugarfillet <18705174754@163.com> Date: Fri, 8 May 2020 15:59:37 +0800 Subject: [PATCH 1/3] add yaml file --- qt5-qtsvg.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 qt5-qtsvg.yaml diff --git a/qt5-qtsvg.yaml b/qt5-qtsvg.yaml new file mode 100644 index 0000000..8c797f1 --- /dev/null +++ b/qt5-qtsvg.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://code.qt.io/qt/qtsvg.git +tag_prefix: ^v +seperator: . From 8bc6afc420f5feed707c3a1bcf451e24153380d2 Mon Sep 17 00:00:00 2001 From: kkkl12 <1604145060@qq.com> Date: Mon, 14 Sep 2020 15:14:59 +0800 Subject: [PATCH 2/3] Fix Source0 --- qt5-qtsvg.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qt5-qtsvg.spec b/qt5-qtsvg.spec index 36e5a14..ec6a72e 100644 --- a/qt5-qtsvg.spec +++ b/qt5-qtsvg.spec @@ -1,10 +1,10 @@ Name: qt5-qtsvg Version: 5.11.1 -Release: 4 +Release: 5 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/archive/qt/5.11/%{version}/submodules/qtsvg-everywhere-src-%{version}.tar.xz +Source0: https://download.qt.io/new_archive/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}} @@ -60,6 +60,9 @@ popd %{_qt5_archdatadir}/mkspecs/modules/qt_lib_svg*.pri %changelog +* Mon Sep 14 2020 liuweibo - 5.11.1-5 +- Fix Source0 + * Fri Jan 10 2020 zhouyihang - 5.11.1-4 - change the source to valid address From 10fde6735310ade7fca2ed0950e75cbf2d8e19e0 Mon Sep 17 00:00:00 2001 From: liuxinhao Date: Wed, 8 Dec 2021 11:32:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=A7=A3=E6=9E=90svg=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=97=B6,=E5=85=81=E8=AE=B8=E4=B8=8D=E5=B8=A6=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E7=9A=84", ++ "", ++ }; ++ const int COUNT = sizeof(svgs) / sizeof(svgs[0]); ++ QImage images[COUNT]; ++ QPainter p; ++ ++ for (int i = 0; i < COUNT; ++i) { ++ QByteArray data(svgs[i]); ++ QSvgRenderer renderer(data); ++ images[i] = QImage(50, 50, QImage::Format_ARGB32_Premultiplied); ++ images[i].fill(-1); ++ p.begin(&images[i]); ++ renderer.render(&p); ++ p.end(); ++ } ++ QCOMPARE(images[0], images[1]); ++} ++ + QTEST_MAIN(tst_QSvgRenderer) + #include "tst_qsvgrenderer.moc" +-- +2.18.1 + diff --git a/qt5-qtsvg.spec b/qt5-qtsvg.spec index ec6a72e..f24a280 100644 --- a/qt5-qtsvg.spec +++ b/qt5-qtsvg.spec @@ -1,11 +1,12 @@ Name: qt5-qtsvg Version: 5.11.1 -Release: 5 +Release: 6 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/new_archive/qt/5.11/%{version}/submodules/qtsvg-everywhere-src-%{version}.tar.xz Patch0001: qtsvg-opensource-src-5.6.0-beta1-example-install.patch +Patch0002: 0001-Allow-style-without-type-attribute.patch BuildRequires: qt5-qtbase-devel >= %{version} pkgconfig(zlib) qt5-qtbase-private-devel %{?_qt5:Requires: %{_qt5} = %{_qt5_version}} @@ -60,6 +61,9 @@ popd %{_qt5_archdatadir}/mkspecs/modules/qt_lib_svg*.pri %changelog +* Wed Dec 08 2021 liuxinhao - 5.11.1-6 +- Allow style without type attribute + * Mon Sep 14 2020 liuweibo - 5.11.1-5 - Fix Source0