!1 Init package

From: @misaka00251 
Reviewed-by: @panchenbo 
Signed-off-by: @panchenbo
This commit is contained in:
openeuler-ci-bot 2022-10-11 05:21:42 +00:00 committed by Gitee
commit 92e7100a41
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 78 additions and 0 deletions

74
kf5-kxmlrpcclient.spec Normal file
View File

@ -0,0 +1,74 @@
%global framework kxmlrpcclient
Name: kf5-%{framework}
Version: 5.97.0
Release: 1
Summary: KDE Frameworks 5 Tier 3 library for interaction with XML RPC services
License: LGPLv2+ and BSD
URL: https://invent.kde.org/frameworks/%{framework}
%global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/portingAids/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kio-devel >= %{majmin}
BuildRequires: kf5-kwindowsystem-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel
%description
KDE Frameworks 5 Tier 3 library for interaction with XML RPC services.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-kio-devel >= %{majmin}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{framework}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang %{name} --all-name
%ldconfig_scriptlets
%files -f %{name}.lang
%doc README.md
%license LICENSES/*.txt
%{_kf5_datadir}/qlogging-categories5/%{framework}.*
%{_kf5_libdir}/libKF5XmlRpcClient.so.*
%files devel
%{_kf5_includedir}/KXmlRpcClient/
%{_kf5_libdir}/libKF5XmlRpcClient.so
%{_kf5_libdir}/cmake/KF5XmlRpcClient/
%{_kf5_archdatadir}/mkspecs/modules/qt_KXmlRpcClient.pri
%changelog
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 5.97.0-1
- Init package

4
kf5-kxmlrpcclient.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KDE/kxmlrpcclient
tag_prefix: "^v"
separator: "."

BIN
kxmlrpcclient-5.97.0.tar.xz Normal file

Binary file not shown.