File itinerary.spec of Package itinerary

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

%define kf6_version 6.0.0
%define qt6_version 6.6.0
%define kpim6_version 6.1.2

%bcond_without released
Name:           itinerary
Version:        24.05.2
Release:        0
Summary:        Itinerary and boarding pass management application
License:        LGPL-2.0-or-later
%if %{with released}
Source2:        applications.keyring
BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires:  shared-mime-info
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  qt6-core-private-devel >= %{qt6_version}
BuildRequires:  cmake(KF6CalendarCore) >= %{kf6_version}
BuildRequires:  cmake(KF6Contacts) >= %{kf6_version}
BuildRequires:  cmake(KF6CoreAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6Crash) >= %{kf6_version}
BuildRequires:  cmake(KF6DBusAddons) >= %{kf6_version}
BuildRequires:  cmake(KF6FileMetaData) >= %{kf6_version}
BuildRequires:  cmake(KF6Holidays) >= %{kf6_version}
BuildRequires:  cmake(KF6I18n) >= %{kf6_version}
BuildRequires:  cmake(KF6KIO) >= %{kf6_version}
BuildRequires:  cmake(KF6KirigamiAddons)
BuildRequires:  cmake(KF6NetworkManagerQt) >= %{kf6_version}
BuildRequires:  cmake(KF6Notifications) >= %{kf6_version}
BuildRequires:  cmake(KF6QQC2DesktopStyle) >= %{kf6_version}
BuildRequires:  cmake(KF6Solid) >= %{kf6_version}
BuildRequires:  cmake(KF6UnitConversion) >= %{kf6_version}
BuildRequires:  cmake(KF6WindowSystem) >= %{kf6_version}
BuildRequires:  cmake(KHealthCertificate)
BuildRequires:  cmake(KOSMIndoorMap)
BuildRequires:  cmake(KPim6Itinerary) >= %{kpim6_version}
BuildRequires:  cmake(KPim6PkPass) >= %{kpim6_version}
BuildRequires:  cmake(KPublicTransport)
BuildRequires:  cmake(LibIcal)
BuildRequires:  cmake(Qt6DBus) >= %{qt6_version}
BuildRequires:  cmake(Qt6Positioning) >= %{qt6_version}
BuildRequires:  cmake(Qt6Quick) >= %{qt6_version}
BuildRequires:  cmake(Qt6QuickControls2) >= %{qt6_version}
BuildRequires:  cmake(Qt6Test) >= %{qt6_version}
BuildRequires:  cmake(Qt6Widgets) >= %{qt6_version}
BuildRequires:  cmake(QuotientQt6)
BuildRequires:  pkgconfig(zlib)
# itinerary uses icons from the breeze theme
Requires:       kf6-breeze-icons
# Upstream insists in having these as build dependencies...
BuildRequires:       kf6-kirigami-imports >= %{kf6_version}
BuildRequires:       kf6-prison-imports >= %{kf6_version}
BuildRequires:       kf6-ki18n-imports >= %{kf6_version}
BuildRequires:       qt6qmlimport(QtPositioning)
BuildRequires:       qt6qmlimport(QtLocation)
BuildRequires:       qt6qmlimport(org.kde.kosmindoormap)
BuildRequires:       qt6qmlimport(org.kde.kopeninghours)
# QML imports
Requires:       kf6-kirigami-imports >= %{kf6_version}
Requires:       kf6-prison-imports >= %{kf6_version}
Requires:       kf6-ki18n-imports >= %{kf6_version}
# Runtime dependencies (itinerary won't start without these packages)
Requires:       kpublictransport-imports
Requires:       kopeninghours-imports
Requires:       kosmindoormap-imports

Itinerary and boarding pass management application.


%autosetup -p1

%cmake_kf6 \



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

%find_lang %{name} --all-name

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

%license LICENSES/*
%dir %{_kf6_plugindir}/kf6/kfilemetadata
%dir %{_kf6_plugindir}/kf6/thumbcreator

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by