[packages/ka6-khangman] - updated to 24.02.0
witekfl
witekfl at pld-linux.org
Mon Mar 4 18:29:26 CET 2024
commit e2ee596b88dd079d8e15e465c9dec5ac6d0563d9
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Mon Mar 4 18:29:17 2024 +0100
- updated to 24.02.0
ka6-khangman.spec | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 126 insertions(+)
---
diff --git a/ka6-khangman.spec b/ka6-khangman.spec
new file mode 100644
index 0000000..825875d
--- /dev/null
+++ b/ka6-khangman.spec
@@ -0,0 +1,126 @@
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeappsver 24.02.0
+%define kframever 5.94.0
+%define qtver 5.15.2
+%define kaname khangman
+Summary: khangman
+Name: ka6-%{kaname}
+Version: 24.02.0
+Release: 1
+License: GPL v2+/LGPL v2.1+
+Group: X11/Applications/Games
+Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: c5adb71a306b7af5c227d4f09910bc03
+URL: http://www.kde.org/
+BuildRequires: Qt6Core-devel >= %{qtver}
+BuildRequires: Qt6Gui-devel >= 5.11.1
+BuildRequires: Qt6Network-devel >= 5.11.1
+BuildRequires: Qt6Qml-devel
+BuildRequires: Qt6Quick-devel
+BuildRequires: Qt6Svg-devel
+BuildRequires: Qt6Widgets-devel >= 5.11.1
+BuildRequires: cmake >= 3.20
+BuildRequires: gettext-devel
+BuildRequires: ka6-libkdegames-devel >= %{kdeappsver}
+BuildRequires: ka6-libkeduvocdocument-devel >= %{kdeappsver}
+BuildRequires: kf6-extra-cmake-modules >= %{kframever}
+BuildRequires: kf6-kcompletion-devel >= %{kframever}
+BuildRequires: kf6-kconfig-devel >= %{kframever}
+BuildRequires: kf6-kconfigwidgets-devel >= %{kframever}
+BuildRequires: kf6-kcoreaddons-devel >= %{kframever}
+BuildRequires: kf6-kcrash-devel >= %{kframever}
+BuildRequires: kf6-kdeclarative-devel >= %{kframever}
+BuildRequires: kf6-kdoctools-devel >= %{kframever}
+BuildRequires: kf6-ki18n-devel >= %{kframever}
+BuildRequires: kf6-kio-devel >= %{kframever}
+BuildRequires: kf6-knewstuff-devel >= %{kframever}
+BuildRequires: kf6-knotifications-devel >= %{kframever}
+BuildRequires: kf6-kxmlgui-devel >= %{kframever}
+BuildRequires: ninja
+BuildRequires: qt6-build >= %{qtver}
+BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: shared-mime-info
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires: %{name}-data = %{version}-%{release}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+KHangMan is the classical hangman game. The child should guess a word
+letter by letter. At each miss, the picture of a hangman appears.
+After 10 tries, if the word is not guessed, the game is over and the
+answer is displayed.
+
+%description -l pl.UTF-8
+KHangMan to klasyczna gra w wisielca. Dziecko ma odgadnąć słowo,
+literka po literce. Przy każdym pudle jest rysowane fragment obrazka
+wisielca. Po 10 próbach, jeśli słowo nie zostało odgadnięte, gra się
+kończy i wyświetlana jest prawidłowa odpowiedź.
+
+%package data
+Summary: Data files for %{kaname}
+Summary(pl.UTF-8): Dane dla %{kaname}
+Group: X11/Applications/Games
+BuildArch: noarch
+
+%description data
+Data files for %{kaname}.
+
+%description data -l pl.UTF-8
+Dane dla %{kaname}.
+
+
+%prep
+%setup -q -n %{kaname}-%{version}
+
+%build
+%cmake \
+ -B build \
+ -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
+ -DKDE_INSTALL_DOCBUNDLEDIR=%{_kdedocdir} \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+%ninja_build -C build
+
+%if %{with tests}
+ctest --test-dir build
+%endif
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%ninja_install -C build
+
+%find_lang %{kaname} --all-name --with-kde
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/khangman
+
+%files data -f %{kaname}.lang
+%defattr(644,root,root,755)
+%{_desktopdir}/org.kde.khangman.desktop
+%{_datadir}/config.kcfg/khangman.kcfg
+%{_iconsdir}/hicolor/*x*/apps/khangman.png
+%{_iconsdir}/hicolor/scalable/apps/khangman.svgz
+%{_datadir}/khangman
+%lang(ca) %{_mandir}/ca/man6/khangman.6*
+%lang(de) %{_mandir}/de/man6/khangman.6*
+%lang(es) %{_mandir}/es/man6/khangman.6*
+%lang(et) %{_mandir}/et/man6/khangman.6*
+%lang(it) %{_mandir}/it/man6/khangman.6*
+%lang(C) %{_mandir}/man6/khangman.6*
+%lang(nl) %{_mandir}/nl/man6/khangman.6*
+%lang(pt) %{_mandir}/pt/man6/khangman.6*
+%lang(pt_BR) %{_mandir}/pt_BR/man6/khangman.6*
+%lang(ru) %{_mandir}/ru/man6/khangman.6*
+%lang(sv) %{_mandir}/sv/man6/khangman.6*
+%lang(uk) %{_mandir}/uk/man6/khangman.6*
+%lang(fr) %{_mandir}/fr/man6/khangman.6*
+%{_datadir}/metainfo/org.kde.khangman.appdata.xml
+%{_datadir}/knsrcfiles/khangman.knsrc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ka6-khangman.git/commitdiff/e2ee596b88dd079d8e15e465c9dec5ac6d0563d9
More information about the pld-cvs-commit
mailing list