Blob Blame History Raw
%global kf5_min_version 5.86.0

Name:           kalendar
%global uuid    org.kde.%{name}
%global suuid   %{uuid}ac
Version:        0.4.0
Release:        1%{dist}
Summary:        A calendar application using Akonadi to sync with external services
License:        GPLv3+
URL:            https://invent.kde.org/pim/%{name}
Source0:        https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
Source1:        %{name}.rpmlintrc

%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}

BuildRequires:  desktop-file-utils
BuildRequires:  libappstream-glib

BuildRequires:  gcc-c++
BuildRequires:  extra-cmake-modules >= %{kf5_min_version}
BuildRequires:  kf5-rpm-macros      >= %{kf5_min_version}

BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Qml)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Location)

BuildRequires:  cmake(KF5Kirigami2)     >= %{kf5_min_version}
BuildRequires:  cmake(KF5I18n)          >= %{kf5_min_version}
BuildRequires:  cmake(KF5CalendarCore)  >= %{kf5_min_version}
BuildRequires:  cmake(KF5ConfigWidgets) >= %{kf5_min_version}
BuildRequires:  cmake(KF5WindowSystem)  >= %{kf5_min_version}
BuildRequires:  cmake(KF5CoreAddons)    >= %{kf5_min_version}
BuildRequires:  cmake(KF5People)        >= %{kf5_min_version}
BuildRequires:  cmake(KF5Contacts)      >= %{kf5_min_version}
BuildRequires:  cmake(KF5ItemModels)    >= %{kf5_min_version}
BuildRequires:  cmake(KF5XmlGui)        >= %{kf5_min_version}
BuildRequires:  cmake(KF5DBusAddons)    >= %{kf5_min_version}
BuildRequires:  cmake(KF5Service)       >= %{kf5_min_version}

BuildRequires:  cmake(KF5Akonadi)
BuildRequires:  cmake(KF5AkonadiContact)
BuildRequires:  cmake(KF5CalendarSupport)
BuildRequires:  cmake(KF5EventViews)
BuildRequires:  cmake(KF5GrantleeTheme)

BuildRequires:  gettext-devel

Requires:       kf5-kirigami2-addons-treeview
Requires:       akonadi-calendar-tools
Requires:       kdepim-addons
Requires:       kdepim-runtime
Requires:       kf5-kirigami2
Requires:       kf5-kirigami2-addons
Requires:       hicolor-icon-theme

%description
Kalendar is a Kirigami-based calendar application that uses Akonadi. It lets
you add, edit and delete events from local and remote accounts of your choice,
while keeping changes syncronised across your Plasma desktop or phone.


%prep
%autosetup -n %{name}-%{version}


%build
%cmake_kf5
%cmake_build


%install
%cmake_install
%find_lang %{name}


%check
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/%{uuid}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/%{uuid}.appdata.xml


%files -f %{name}.lang
%license LICENSES/*.txt
%doc README.md
%{_kf5_bindir}/%{name}
%{_kf5_datadir}/applications/%{uuid}.desktop
%{_kf5_datadir}/metainfo/%{uuid}.appdata.xml
%{_kf5_datadir}/icons/hicolor/scalable/apps/%{uuid}.svg
%{_kf5_bindir}/%{name}ac
%{_kf5_datadir}/dbus-1/services/%{suuid}.service
%{_kf5_datadir}/qlogging-categories5/%{name}.categories
%{_kf5_sysconfdir}/xdg/autostart/%{suuid}.desktop
%{_kf5_datadir}/knotifications5/%{name}ac.notifyrc



%changelog
* Sun Dec 26 2021 Justin Zobel <justin@1707.io> - 0.4.0
- Verison bump to 0.4.0

* Thu Dec 02 2021 Onuralp Sezer <thunderbirdtr@fedoraproject.org> - 0.3.1-1
- Version bump to 0.3.1

* Tue Nov 30 2021 Onuralp Sezer <thunderbirdtr@fedoraproject.org> - 0.2.1-2
- ExclusiveArch : s390 and ppc64le

* Tue Nov 30 2021 Onuralp Sezer <thunderbirdtr@fedoraproject.org> - 0.2.1-1
- initial upload and version 0.2.1
- Fixes rhbz#2020883