File korganizer.spec of Package korganizer
#
# spec file for package korganizer
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without lang
Name: korganizer
Version: 17.04.2
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %ix86 x86_64 %arm aarch64 mips mips64
Summary: Personal Organizer
License: GPL-2.0
Group: Productivity/Office/Organizers
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
Patch1: korgac-autostart-default.patch
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: extra-cmake-modules
BuildRequires: phonon4qt5-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Akonadi)
BuildRequires: cmake(KF5AkonadiCalendar)
BuildRequires: cmake(KF5AkonadiContact)
BuildRequires: cmake(KF5AkonadiMime)
BuildRequires: cmake(KF5AkonadiNotes)
BuildRequires: cmake(KF5AkonadiSearch)
BuildRequires: cmake(KF5CalendarCore)
BuildRequires: cmake(KF5CalendarSupport)
BuildRequires: cmake(KF5CalendarUtils)
BuildRequires: cmake(KF5Codecs)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5Contacts)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5EventViews)
BuildRequires: cmake(KF5Holidays)
BuildRequires: cmake(KF5IdentityManagement)
BuildRequires: cmake(KF5IncidenceEditor)
BuildRequires: cmake(KF5KCMUtils)
BuildRequires: cmake(KF5KdepimDBusInterfaces)
BuildRequires: cmake(KF5KontactInterface)
BuildRequires: cmake(KF5Ldap)
BuildRequires: cmake(KF5Libkdepim)
BuildRequires: cmake(KF5MailCommon)
BuildRequires: cmake(KF5MailTransport)
BuildRequires: cmake(KF5Mime)
BuildRequires: cmake(KF5NewStuff)
BuildRequires: cmake(KF5PimCommon)
BuildRequires: cmake(KF5PimTextEdit)
BuildRequires: cmake(KF5Service)
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
BuildRequires: pkgconfig(Qt5UiTools) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
Requires: akonadi-calendar-tools
Requires: kdepim-addons
Provides: korganizer5 = %{version}
Obsoletes: korganizer5 < %{version}
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KOrganizer is a calendar application for KDE.
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%patch1 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%kf5_find_htmldocs
%endif
rm %{buildroot}%{_kf5_libdir}/*.so
%suse_update_desktop_file org.kde.korganizer Office Calendar
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC
%config %{_kf5_configdir}/korganizer.knsrc
%dir %{_kf5_appstreamdir}/
%{_kf5_configdir}/autostart/org.kde.korgac.desktop
%{_kf5_servicesdir}/korganizer_*.desktop
%{_kf5_servicesdir}/webcal.protocol
%{_kf5_servicetypesdir}/dbuscalendar.desktop
%{_kf5_sharedir}/korganizer/
%{_kf5_sharedir}/korgac/
%{_kf5_bindir}/ical2vcal
%{_kf5_bindir}/korgac
%{_kf5_bindir}/korganizer
%{_kf5_plugindir}/korganizerpart.so
%{_kf5_appstreamdir}/org.kde.korganizer.appdata.xml
%{_kf5_applicationsdir}/korganizer*.desktop
%{_kf5_applicationsdir}/org.kde.korganizer.desktop
%{_kf5_configkcfgdir}/korganizer.kcfg
%{_kf5_dbusinterfacesdir}/org.kde.korganizer.*.xml
%{_kf5_dbusinterfacesdir}/org.kde.Korganizer.*.xml
%{_kf5_htmldir}/en/korganizer/
%config %{_kf5_configdir}/korganizer.categories
%config %{_kf5_configdir}/korganizer.renamecategories
%{_libdir}/libkorganizer_core.so.*
%{_libdir}/libkorganizer_interfaces.so.*
%{_libdir}/libkorganizerprivate.so.*
%{_kf5_plugindir}/kcm_*.so
%{_kf5_plugindir}/kontact_*.so
%dir %{_kf5_iconsdir}/hicolor/256x256
%dir %{_kf5_iconsdir}/hicolor/256x256/apps
%{_kf5_iconsdir}/hicolor/*/apps/*.png
%{_kf5_iconsdir}/hicolor/scalable/apps/quickview.svgz
%{_kf5_iconsdir}/oxygen/*/actions/*.png
%{_datadir}/kconf_update/
%{_datadir}/kontact/
%{_kf5_servicesdir}/kcm*.desktop
%{_kf5_servicesdir}/kontact/
%{_kf5_kxmlguidir}/korganizer/
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog