155 lines
4.5 KiB
RPMSpec
155 lines
4.5 KiB
RPMSpec
|
|
%global framework pimcommon
|
||
|
|
|
||
|
|
Name: kf5-%{framework}
|
||
|
|
Version: 22.12.0
|
||
|
|
Release: 1
|
||
|
|
Summary: PIM common libraries
|
||
|
|
|
||
|
|
License: GPLv2+
|
||
|
|
URL: https://api.kde.org/kdepim/pimcommon/html/
|
||
|
|
|
||
|
|
%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: boost-devel
|
||
|
|
|
||
|
|
BuildRequires: cmake(Grantlee5)
|
||
|
|
# kf5
|
||
|
|
%global kf5_ver 5.28
|
||
|
|
BuildRequires: extra-cmake-modules >= %{kf5_ver}
|
||
|
|
BuildRequires: kf5-rpm-macros >= %{kf5_ver}
|
||
|
|
BuildRequires: cmake(KF5Archive)
|
||
|
|
BuildRequires: cmake(KF5Codecs)
|
||
|
|
BuildRequires: cmake(KF5Completion)
|
||
|
|
BuildRequires: cmake(KF5Config)
|
||
|
|
BuildRequires: cmake(KF5ConfigWidgets)
|
||
|
|
BuildRequires: cmake(KF5CoreAddons)
|
||
|
|
BuildRequires: cmake(KF5DBusAddons)
|
||
|
|
BuildRequires: cmake(KF5I18n)
|
||
|
|
BuildRequires: cmake(KF5IconThemes)
|
||
|
|
BuildRequires: cmake(KF5ItemModels)
|
||
|
|
BuildRequires: cmake(KF5ItemViews)
|
||
|
|
BuildRequires: cmake(KF5JobWidgets)
|
||
|
|
BuildRequires: cmake(KF5KCMUtils)
|
||
|
|
BuildRequires: cmake(KF5KIO)
|
||
|
|
BuildRequires: cmake(KF5Ldap)
|
||
|
|
BuildRequires: cmake(KF5NewStuff)
|
||
|
|
BuildRequires: cmake(KF5Purpose)
|
||
|
|
BuildRequires: cmake(KF5Service)
|
||
|
|
BuildRequires: cmake(KF5Wallet)
|
||
|
|
BuildRequires: cmake(KF5WidgetsAddons)
|
||
|
|
BuildRequires: cmake(KF5WindowSystem)
|
||
|
|
BuildRequires: cmake(KF5XmlGui)
|
||
|
|
# qt5
|
||
|
|
BuildRequires: cmake(Qt5Designer)
|
||
|
|
BuildRequires: qt5-qtbase-devel
|
||
|
|
BuildRequires: cmake(Qt5UiTools)
|
||
|
|
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
|
||
|
|
|
||
|
|
# kde-apps
|
||
|
|
#global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
||
|
|
%global majmin_ver %{version}
|
||
|
|
BuildRequires: kf5-akonadi-contacts-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-akonadi-mime-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-akonadi-search-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-grantleetheme-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-kcalendarcore-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-kcontacts-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-kimap-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-kmime-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-kpimtextedit-devel >= %{majmin_ver}
|
||
|
|
BuildRequires: kf5-libkdepim-devel >= %{majmin_ver}
|
||
|
|
|
||
|
|
BuildRequires: pkgconfig(libxslt)
|
||
|
|
|
||
|
|
Obsoletes: kdepim-libs < 7:16.04.0
|
||
|
|
Conflicts: kdepim-libs < 7:16.04.0
|
||
|
|
|
||
|
|
%description
|
||
|
|
%{summary}.
|
||
|
|
|
||
|
|
%package akonadi
|
||
|
|
Summary: The PimCommonAkondi runtime library
|
||
|
|
Obsoletes: kf5-libkdepim-akonadi < 20.08.0
|
||
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
%description akonadi
|
||
|
|
%{summary}.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for %{name}
|
||
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
Requires: cmake(KF5Config)
|
||
|
|
# akonadi
|
||
|
|
Requires: %{name}-akonadi%{?_isa} = %{version}-%{release}
|
||
|
|
Requires: cmake(KF5Akonadi)
|
||
|
|
Requires: cmake(KF5AkonadiContact)
|
||
|
|
Requires: cmake(KF5Contacts)
|
||
|
|
Requires: cmake(KF5IMAP)
|
||
|
|
%description devel
|
||
|
|
The %{name}-devel package contains libraries and header files for
|
||
|
|
developing applications that use %{name}.
|
||
|
|
|
||
|
|
|
||
|
|
%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}/qlogging-categories5/*%{framework}.*
|
||
|
|
%{_kf5_libdir}/libKF5PimCommon.so.5*
|
||
|
|
%{_qt5_plugindir}/designer/pimcommonwidgets.so
|
||
|
|
|
||
|
|
%ldconfig_scriptlets akonadi
|
||
|
|
|
||
|
|
%files akonadi
|
||
|
|
%{_kf5_libdir}/libKF5PimCommonAkonadi.so.5*
|
||
|
|
%{_kf5_libdir}/libKF5PimCommonAutoCorrection.so.5*
|
||
|
|
%{_qt5_plugindir}/designer/pimcommonakonadiwidgets.so
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%{_kf5_libdir}/libKF5PimCommon.so
|
||
|
|
%{_kf5_libdir}/libKF5PimCommonAutoCorrection.so
|
||
|
|
%{_kf5_libdir}/cmake/KF5PimCommon/
|
||
|
|
%{_kf5_libdir}/cmake/KF5PimCommonAutoCorrection/
|
||
|
|
%{_kf5_includedir}/PimCommon/
|
||
|
|
%{_kf5_includedir}/PimCommonAutoCorrection/
|
||
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_PimCommon.pri
|
||
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_PimCommonAutoCorrection.pri
|
||
|
|
# akonadi
|
||
|
|
%{_kf5_libdir}/libKF5PimCommonAkonadi.so
|
||
|
|
%{_kf5_libdir}/cmake/KF5PimCommonAkonadi/
|
||
|
|
%{_kf5_includedir}/PimCommonAkonadi/
|
||
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_PimCommonAkonadi.pri
|
||
|
|
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Tue Apr 18 2023 peijiankang <peijiankang@kylinos.cn> - 22.12.0-1
|
||
|
|
- Init Package for openEuler
|
||
|
|
|