2020-11-14 09:55:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package kpublictransport
|
|
|
|
#
|
2024-02-23 21:08:36 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-11-14 09:55:42 +01:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-04-12 19:25:25 +02:00
|
|
|
%define kf6_version 6.0.0
|
2024-02-23 21:08:36 +01:00
|
|
|
%define qt6_version 6.6.0
|
|
|
|
|
2022-01-06 13:44:56 +01:00
|
|
|
%bcond_without released
|
2020-11-14 09:55:42 +01:00
|
|
|
Name: kpublictransport
|
2024-06-13 14:04:05 +02:00
|
|
|
Version: 24.05.1
|
2020-11-14 09:55:42 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: QML imports for querying public transport data
|
|
|
|
License: LGPL-2.0-or-later
|
|
|
|
URL: https://www.kde.org
|
2024-05-23 13:00:37 +02:00
|
|
|
Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2022-01-06 13:44:56 +01:00
|
|
|
%if %{with released}
|
2024-05-23 13:00:37 +02:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2020-11-21 13:58:33 +01:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2020-11-14 09:55:42 +01:00
|
|
|
BuildRequires: bison
|
2024-02-23 21:08:36 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
2020-11-14 09:55:42 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: pkgconfig
|
2024-02-23 21:08:36 +01:00
|
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(KF6NetworkManagerQt) >= %{kf6_version}
|
|
|
|
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6ToolsTools) >= %{qt6_version}
|
|
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
2023-08-18 08:25:48 +02:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2020-11-14 09:55:42 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
%description
|
|
|
|
A library for access realtime public transport data and for performing public
|
2024-02-23 21:08:36 +01:00
|
|
|
ransport journey queries.
|
|
|
|
|
|
|
|
%package imports
|
|
|
|
Summary: QML Imports for using kpublictransport
|
|
|
|
|
|
|
|
%description imports
|
|
|
|
A library for access realtime public transport data and for performing public
|
2020-11-14 09:55:42 +01:00
|
|
|
ransport journey queries. QML imports.
|
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%package -n libKPublicTransport1
|
2020-11-14 09:55:42 +01:00
|
|
|
Summary: Library for querying public transport data
|
2024-02-23 21:08:36 +01:00
|
|
|
Requires: kpublictransport >= %{version}
|
2020-11-14 09:55:42 +01:00
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%description -n libKPublicTransport1
|
2020-11-14 09:55:42 +01:00
|
|
|
A library for access realtime public transport data and for performing public
|
|
|
|
ransport journey queries.
|
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%package -n libKPublicTransportOnboard1
|
2023-03-20 09:52:10 +01:00
|
|
|
Summary: Library for querying public transport data onboard trains
|
2024-02-23 21:08:36 +01:00
|
|
|
Requires: libKPublicTransport1 = %{version}
|
2023-03-20 09:52:10 +01:00
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%description -n libKPublicTransportOnboard1
|
2023-03-20 09:52:10 +01:00
|
|
|
A library for access realtime public transport data and for performing public
|
|
|
|
transport journey queries. This package contains a library to determine
|
|
|
|
the presence onboard of a train using WiFi SSIDs and provide journey
|
|
|
|
details.
|
|
|
|
|
2020-11-14 09:55:42 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Library for querying public transport data
|
2024-02-23 21:08:36 +01:00
|
|
|
Requires: libKPublicTransport1 = %{version}
|
|
|
|
Requires: libKPublicTransportOnboard1 = %{version}
|
|
|
|
Requires: cmake(Qt6Gui) >= %{qt6_version}
|
2021-03-28 09:27:32 +02:00
|
|
|
Requires: pkgconfig(zlib)
|
2020-11-14 09:55:42 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
A library for access realtime public transport data and for performing public
|
|
|
|
ransport journey queries.Development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2024-02-23 21:08:36 +01:00
|
|
|
%cmake_kf6 \
|
|
|
|
-DBUILD_TESTING:BOOL=TRUE \
|
|
|
|
-DBUILD_QCH:BOOL=TRUE
|
|
|
|
|
|
|
|
%kf6_build
|
2020-11-14 09:55:42 +01:00
|
|
|
|
|
|
|
%install
|
2024-02-23 21:08:36 +01:00
|
|
|
%kf6_install
|
2020-11-14 09:55:42 +01:00
|
|
|
|
|
|
|
%check
|
2020-11-21 13:58:33 +01:00
|
|
|
%ctest
|
2020-11-14 09:55:42 +01:00
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%ldconfig_scriptlets -n libKPublicTransport1
|
|
|
|
%ldconfig_scriptlets -n libKPublicTransportOnboard1
|
2020-11-14 09:55:42 +01:00
|
|
|
|
|
|
|
%files
|
2024-02-23 21:08:36 +01:00
|
|
|
%{_kf6_debugdir}/org_kde_kpublictransport.categories
|
|
|
|
%{_kf6_debugdir}/org_kde_kpublictransport_onboard.categories
|
|
|
|
|
|
|
|
%files imports
|
|
|
|
%{_kf6_qmldir}/org/kde/kpublictransport/
|
2020-11-14 09:55:42 +01:00
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%files -n libKPublicTransport1
|
2020-11-14 09:55:42 +01:00
|
|
|
%license LICENSES/*
|
2024-02-23 21:08:36 +01:00
|
|
|
%{_kf6_libdir}/libKPublicTransport.so.*
|
2020-11-14 09:55:42 +01:00
|
|
|
|
2024-02-23 21:08:36 +01:00
|
|
|
%files -n libKPublicTransportOnboard1
|
|
|
|
%{_kf6_libdir}/libKPublicTransportOnboard.so.*
|
2023-03-20 09:52:10 +01:00
|
|
|
|
2020-11-14 09:55:42 +01:00
|
|
|
%files devel
|
2024-02-23 21:08:36 +01:00
|
|
|
%doc %{_kf6_qchdir}/KPublicTransport.*
|
2020-11-14 09:55:42 +01:00
|
|
|
%{_includedir}/KPublicTransport/
|
2024-02-23 21:08:36 +01:00
|
|
|
%{_kf6_cmakedir}/KPublicTransport/
|
|
|
|
%{_kf6_libdir}/libKPublicTransport.so
|
|
|
|
%{_kf6_libdir}/libKPublicTransportOnboard.so
|
2020-11-14 09:55:42 +01:00
|
|
|
|
|
|
|
%changelog
|