666db5a8c5
OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kopeninghours?expand=0&rev=70
97 lines
2.6 KiB
RPMSpec
97 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package kopeninghours
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without released
|
|
Name: kopeninghours
|
|
Version: 23.08.1
|
|
Release: 0
|
|
Summary: OSM opening hours expression parser and evaluator
|
|
License: LGPL-2.0-or-later
|
|
URL: https://www.kde.org
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
|
%if %{with released}
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
|
Source2: applications.keyring
|
|
%endif
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: cmake(KF5Holidays)
|
|
BuildRequires: cmake(KF5I18n)
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.2
|
|
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
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake_kf5 -d build -- -DBUILD_TESTING=ON
|
|
%cmake_build
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
|
|
%find_lang %{name} --with-man
|
|
|
|
%check
|
|
export QT_QPA_PLATFORM=offscreen
|
|
%ctest
|
|
|
|
%ldconfig_scriptlets -n libKOpeningHours1
|
|
|
|
%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
|