Init package
This commit is contained in:
parent
07e1a6c307
commit
6e171ac22e
BIN
calendarsupport-22.12.0.tar.xz
Normal file
BIN
calendarsupport-22.12.0.tar.xz
Normal file
Binary file not shown.
101
kf5-calendarsupport.spec
Normal file
101
kf5-calendarsupport.spec
Normal file
@ -0,0 +1,101 @@
|
||||
%global framework calendarsupport
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 22.12.0
|
||||
Release: 1
|
||||
Summary: KDE PIM library for calendar and even handling
|
||||
License: LGPLv2+
|
||||
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
|
||||
# available only where kf5-pimcommon is
|
||||
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
|
||||
|
||||
%global kf5_ver 5.71.0
|
||||
BuildRequires: extra-cmake-modules >= %{kf5_ver}
|
||||
BuildRequires: kf5-rpm-macros >= %{kf5_ver}
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qttools-static
|
||||
|
||||
BuildRequires: cmake(KF5Akonadi)
|
||||
BuildRequires: cmake(KF5AkonadiCalendar)
|
||||
BuildRequires: cmake(KF5AkonadiMime)
|
||||
BuildRequires: cmake(KF5AkonadiNotes)
|
||||
BuildRequires: cmake(KF5Mime)
|
||||
BuildRequires: cmake(KF5Codecs)
|
||||
BuildRequires: cmake(KF5CalendarUtils)
|
||||
BuildRequires: cmake(KF5CalendarCore)
|
||||
BuildRequires: cmake(KF5IdentityManagement)
|
||||
BuildRequires: cmake(KF5Holidays)
|
||||
BuildRequires: cmake(KF5PimCommon)
|
||||
|
||||
%global majmin_ver %{version}
|
||||
|
||||
BuildRequires: kf5-akonadi-calendar-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-akonadi-mime-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-akonadi-server-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kcalendarcore-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kcalendarutils-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kholidays-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kidentitymanagement-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-kmime-devel >= %{majmin_ver}
|
||||
BuildRequires: kf5-pimcommon-devel >= %{majmin_ver}
|
||||
|
||||
Obsoletes: kdepim-libs < 7:16.04.0
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: cmake(KF5Mime)
|
||||
Requires: cmake(KF5IdentityManagement)
|
||||
Requires: cmake(KF5AkonadiCalendar)
|
||||
Requires: kf5-akonadi-calendar-devel >= %{majmin_ver}
|
||||
Requires: kf5-kidentitymanagement-devel >= %{majmin_ver}
|
||||
Requires: kf5-kmime-devel >= %{majmin_ver}
|
||||
|
||||
%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}/libKF5CalendarSupport.so.*
|
||||
|
||||
%files devel
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_CalendarSupport.pri
|
||||
%{_kf5_includedir}/CalendarSupport/
|
||||
%{_kf5_libdir}/cmake/KF5CalendarSupport/
|
||||
%{_kf5_libdir}/libKF5CalendarSupport.so
|
||||
|
||||
%changelog
|
||||
* Mon May 29 2023 misaka00251 <liuxin@iscas.ac.cn> - 22.12.0-1
|
||||
- Init package
|
||||
4
kf5-calendarsupport.yaml
Normal file
4
kf5-calendarsupport.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/calendarsupport
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user