File kf6-kholidays.spec of Package kf6-kholidays

#
# spec file for package kf6-kholidays
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#


%define qt6_version 6.8.0

%define rname kholidays
# Full KF6 version (e.g. 6.20.0)
%{!?_kf6_version: %global _kf6_version %{version}}
%bcond_without released
Name:           kf6-kholidays
Version:        6.20.0
Release:        kf.44.1
Summary:        Holiday calculation library
License:        LGPL-2.1-or-later
URL:            https://www.kde.org
Source:         %{rname}-%{version}.tar.xz
%if %{with released}
Source1:        %{rname}-%{version}.tar.xz.sig
Source2:        frameworks.keyring
%endif
BuildRequires:  kf6-extra-cmake-modules >= %{_kf6_version}
BuildRequires:  cmake(Qt6Core) >= %{qt6_version}
BuildRequires:  cmake(Qt6LinguistTools) >= %{qt6_version}
BuildRequires:  cmake(Qt6Qml) >= %{qt6_version}
BuildRequires:  cmake(Qt6ToolsTools) >= %{qt6_version}

%description
This package contains a library which helps developers determining when holidays occur.

%package imports
Summary:        QML imports for the KDE Holidays Franework

%description imports
QML imports for the KDE Holidays Franework.

%package -n libKF6Holidays6
Summary:        Holiday API for KDE PIM
Requires:       kf6-kholidays >= %{version}

%description -n libKF6Holidays6
This package contains a library which helps developers determining when holidays occur.

%package devel
Summary:        Development files for the KDE PIM Holiday API
Requires:       libKF6Holidays6 = %{version}
Requires:       cmake(Qt6Core)

%description devel
This package contains necessary include files and libraries needed
to develop applications depending on the kholidays library

%lang_package -n libKF6Holidays6

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
%cmake_kf6

%kf6_build

%install
%kf6_install

%find_lang libkholidays6 --with-man --all-name --with-qt

%ldconfig_scriptlets -n libKF6Holidays6

%files
%{_kf6_debugdir}/kholidays.categories

%files imports
%{_kf6_qmldir}/org/kde/kholidays/

%files -n libKF6Holidays6
%license LICENSES/*
%doc DESIGN README.md
%{_kf6_libdir}/libKF6Holidays.so.*

%files devel
%{_kf6_cmakedir}/KF6Holidays/
%{_kf6_includedir}/KHolidays/
%{_kf6_libdir}/libKF6Holidays.so

%files -n libKF6Holidays6-lang -f libkholidays6.lang

%changelog
* Thu Nov 13 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.20.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.20.0
- Changes since 6.19.0:
  * Update dependency version to 6.20.0
  * Use QCOMPARE vs QVERIFY
  * Italy: San Francesco will be a public holiday from 2026
  * Fixes and add days to Puerto Rico.
  * Update version to 6.20.0
* Tue Oct  7 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.19.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.19.0
- Changes since 6.18.0:
  * Update dependency version to 6.19.0
  * Updated holiday file for Italy (South Tyrol)
  * Update version to 6.19.0
* Mon Sep  8 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.18.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.18.0
- Changes since 6.17.0:
  * Update dependency version to 6.18.0
  * Changed Child's Health Day to the first Monday in October
  * Indian Independence Day isn't recognized before 1947 (kde#460343)
  * Drop unneeded expl. addition of src/build dirs to lib's build includes interface
  * Update version to 6.18.0
* Mon Aug  4 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.17.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.17.0
- Changes since 6.16.0:
  * Update dependency version to 6.17.0
  * It compiles fine without qt 6.10 deprecated methods
  * Update version to 6.17.0
* Mon Jul  7 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.16.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.16.0
- Changes since 6.15.0:
  * Update dependency version to 6.16.0
  * Changes Queen (El. II)'s day to King's (everywhere)
  * Update holidays for New Zaeland (kde#506251)
  * Add holidays for the Federation of Bosnia and Herzegovina (kde#505924)
  * holiday_ru_ru: keep old date for "День молодежи" if year is less than 2023
  * holiday_ru_ru: moved "День молодежи" to last saturday in june
  * holiday_hk_zh-cn: Use the official Chinese name for October 1
  * Update version to 6.16.0
* Mon Jun  9 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.15.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.15.0
- Changes since 6.14.0:
  * Update dependency version to 6.15.0
  * Add tags file to documentation
  * Add missing qhp project
  * Add deprecation annotation to namespace members individually
  * Documentation fixes
  * Fix documentation for SunEvents
  * Add landing page for QDoc
  * Introduce SunEvents
  * Minor fixes and add holidays
  * Port API documentation to QDoc syntax
  * holidays/plan2/holiday_vn_vi - fix language comment is Vietnamese
  * Add holidays for Vietnam
  * Update version to 6.15.0
- Replace _kf6_bugfix_version usage
* Sun May  4 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.14.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.14.0
- Changes since 6.13.0:
  * Update dependency version to 6.14.0
  * holiday_us_en-us - add Good Friday
  * README.md - update the testing instructions to use cmake --install
  * Added new Slovenian civil holiday Science Day (Dan znanosti) on Nov 10
  * Update version to 6.14.0
* Sat Apr  5 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.13.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.13.0
- Changes since 6.12.0:
  * .krazy - modernize
  * Add codespelling capability to the project (and fix misspellings)
  * Use "kholidays_debug.h" rather than <kholidays_debug.h>
  * Update for 2025
  * holidayparserplan.cpp - comment unused variable
  * It compiles fine without qt6.9 deprecated methods
  * Add public holidays for Puerto Rico
  * Update dependency version to 6.13.0
* Tue Mar 11 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.12.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.12.0
- Changes since 6.11.0:
  * Update dependency version to 6.12.0
  * Corrections for Tanzania
  * Update version to 6.12.0
* Sat Feb  8 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.11.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.11.0
- Changes since 6.10.0:
  * Update dependency version to 6.11.0
  * Add xml/yaml linting
  * CI: Add linux-qt6-next build
  * Add new one-off public holidays for the state of Berlin
  * Update version to 6.11.0
* Thu Jan  9 2025 Christophe Marin <christophe@krop.fr>
- Update to 6.10.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.10.0
- Changes since 6.9.0:
  * Update dependency version to 6.10.0
  * Update holiday_bg_bg: Add namedays
  * Update version to 6.10.0
* Sun Dec  8 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.9.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.9.0
- Changes since 6.8.0:
  * Update dependency version to 6.9.0
  * Update holiday_cn_zh-cn: add newline
  * Update holiday_cn_zh-cn for 2025 holidays
  * Adds public holiday for Nigeria
  * It compiles fine without deprecated methods
  * holiday_bj_fr - update Benin holidays (kde#496260)
  * Document HolidayRegion::rawHolidaysWithAstroSeasons()
  * Update version to 6.9.0
* Mon Nov  4 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.8.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.8.0
- Changes since 6.7.0:
  * Update dependency version to 6.8.0
  * Fix misunderstanding of All Saints Day in Swedish calendar
  * Add CI for static builds on Linux
  * Update version to 6.8.0
* Mon Oct  7 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.7.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.7.0
- Changes since 6.6.0:
  * Update dependency version to 6.7.0
  * holiday_si_sl: added missing Slovenian commemoration day
  * Update version to 6.7.0
* Sat Sep  7 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.6.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.6.0
- Changes since 6.5.0:
  * Update version to 6.6.0
  * ci: add Alpine/musl job
* Mon Aug  5 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.5.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.5.0
- Changes since 6.4.0:
  * Update dependency version to 6.5.0
  * Kazakhstan: Add National Book Day
  * Update version to 6.5.0
* Tue Jul  9 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.4.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.4.0
- Changes since 6.3.0:
  * Add holidays for Germany, Bremen and Germany, Hamburg
  * Add public holidays for Uzbekistan
  * holiday_pe_es - add Peru holidays per "Decreto Legislativo 713" (kde#488513)
  * Update russian holidays substitution for 2021, 2022, 2023, 2024
  * Update holiday_ph_en - fix syntax error "of august" should be "in august"
  * Change optional name to Philippines
  * Introduce a holidays file for Philippines (kde#487468)
* Wed Jun  5 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.3.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/frameworks/6/6.3.0/
- Changes since 6.2.0:
  * Remove custom definitions of pi
  * Proofreading
  * Remove explicit maintainer from metainfo
  * Latvia holiday grammar corrections
* Mon May  6 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.2.0
  * New feature release
  * For more details please see:
  * https://kde.org/announcements/gear/6.2.0/
- Changes since 6.1.0:
  * Latvia holiday grammar corrections
  * Update holiday_bd_en
* Fri Apr  5 2024 Christophe Marin <christophe@krop.fr>
- Update to 6.1.0
  * New feature release
- Changes since 6.0.0:
  * update version for new release
  * Add more holidays
  * Add one more source
  * Update holiday-sg (kde#483298)
  * update german holidays
* Wed Feb 21 2024 Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.0
  * New bugfix release
  * Release announcement not available yet
- Changes since 5.249.0:
  * update version for new release
  * Update holiday_cn_zh-cn, replenish all holidays from 2004 to 2024.
  * update version for new release
* Wed Jan 31 2024 Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.249.0 (6.0 RC 2):
  * New bugfix release
  * For more details see https://kde.org/announcements/megarelease/6/rc2/
* Mon Jan 15 2024 Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.248.0 (6.0 RC 1)
  * For more details please see:
    https://kde.org/announcements/megarelease/6/rc1/
* Sat May 27 2023 Christophe Marin <christophe@krop.fr>
- Init kf6-kholidays
openSUSE Build Service is sponsored by