File itinerary.spec of Package itinerary

# spec file for package itinerary
# Copyright (c) 2023 SUSE LLC
# 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

%bcond_without released
Name:           itinerary
Version:        23.08.5
Release:        0
Summary:        Itinerary and boarding pass management application
License:        LGPL-2.0-or-later
%if %{with released}
Source2:        applications.keyring
BuildRequires:  breeze5-icons
BuildRequires:  extra-cmake-modules
BuildRequires:  hicolor-icon-theme
BuildRequires:  kf5-filesystem
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5CalendarCore)
BuildRequires:  cmake(KF5Contacts)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5FileMetaData)
BuildRequires:  cmake(KF5Holidays)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5KirigamiAddons)
BuildRequires:  cmake(KF5Mime)
BuildRequires:  cmake(KF5NetworkManagerQt)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5QQC2DeskopStyle)
BuildRequires:  cmake(KF5Solid)
BuildRequires:  cmake(KF5UnitConversion)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KOSMIndoorMap)
BuildRequires:  cmake(KPim5Itinerary)
BuildRequires:  cmake(KPim5PkPass)
BuildRequires:  cmake(KPublicTransport)
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Location)
BuildRequires:  cmake(Qt5Positioning)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5QuickCompiler)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  pkgconfig(zlib)
%if 0%{?suse_version} <= 1500
# variadic macro causes build issues
BuildRequires:  gcc10-c++
BuildRequires:  gcc10-PIE
# itinerary uses icons from the breeze theme
Requires:       breeze5-icons
# QML imports
Requires:       kirigami2
Requires:       prison-qt5-imports
Requires:       ki18n-imports
# Runtime dependencies (itinerary won't start without these packages)
Requires:       kopeninghours
Requires:       kosmindoormap
Requires:       kpublictransport

Itinerary and boarding pass management application.


%autosetup -p1

%if 0%{?suse_version} <= 1500
  export CXX=g++-10

%cmake_kf5 -d build -- -DBUILD_TESTING=ON

%kf5_makeinstall -C build

# Should be Utility Maps, but the checker does not like it
%suse_update_desktop_file org.kde.itinerary Education Geography

# one test fails on ppc64 (be). Upstream is investigating
%ifnarch ppc64
%ctest --exclude-regex "(itinerary-self-test)"

%find_lang %{name} --all-name

%files lang -f %{name}.lang

%license LICENSES/*
%dir %{_kf5_plugindir}/kf5
%dir %{_kf5_plugindir}/kf5/kfilemetadata
%dir %{_kf5_plugindir}/kf5/thumbcreator
%dir %{_kf5_qmldir}/org
%dir %{_kf5_qmldir}/org/kde

openSUSE Build Service is sponsored by