121 lines
3.9 KiB
RPMSpec
121 lines
3.9 KiB
RPMSpec
%define kf6_version 6.19.0
|
|
%define qt6_version 6.9.0
|
|
|
|
|
|
Name: libkdegames
|
|
Version: 25.12.3
|
|
Release: 0
|
|
Summary: General Data for KDE Games
|
|
License: GPL-2.0-or-later
|
|
URL: https://www.kde.org
|
|
Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: fdupes
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
|
BuildRequires: libsndfile-devel
|
|
BuildRequires: openal-soft-devel
|
|
BuildRequires: cmake(KF6Archive) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6ColorScheme) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Completion) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Config) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6ConfigWidgets) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6DNSSD) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6IconThemes) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6NewStuff) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Service) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6WidgetsAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6XmlGui) >= %{kf6_version}
|
|
BuildRequires: cmake(Qt6Qml) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6QuickWidgets) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Svg) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
|
|
Provides: libKDEGames6 = %{version}-%{release}
|
|
Obsoletes: libKDEGames6 < %{version}-%{release}
|
|
|
|
%description
|
|
This package contains data which is required by the KDE games library.
|
|
|
|
%package devel
|
|
Summary: Library for KDE Games: Build Environment
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: cmake(KF6Completion) >= %{kf6_version}
|
|
Requires: cmake(KF6Config) >= %{kf6_version}
|
|
Requires: cmake(KF6ConfigWidgets) >= %{kf6_version}
|
|
Requires: cmake(KF6I18n) >= %{kf6_version}
|
|
Requires: cmake(KF6WidgetsAddons) >= %{kf6_version}
|
|
Requires: cmake(Qt6Network) >= %{qt6_version}
|
|
Requires: cmake(Qt6Qml) >= %{qt6_version}
|
|
Requires: cmake(Qt6QuickWidgets) >= %{qt6_version}
|
|
Requires: cmake(Qt6Widgets) >= %{qt6_version}
|
|
Requires: cmake(Qt6Xml) >= %{qt6_version}
|
|
|
|
%description devel
|
|
This package contains all necessary files and libraries needed to
|
|
develop KDE games.
|
|
|
|
%package -n kdegames-carddecks-other
|
|
Summary: Further Card Decks for KDE Games
|
|
Requires: kdegames-carddecks-default = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description -n kdegames-carddecks-other
|
|
This package contains several further card deck set for KDE games.
|
|
|
|
%package -n kdegames-carddecks-default
|
|
Summary: Default Card Decks for KDE Games
|
|
BuildArch: noarch
|
|
|
|
%description -n kdegames-carddecks-default
|
|
This package contains the default card deck set for KDE games.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
# todo: fix the name error.
|
|
# Avoid illegal package names
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
|
|
# Use langpacks macro to auto-split translations
|
|
%find_lang libkdegames6 --with-qt --all-name --generate-subpackages
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%files
|
|
%license LICENSES/*
|
|
%doc README
|
|
%{_kf6_debugdir}/libkdegames.categories
|
|
%{_kf6_libdir}/libKDEGames6.so.6
|
|
%{_kf6_libdir}/libKDEGames6.so.6.*
|
|
%{_kf6_libdir}/libKDEGames6Private.so.6
|
|
%{_kf6_libdir}/libKDEGames6Private.so.6.*
|
|
%{_kf6_qmldir}/org/kde/games/
|
|
|
|
%files devel
|
|
%{_kf6_cmakedir}/KDEGames6/
|
|
%{_includedir}/KDEGames6/
|
|
%{_kf6_libdir}/libKDEGames6.so
|
|
%{_kf6_libdir}/libKDEGames6Private.so
|
|
|
|
%files -n kdegames-carddecks-other
|
|
%license LICENSES/*
|
|
%{_kf6_sharedir}/carddecks/
|
|
%exclude %{_kf6_sharedir}/carddecks/svg-oxygen-air
|
|
|
|
%files -n kdegames-carddecks-default
|
|
%license LICENSES/*
|
|
%{_kf6_sharedir}/carddecks/svg-oxygen-air/
|
|
|
|
%changelog
|