!1 Init package
From: @misaka00251 Reviewed-by: @leeffo Signed-off-by: @leeffo
This commit is contained in:
commit
07679b1659
BIN
akonadi-calendar-22.12.0.tar.xz
Normal file
BIN
akonadi-calendar-22.12.0.tar.xz
Normal file
Binary file not shown.
115
kf5-akonadi-calendar.spec
Normal file
115
kf5-akonadi-calendar.spec
Normal file
@ -0,0 +1,115 @@
|
||||
%global framework akonadi-calendar
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 22.12.0
|
||||
Release: 1
|
||||
Summary: The Akonadi Calendar Library
|
||||
|
||||
License: LGPLv2+
|
||||
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
|
||||
|
||||
# handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches
|
||||
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
|
||||
|
||||
BuildRequires: cyrus-sasl-devel
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: grantlee-qt5-devel
|
||||
BuildRequires: kf5-rpm-macros
|
||||
|
||||
%global kf5_ver 5.87.0
|
||||
|
||||
BuildRequires: kf5-kdelibs4support-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kio-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kwallet-devel >= %{kf5_ver}
|
||||
BuildRequires: kf5-kcodecs-devel >= %{kf5_ver}
|
||||
|
||||
#global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
||||
%global majmin_ver %{version}
|
||||
|
||||
BuildRequires: kf5-grantleetheme-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kmailtransport-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kcontacts-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kidentitymanagement-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kcalendarcore-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kcalendarutils-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-akonadi-contacts-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver}
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
|
||||
BuildRequires: kf5-akonadi-server >= %{majmin_ver}
|
||||
BuildRequires: kf5-akonadi-server-mysql
|
||||
BuildRequires: dbus-x11
|
||||
BuildRequires: xorg-x11-server-Xvfb
|
||||
|
||||
# have choice for libxtables.so.12
|
||||
BuildRequires: iptables-libs
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: kf5-akonadi-contacts-devel
|
||||
Requires: kf5-akonadi-server-devel
|
||||
Requires: kf5-kcalendarcore-devel
|
||||
|
||||
%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} .. \
|
||||
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
||||
popd
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
%find_lang %{name} --all-name --with-html
|
||||
|
||||
%check
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
xvfb-run -a \
|
||||
dbus-launch --exit-with-session \
|
||||
make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license LICENSES/*
|
||||
%{_kf5_bindir}/kalendarac
|
||||
%{_kf5_datadir}/akonadi/plugins/serializer/
|
||||
%{_kf5_datadir}/dbus-1/services/org.kde.kalendarac.service
|
||||
%{_kf5_datadir}/knotifications5/kalendarac.notifyrc
|
||||
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
|
||||
%{_kf5_datadir}/qlogging-categories5/org_kde_kalendarac.categories
|
||||
%{_kf5_libdir}/libKF5AkonadiCalendar.so.*
|
||||
%{_kf5_qtplugindir}/akonadi_serializer_kcalcore.so
|
||||
%{_kf5_qtplugindir}/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so
|
||||
%{_kf5_sysconfdir}/xdg/autostart/org.kde.kalendarac.desktop
|
||||
|
||||
%files devel
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_AkonadiCalendar.pri
|
||||
%{_kf5_includedir}/AkonadiCalendar/Akonadi/
|
||||
%{_kf5_includedir}/AkonadiCalendar/akonadi-calendar_version.h
|
||||
%{_kf5_includedir}/AkonadiCalendar/akonadi/
|
||||
%{_kf5_libdir}/cmake/KF5AkonadiCalendar/
|
||||
%{_kf5_libdir}/libKF5AkonadiCalendar.so
|
||||
|
||||
%changelog
|
||||
* Wed May 31 2023 misaka00251 <liuxin@iscas.ac.cn> - 22.12.0-1
|
||||
- Init package
|
||||
4
kf5-akonadi-calendar.yaml
Normal file
4
kf5-akonadi-calendar.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/akonadi-calendar
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user