Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
d203186ba7
!12 [sync] PR-11: update to version 5.15.10-1
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-08-30 09:50:49 +00:00
huayadong
0e5d9138ff update to version 5.15.10-1
(cherry picked from commit d239634c2b46d51ad76d35fd88026d31c07bbe7c)
2023-08-24 18:56:50 +08:00
openeuler-ci-bot
943d5e8a29
!9 update to upstream version 5.15.2
Merge pull request !9 from pei-jiankang/master
2022-01-10 06:00:53 +00:00
pei-jiankang
ed68b8bf46 update to upstream version 5.15.2 2022-01-07 14:28:34 +08:00
openeuler-ci-bot
112462b15a !6 Fix Source0
From: @kkkl12
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-14 20:17:31 +08:00
kkkl12
2aae783b2f Fix Source0 2020-09-14 16:11:41 +08:00
openeuler-ci-bot
1125fbf6ca !5 add yaml file
Merge pull request !5 from sugarfillet/master
2020-05-21 10:34:05 +08:00
sugarfillet
be401373b7 add yaml file 2020-05-08 16:00:47 +08:00
openeuler-ci-bot
9a2a01fd46 !4 Add %{version}-%{release}
Merge pull request !4 from bingo2008/bingo2008
2020-02-27 14:06:08 +08:00
bingo2008
cc8be8efe0 Add %{version}-%{release} 2020-02-26 17:50:42 +08:00
4 changed files with 83 additions and 41 deletions

View File

@ -1,26 +1,48 @@
Name: qt5-qtxmlpatterns
Version: 5.11.1
Release: 4
Summary: Provide support for XQuery, XPath, etc
%global qt_module qtxmlpatterns
License: LGPLv2 with exceptions or GPLv3 with exceptions
#global bootstrap 1
Summary: Qt5 - QtXmlPatterns component
Name: qt5-%{qt_module}
Version: 5.15.10
Release: 1
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Url: http://www.qt.io
Source0: https://download.qt.io/archive/qt/5.11/5.11.1/submodules/qtxmlpatterns-everywhere-src-5.11.1.tar.xz
%global majmin %(echo %{version} | cut -d. -f1-2)
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
BuildRequires: qt5-qtbase-devel >= %{version} qt5-qtbase-private-devel
BuildRequires: make
BuildRequires: qt5-qtbase-devel >= %{version}
BuildRequires: qt5-qtbase-private-devel
#libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit)
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
%if 0%{?bootstrap}
Obsoletes: %{name}-examples < %{version}-%{release}
%global no_examples CONFIG-=compile_examples
%else
BuildRequires: qt5-qtdeclarative-devel
%global qml 1
%endif
%description
This package is qt5-qtxmlpatterns component. It provides support for XQuery, XPath, etc.
The Qt XML Patterns module provides support for XPath, XQuery, XSLT,
and XML Schema validation.
%package devel
Summary: Programming examples and libraries for qt5-qtxmlpatterns development
Requires: %{name} = %{version}-%{release} qt5-qtbase-devel
Provides: qt5-qtxmlpatterns-examples
Obsoletes: qt5-qtxmlpatterns-examples
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel%{?_isa}
%description devel
This package contains the programming examples and libraries for qt5-qtxmlpatterns development.
%{summary}.
%package examples
Summary: Programming examples for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description examples
%{summary}.
%prep
%autosetup -n qtxmlpatterns-everywhere-src-%{version} -p1
@ -33,53 +55,69 @@ This package contains the programming examples and libraries for qt5-qtxmlpatter
%make_install INSTALL_ROOT=%{buildroot}
mkdir %{buildroot}%{_bindir}
cd %{buildroot}%{_qt5_bindir}
for i in *
do
if [ ${i} = "xmlpatterns" ]
then
ln ${i} %{buildroot}%{_bindir}/${i}-qt5
ln -s ${i} ${i}-qt5
elif [ ${i} = "xmlpatternsvalidator" ]
then
ln ${i} %{buildroot}%{_bindir}/${i}-qt5
ln -s ${i} ${i}-qt5
else
ln ${i} %{buildroot}%{_bindir}/${i}
fi
pushd %{buildroot}%{_qt5_bindir}
for i in * ; do
case "${i}" in
xmlpatterns|xmlpatternsvalidator)
ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
ln -sv ${i} ${i}-qt5
;;
*)
ln -v ${i} %{buildroot}%{_bindir}/${i}
;;
esac
done
cd -
popd
cd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl
do
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
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
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
cd -
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%license LICENSE.LGPL*
%{_qt5_libdir}/libQt5*.*
%{_qt5_libdir}/libQt5XmlPatterns.so.5*
# consider subpkg to make boostrapping easier? -- rex
%if 0%{?qml}
%{_qt5_archdatadir}/qml/QtQuick/XmlListModel/
%endif
%files devel
%{_qt5_bindir}/xmlpatterns*
%{_bindir}/xmlpatterns*
%{_qt5_headerdir}/Qt*/
%{_qt5_libdir}/libQt5*.so
%{_qt5_libdir}/libQt5*.prl
%{_qt5_libdir}/cmake/Qt5*/
%{_qt5_libdir}/pkgconfig/Qt5*.pc
%{_qt5_archdatadir}/mkspecs/modules/*.pri
%if !0%{?no_examples:1}
%files examples
%{_qt5_examplesdir}/
%endif
%changelog
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 5.15.10-1
- update to version 5.15.10-1
* Wed Oct 13 2021 peijiankang <peijiankang@kylinos.cn> - 5.15.2-1
- update to upstream version 5.15.2
* Mon Sep 14 2020 liuweibo <liuweibo10@huawei.com> - 5.11.1-5
- Fix Source0
* Mon Oct 28 2019 dongjian <dongjian13@huawei.com> - 5.11.1-4
- Package init

4
qt5-qtxmlpatterns.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://code.qt.io/qt/qtxmlpatterns.git
tag_prefix: "^v"
separator: "."

Binary file not shown.