!2 Init Package for openEuler
From: @peijiankang Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
927fb9f89b
106
kf5-libkleo.spec
Normal file
106
kf5-libkleo.spec
Normal file
@ -0,0 +1,106 @@
|
||||
%global framework libkleo
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 22.12.0
|
||||
Release: 1
|
||||
Summary: KDE PIM cryptographic library
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://invent.kde.org/frameworks/%{framework}/
|
||||
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{framework}-%{version}.tar.xz
|
||||
|
||||
|
||||
BuildRequires: boost-devel
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
|
||||
BuildRequires: qt-gpgme
|
||||
BuildRequires: qgpgme-devel
|
||||
# workaround gpgmepp-devel missing Requires: libassuan-devel for now
|
||||
BuildRequires: libassuan-devel
|
||||
# kf5
|
||||
BuildRequires: extra-cmake-modules >= 5.19.0
|
||||
BuildRequires: kf5-rpm-macros >= 5.19.0
|
||||
BuildRequires: cmake(KF5Codecs)
|
||||
BuildRequires: cmake(KF5Completion)
|
||||
BuildRequires: cmake(KF5ConfigWidgets)
|
||||
BuildRequires: cmake(KF5Config)
|
||||
BuildRequires: cmake(KF5CoreAddons)
|
||||
BuildRequires: cmake(KF5CoreAddons)
|
||||
BuildRequires: cmake(KF5I18n)
|
||||
BuildRequires: cmake(KF5ItemModels)
|
||||
BuildRequires: cmake(KF5WidgetsAddons)
|
||||
BuildRequires: cmake(KF5WindowSystem)
|
||||
# kde-apps
|
||||
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
||||
BuildRequires: kf5-kpimtextedit-devel >= %{majmin_ver}
|
||||
|
||||
Obsoletes: kdepim-libs < 7:16.04.0
|
||||
|
||||
# gpg support ui
|
||||
%if 0%{?fedora} < 26 && 0%{?rhel} < 8
|
||||
Requires: pinentry-gui
|
||||
%else
|
||||
Recommends: pinentry-gui
|
||||
%endif
|
||||
|
||||
# translations moved here
|
||||
Conflicts: kde-l10n < 17.03
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
# INTERFACE_LINK_LIBRARIES "QGpgme;Gpgmepp"
|
||||
Requires: cmake(Gpgmepp)
|
||||
Requires: cmake(QGpgme)
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
%cmake_kf5
|
||||
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%find_lang %{name} --all-name --with-html
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license LICENSES/*
|
||||
%{_kf5_sysconfdir}/xdg/libkleopatrarc
|
||||
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
|
||||
%{_kf5_libdir}/libKF5Libkleo.so.*
|
||||
%{_kf5_datadir}/libkleopatra/
|
||||
|
||||
%files devel
|
||||
%{_kf5_libdir}/libKF5Libkleo.so
|
||||
%{_kf5_libdir}/cmake/KF5Libkleo/
|
||||
%{_kf5_includedir}/Libkleo/
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_Libkleo.pri
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Apr 26 2023 peijiankang <peijiankang@kylinos.cn> - 22.12.0-1
|
||||
- 22.12.0
|
||||
|
||||
BIN
libkleo-22.12.0.tar.xz
Normal file
BIN
libkleo-22.12.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user