%{!?docs: %global docs 1} %if 0%{?flatpak} %global docs 0 %endif Name: kweathercore Version: 21.05 Release: 1%{?dist} License: LGPLv2+ Summary: Library to facilitate retrieval of weather information Url: https://invent.kde.org/libraries/kweathercore Source0: https://invent.kde.org/libraries/%{name}/-/archive/release/%{version}/%{name}-release-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5Positioning) BuildRequires: cmake(KF5I18n) %description Get weather forecast and alerts anywhere on the earth easy. KWeatherCore provides you a highly abstracted library for things related to weather: Get local weather forecast, get weather of a location by name or coordinate, get sunrise/set moonrise/set and many more informations about a location. %package devel Summary: Development headers for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %package docs Summary: Documentation for %{name} BuildRequires: doxygen BuildRequires: qt5-doctools BuildRequires: qt5-qttools-libs-help BuildArch: noarch %description docs %{summary}. %prep %autosetup -n %{name}-release-%{version} %build %cmake_kf5 \ %if 0%{?flatpak} %{?docs:-DBUILD_QCH:BOOL=OFF} \ %else %{?docs:-DBUILD_QCH:BOOL=ON} \ %endif %cmake_build %install %cmake_install %files %license LICENSES/*.txt %{_kf5_libdir}/libKF5KWeatherCore.so %{_kf5_libdir}/libKF5KWeatherCore.so.0.2.0 %{_kf5_libdir}/libKF5KWeatherCore.so.5 %files devel %license LICENSES/*.txt %{_kf5_includedir}/KWeatherCore/ %{_kf5_libdir}/cmake/KF5KWeatherCore/ %{_kf5_includedir}/kweathercore_version.h %{_kf5_libdir}/libKF5KWeatherCore.so %{_kf5_archdatadir}/mkspecs/modules/qt_KWeatherCore.pri %if 0%{?docs} %files docs %doc README.md %license LICENSES/*.txt %{_qt5_docdir}/KF5KWeatherCore.qch %{_qt5_docdir}/KF5KWeatherCore.tags %endif %changelog * Wed May 5 2021 Onuralp SEZER - 21.05-1 - initial version of package