2021-03-28 09:27:30 +02:00
|
|
|
#
|
|
|
|
# spec file for package kopeninghours
|
|
|
|
#
|
2023-03-02 15:21:25 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-03-28 09:27:30 +02: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-06 13:44:55 +01:00
|
|
|
%bcond_without released
|
2021-03-28 09:27:30 +02:00
|
|
|
Name: kopeninghours
|
2023-09-14 12:52:08 +02:00
|
|
|
Version: 23.08.1
|
2021-03-28 09:27:30 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: OSM opening hours expression parser and evaluator
|
|
|
|
License: LGPL-2.0-or-later
|
|
|
|
URL: https://www.kde.org
|
2023-08-24 12:29:00 +02:00
|
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2022-01-06 13:44:55 +01:00
|
|
|
%if %{with released}
|
2023-08-24 12:29:00 +02:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2021-03-28 09:27:30 +02:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: cmake(KF5Holidays)
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
2023-08-18 08:25:45 +02:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.2
|
2021-03-28 09:27:30 +02:00
|
|
|
BuildRequires: cmake(Qt5Qml)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
|
|
|
|
%description
|
|
|
|
A library for parsing and evaluating OSM opening hours expressions.
|
|
|
|
|
|
|
|
%package -n libKOpeningHours1
|
|
|
|
Summary: OSM opening hours expression parser and evaluator
|
|
|
|
Recommends: %{name}
|
|
|
|
|
|
|
|
%description -n libKOpeningHours1
|
|
|
|
A library for parsing and evaluating OSM opening hours expressions.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for KOpeningHours
|
|
|
|
Requires: libKOpeningHours1 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Include files and libraries needed to build programs that use the KOpeningHours
|
|
|
|
library.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
2021-04-19 15:31:05 +02:00
|
|
|
%autosetup -p1
|
2021-03-28 09:27:30 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build -- -DBUILD_TESTING=ON
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
2022-11-17 23:58:35 +01:00
|
|
|
%find_lang %{name} --with-man
|
2021-03-28 09:27:30 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
export QT_QPA_PLATFORM=offscreen
|
|
|
|
%ctest
|
|
|
|
|
2023-03-02 15:21:25 +01:00
|
|
|
%ldconfig_scriptlets -n libKOpeningHours1
|
2021-03-28 09:27:30 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{_kf5_qmldir}/org
|
|
|
|
%dir %{_kf5_qmldir}/org/kde
|
|
|
|
%{_kf5_qmldir}/org/kde/kopeninghours/
|
|
|
|
|
|
|
|
%files -n libKOpeningHours1
|
|
|
|
%license LICENSES/*
|
|
|
|
%{_kf5_debugdir}/org_kde_kopeninghours.categories
|
|
|
|
%{_kf5_libdir}/libKOpeningHours.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/KOpeningHours/
|
|
|
|
%{_includedir}/kopeninghours/
|
|
|
|
%{_includedir}/kopeninghours_version.h
|
|
|
|
%{_kf5_cmakedir}/KOpeningHours/
|
|
|
|
%{_kf5_libdir}/libKOpeningHours.so
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|