d12347
%global qt_module qtsvg
d12347
567bdd
%global build_tests 1
567bdd
d12347
Summary: Qt5 - Support for rendering and displaying SVG
d12347
Name:    qt5-%{qt_module}
2e2b4f
Version: 5.15.3
2e2b4f
Release: 1%{?dist}
d12347
d12347
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
d12347
License: LGPLv2 with exceptions or GPLv3 with exceptions
d12347
Url:     http://www.qt.io
d12347
%global majmin %(echo %{version} | cut -d. -f1-2)
2e2b4f
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
d12347
2e2b4f
# upstream fix
2e2b4f
Patch0: qtsvg-5.15.2-clamp-parsed-doubles-to-float-representtable-values.patch
2e2b4f
Patch1: qtsvg-5.15.2-do-strict-error-checking-when-parsing-path-nodes.patch
d12347
7357da
d12347
BuildRequires: qt5-qtbase-devel >= %{version}
d12347
BuildRequires: pkgconfig(zlib)
d12347
d12347
BuildRequires: qt5-qtbase-private-devel
d12347
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
d12347
d12347
%description
d12347
Scalable Vector Graphics (SVG) is an XML-based language for describing
d12347
two-dimensional vector graphics. Qt provides classes for rendering and
d12347
displaying SVG drawings in widgets and on other paint devices.
d12347
d12347
%package devel
d12347
Summary: Development files for %{name}
d12347
Requires: %{name}%{?_isa} = %{version}-%{release}
d12347
Requires: qt5-qtbase-devel%{?_isa}
d12347
%description devel
d12347
%{summary}.
d12347
d12347
%package examples
d12347
Summary: Programming examples for %{name}
d12347
Requires: %{name}%{?_isa} = %{version}-%{release}
d12347
%description examples
d12347
%{summary}.
d12347
567bdd
%if 0%{?build_tests}
567bdd
%package tests
567bdd
Summary: Unit tests for %{name}
567bdd
Requires: %{name}%{?_isa} = %{version}-%{release}
567bdd
567bdd
%description tests
567bdd
%{summary}.
567bdd
%endif
567bdd
d12347
d12347
%prep
d12347
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
d12347
d12347
d12347
%build
d12347
%{qmake_qt5}
d12347
d12347
%make_build
d12347
567bdd
%if 0%{?build_tests}
567bdd
make sub-tests %{?_smp_mflags} -k ||:
567bdd
%endif
567bdd
d12347
d12347
%install
d12347
make install INSTALL_ROOT=%{buildroot}
d12347
567bdd
%if 0%{?build_tests}
567bdd
# Install tests for gating
567bdd
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
567bdd
find ./tests -not -path '*/\.*' -type d | while read LINE
567bdd
do
567bdd
    mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
567bdd
done
567bdd
find ./tests -not -path '*/\.*' -not -name '*.h' -not -name '*.cpp' -not -name '*.pro' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE
567bdd
do
567bdd
    cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
567bdd
done
567bdd
%endif
567bdd
567bdd
d12347
## .prl/.la file love
d12347
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
d12347
pushd %{buildroot}%{_qt5_libdir}
d12347
for prl_file in libQt5*.prl ; do
d12347
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
d12347
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
d12347
    rm -fv "$(basename ${prl_file} .prl).la"
d12347
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
d12347
  fi
d12347
done
d12347
popd
d12347
d12347
d12347
%ldconfig_scriptlets
d12347
d12347
%files
d12347
%license LICENSE.*
d12347
%{_qt5_libdir}/libQt5Svg.so.5*
d12347
%{_qt5_plugindir}/iconengines/libqsvgicon.so
d12347
%{_qt5_plugindir}/imageformats/libqsvg.so
d12347
d12347
%files devel
d12347
%{_qt5_headerdir}/QtSvg/
d12347
%{_qt5_libdir}/libQt5Svg.so
d12347
%{_qt5_libdir}/libQt5Svg.prl
5fe338
%dir %{_qt5_libdir}/cmake/Qt5Svg/
5fe338
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_QSvg*Plugin.cmake
d12347
%{_qt5_libdir}/cmake/Qt5Svg/Qt5SvgConfig*.cmake
d12347
%{_qt5_libdir}/pkgconfig/Qt5Svg.pc
d12347
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_svg*.pri
d12347
d12347
%files examples
d12347
%{_qt5_examplesdir}/
d12347
567bdd
%if 0%{?build_tests}
567bdd
%files tests
567bdd
%{_qt5_libdir}/qt5/tests
567bdd
%endif
567bdd
d12347
d12347
%changelog
2e2b4f
* Mon Mar 28 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
2e2b4f
- 5.15.3
2e2b4f
  Resolves: bz#2061405
2e2b4f
7357da
* Wed Jan 12 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.2-4
7357da
- Fix out-of-bound write that may lead to DoS
7357da
  Resolves: bz#2038487
7357da
5fe338
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-3
5fe338
- Rebuild (binutils)
5fe338
  Resolves: bz#1930055
5fe338
5fe338
* Thu Apr 08 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
5fe338
- Fix out of bounds read in function QRadialFetchSimd from crafted svg file
5fe338
  Resolves: bz#1945643
5fe338
5fe338
* Mon Apr 05 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
5fe338
- 5.15.2
5fe338
  Resolves: bz#1930055
5fe338
567bdd
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
567bdd
- 5.12.5
567bdd
  Resolves: bz#1733151
567bdd
d12347
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
d12347
- Rebuild to fix CET notes
d12347
  Resolves: bz#1657241
d12347
d12347
* Tue Jul 03 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-1
d12347
- 5.11.1
d12347
d12347
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-1
d12347
- 5.10.1
d12347
d12347
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
d12347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d12347
d12347
* Tue Dec 19 2017 Jan Grulich <jgrulich@redhat.com> - 5.10.0-1
d12347
- 5.10.0
d12347
d12347
* Thu Nov 23 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.3-1
d12347
- 5.9.3
d12347
d12347
* Mon Oct 09 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
d12347
- 5.9.2
d12347
d12347
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-3
d12347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d12347
d12347
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
d12347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d12347
d12347
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
d12347
- 5.9.1
d12347
d12347
* Fri Jun 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-3
d12347
- drop shadow/out-of-tree builds (#1456211,QTBUG-37417)
d12347
d12347
* Fri Jun 02 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
d12347
- use macros in Source0, apply examples patch, +whitespace between .spec sections
d12347
d12347
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
d12347
- Upstream official release
d12347
d12347
* Fri May 26 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.1.rc
d12347
- Upstream Release Candidate retagged
d12347
d12347
* Wed May 24 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.rc.1
d12347
- Upstream Release Candidate 1
d12347
d12347
* Fri May 05 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
d12347
- New upstream beta3 release
d12347
d12347
* Sun Apr 16 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.1
d12347
- New upstream beta release
d12347
d12347
* Mon Apr 03 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.8.0-2
d12347
- build -doc unconditionally
d12347
d12347
* Mon Jan 30 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
d12347
- New upstream version
d12347
d12347
* Sat Dec 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
d12347
- 5.7.1 dec5 snapshot
d12347
- drop BR: cmake (handled by qt5-rpm-macros now)
d12347
- BR: qt5-qtbase-private-devel
d12347
d12347
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
d12347
- New upstream version
d12347
d12347
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
d12347
- Compiled with gcc
d12347
d12347
* Tue Jun 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
d12347
- Qt 5.7.0 release
d12347
d12347
* Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
d12347
- Update to 5.6.1
d12347
d12347
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
d12347
- rebuild
d12347
d12347
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
d12347
- rebuild
d12347
d12347
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
d12347
- 5.6.0 final release
d12347
d12347
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
d12347
- Update to final RC
d12347
d12347
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
d12347
- Update RC release
d12347
d12347
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.beta3
d12347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d12347
d12347
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.beta3
d12347
- update source URL, BR: cmake, use %%license
d12347
d12347
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
d12347
- Update to final beta3 release
d12347
d12347
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
d12347
- Official beta3 release
d12347
d12347
* Mon Dec 07 2015 Jan Grulich <jgrulich@redhat.com> - 5.6.0-0.2
d12347
- (re)add bootstrap macro support
d12347
d12347
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
d12347
- Start to implement 5.6.0 beta3
d12347
d12347
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
d12347
- Update to final release 5.5.1
d12347
d12347
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
d12347
- Update to Qt 5.5.1 RC1
d12347
d12347
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
d12347
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
d12347
d12347
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
d12347
- tighten qtbase dep (#1233829)
d12347
d12347
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
d12347
- New final upstream release Qt 5.5.0
d12347
d12347
* Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
d12347
- Update for official RC1 released packages
d12347
d12347
* Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
d12347
- Qt 5.5.0 RC1
d12347
d12347
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
d12347
- 5.4.2
d12347
d12347
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
d12347
- Rebuilt for GCC 5 C++11 ABI change
d12347
d12347
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
d12347
- rebuild (gcc5)
d12347
d12347
* Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
d12347
- 5.4.1
d12347
d12347
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
d12347
- 5.4.0 (final)
d12347
d12347
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
d12347
- 5.4.0-rc
d12347
d12347
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta3
d12347
- out-of-tree build, use %%qmake_qt5
d12347
d12347
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta3
d12347
- 5.4.0-beta3
d12347
d12347
* Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
d12347
- 5.3.2
d12347
d12347
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
d12347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d12347
d12347
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
d12347
- 5.3.1
d12347
d12347
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
d12347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d12347
d12347
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
d12347
- 5.3.0
d12347
d12347
* Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
d12347
- use standard (same as qtbase) .prl sanitation
d12347
d12347
* Thu Feb 06 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
d12347
- 5.2.1
d12347
d12347
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
d12347
- -examples subpkg
d12347
d12347
* Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
d12347
- 5.2.0
d12347
d12347
* Fri Dec 06 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.11.rc1
d12347
- rebuild
d12347
d12347
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
d12347
- 5.2.0-rc1
d12347
d12347
* Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta31
d12347
- rebuild (arm/qreal)
d12347
d12347
* Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta31
d12347
- 5.2.0-beta31
d12347
d12347
* Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
d12347
- ppc bootstrap
d12347
d12347
* Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
d12347
- 5.2.0-alpha
d12347
- -doc subpkg
d12347
d12347
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
d12347
- 5.1.1
d12347
d12347
* Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
d12347
- 5.0.2
d12347
d12347
* Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
d12347
- first try
d12347