Init package
This commit is contained in:
parent
98aef4cd6e
commit
e5561bbd17
107
kf5-libksieve.spec
Normal file
107
kf5-libksieve.spec
Normal file
@ -0,0 +1,107 @@
|
||||
%global framework libksieve
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 22.12.0
|
||||
Release: 1
|
||||
Summary: Sieve support library
|
||||
|
||||
License: GPLv2
|
||||
URL: https://invent.kde.org/pim/%{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
|
||||
|
||||
# handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches
|
||||
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qttools-static
|
||||
BuildRequires: qt5-qtwebengine-devel
|
||||
|
||||
%global kf5_ver 5.23.0
|
||||
|
||||
BuildRequires: extra-cmake-modules >= %{kf5_ver}
|
||||
BuildRequires: kf5-rpm-macros >= %{kf5_ver}
|
||||
BuildRequires: kf5-karchive-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kconfig-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-ki18n-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kiconthemes-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-knewstuff-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-ktextwidgets-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kwidgetsaddons-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kwindowsystem-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-syntax-highlighting-devel >= %{kf5_ver}
|
||||
|
||||
#global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
||||
%global majmin_ver %{version}
|
||||
|
||||
BuildRequires: kf5-akonadi-contacts-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kcalendarcore-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kidentitymanagement-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kmailtransport-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kmime-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kpimtextedit-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-libkdepim-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-pimcommon-devel >= %{majmin_ver}
|
||||
|
||||
Obsoletes: kdepim-libs < 7:16.04.0
|
||||
Conflicts: kdepim-libs < 7:16.04.0
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: cmake(KF5SyntaxHighlighting)
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version}
|
||||
|
||||
%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 --with-html
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license LICENSES/*
|
||||
%{_kf5_datadir}/knsrcfiles/ksieve_script.knsrc
|
||||
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
|
||||
%{_kf5_datadir}/sieve/
|
||||
%{_kf5_libdir}/libKF5KManageSieve.so.*
|
||||
%{_kf5_libdir}/libKF5KSieve.so.*
|
||||
%{_kf5_libdir}/libKF5KSieveUi.so.*
|
||||
#{_kf5_plugindir}/kio/sieve.so
|
||||
|
||||
%files devel
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_KManageSieve.pri
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_KSieveUi.pri
|
||||
%{_kf5_includedir}/KManageSieve/
|
||||
%{_kf5_includedir}/KSieveUi/
|
||||
%{_kf5_includedir}/KSieve/libksieve_version.h
|
||||
%{_kf5_libdir}/cmake/KF5LibKSieve/
|
||||
%{_kf5_libdir}/libKF5KManageSieve.so
|
||||
%{_kf5_libdir}/libKF5KSieve.so
|
||||
%{_kf5_libdir}/libKF5KSieveUi.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jun 12 2023 misaka00251 <liuxin@iscas.ac.cn> - 22.12.0-1
|
||||
- Init package
|
||||
4
kf5-libksieve.yaml
Normal file
4
kf5-libksieve.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/libksieve
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
BIN
libksieve-22.12.0.tar.xz
Normal file
BIN
libksieve-22.12.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user