Package init
This commit is contained in:
commit
9583d9b1c4
64
qt5-qtsvg.spec
Normal file
64
qt5-qtsvg.spec
Normal file
@ -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 <yanzhihua4@huawei.com> - 5.11.1-3
|
||||||
|
- Package init
|
||||||
BIN
qtsvg-everywhere-src-5.11.1.tar.xz
Normal file
BIN
qtsvg-everywhere-src-5.11.1.tar.xz
Normal file
Binary file not shown.
12
qtsvg-opensource-src-5.6.0-beta1-example-install.patch
Normal file
12
qtsvg-opensource-src-5.6.0-beta1-example-install.patch
Normal file
@ -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
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user