diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb98dfc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qtsvg-everywhere-src-6.0.0.tar.xz diff --git a/qt6-qtsvg.spec b/qt6-qtsvg.spec new file mode 100644 index 0000000..0c94932 --- /dev/null +++ b/qt6-qtsvg.spec @@ -0,0 +1,90 @@ +%global qt_module qtsvg + +Summary: Qt6 - Support for rendering and displaying SVG +Name: qt6-%{qt_module} +Version: 6.0.0 +Release: 1%{?dist} + +# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details +License: LGPLv2 with exceptions or GPLv3 with exceptions +Url: http://www.qt.io +%global majmin %(echo %{version} | cut -d. -f1-2) +Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz + +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: qt6-qtbase-devel >= %{version} +BuildRequires: pkgconfig(zlib) +BuildRequires: pkgconfig(xkbcommon) >= 0.4.1 + +BuildRequires: qt6-qtbase-private-devel +%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} + +%description +Scalable Vector Graphics (SVG) is an XML-based language for describing +two-dimensional vector graphics. Qt provides classes for rendering and +displaying SVG drawings in widgets and on other paint devices. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: qt6-qtbase-devel%{?_isa} +%description devel +%{summary}. + +%prep +%autosetup -n %{qt_module}-everywhere-src-%{version} -p1 + + +%build +%cmake_qt6 + +%cmake_build + + +%install +%cmake_install + +## .prl/.la file love +# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs +pushd %{buildroot}%{_qt6_libdir} +for prl_file in libQt6*.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 + + +%ldconfig_scriptlets + +%files +%license LICENSE.* +%{_qt6_libdir}/libQt6Svg.so.6* +%{_qt6_libdir}/libQt6SvgWidgets.so.6* +%{_qt6_plugindir}/iconengines/libqsvgicon.so +%{_qt6_plugindir}/imageformats/libqsvg.so + +%files devel +%{_qt6_archdatadir}/mkspecs/modules/*.pri +%{_qt6_datadir}/modules/*.json +%{_qt6_headerdir}/QtSvg/ +%{_qt6_headerdir}/QtSvgWidgets/ +%{_qt6_libdir}/libQt6Svg.so +%{_qt6_libdir}/libQt6Svg.prl +%{_qt6_libdir}/libQt6SvgWidgets.so +%{_qt6_libdir}/libQt6SvgWidgets.prl +%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtSvgTestsConfig.cmake +%{_qt6_libdir}/cmake/Qt6Gui/*.cmake +%dir %{_qt6_libdir}/cmake/Qt6Svg/ +%{_qt6_libdir}/cmake/Qt6Svg/*.cmake +%dir %{_qt6_libdir}/cmake/Qt6SvgWidgets/ +%{_qt6_libdir}/cmake/Qt6SvgWidgets/*.cmake + + +%changelog +* Thu Jan 14 2021 Jan Grulich - 6.0.0 +- 6.0.0 diff --git a/sources b/sources new file mode 100644 index 0000000..dac23e1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qtsvg-everywhere-src-6.0.0.tar.xz) = 0ab31f746bb5503059a5779d7f084ada59c7a4c7d391b44e7c5ae8b38f4e762d7a67b128efb4877a1953c8896380f00336e0d918e005ea3862cbd5479a6ac86c