Blame SPECS/qt5-qtsvg.spec

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