diff --git a/fix-i18n.patch b/fix-i18n.patch new file mode 100644 index 0000000..efeeb36 --- /dev/null +++ b/fix-i18n.patch @@ -0,0 +1,23 @@ +Author: Fabian Vogt +Subject: Fix i18n call + +The call to ki18n_install was autogenerated by a script, but +it requires I18n to be available. + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: kajongg-17.03.90/CMakeLists.txt +=================================================================== +--- kajongg-17.03.90.orig/CMakeLists.txt ++++ kajongg-17.03.90/CMakeLists.txt +@@ -15,7 +15,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SO + find_package(PythonInterp ${PYTHON_MIN_VERSION} REQUIRED) + find_package(Twisted ${TWISTED_MIN_VERSION} REQUIRED) + find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Gui Svg Widgets) +-find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Config DocTools) ++find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Config DocTools I18n) + + include(FeatureSummary) + include(ECMPackageConfigHelpers) diff --git a/kajongg-16.12.3.tar.xz b/kajongg-16.12.3.tar.xz deleted file mode 100644 index 136ede6..0000000 --- a/kajongg-16.12.3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:accc4b1bc857495bc1d9fdc9aa3274f5a2aaf566b49741085640d36b059d9c77 -size 2528552 diff --git a/kajongg-17.04.0.tar.xz b/kajongg-17.04.0.tar.xz new file mode 100644 index 0000000..f1fc60b --- /dev/null +++ b/kajongg-17.04.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b68f9ccc282f0aa4795456767813cbbe98ce115181daf61b5d306aaab353eeaf +size 4232900 diff --git a/kajongg.changes b/kajongg.changes index aa2e5ac..3e9ea4f 100644 --- a/kajongg.changes +++ b/kajongg.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Sun Apr 16 10:44:49 CEST 2017 - lbeltrame@kde.org + +- Update to 17.04.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-17.04.0.php +- Changes since 17.03.90: + * None + +------------------------------------------------------------------- +Wed Apr 12 20:25:19 CEST 2017 - lbeltrame@kde.org + +- Update to 17.03.90 + * New bugfix release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-17.04-rc.php +- Changes since 17.03.80: + * None +- Add patch to fix build: + * fix-i18n.patch + +------------------------------------------------------------------- +Sat Mar 25 23:10:14 CET 2017 - lbeltrame@kde.org + +- Update to 17.03.80 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/announce-applications-17.03.80.php +- Changes since 16.12.3: + * Too many changes to list here + ------------------------------------------------------------------- Thu Mar 9 12:35:02 CET 2017 - lbeltrame@kde.org @@ -20,14 +52,14 @@ Thu Feb 9 06:44:19 UTC 2017 - lbeltrame@kde.org Sat Jan 14 08:51:20 UTC 2017 - lbeltrame@kde.org - - Update to KDE Applications 16.12.1 - * KDE Applications 16.12.1 + * KDE Applications 16.12.1 * https://www.kde.org/announcements/announce-applications-16.12.1.php ------------------------------------------------------------------- Tue Dec 13 19:32:10 UTC 2016 - tittiatcoke@gmail.com - Update to KDE Applications 16.12.0 - * KDE Applications 16.12.0 + * KDE Applications 16.12.0 * https://www.kde.org/announcements/announce-applications-16.12.0.php @@ -128,7 +160,7 @@ Mon Apr 11 06:32:51 UTC 2016 - tittiatcoke@gmail.com Sun Mar 13 15:35:53 UTC 2016 - tittiatcoke@gmail.com - Update to KDE Applications 15.12.3 - * KDE Applications 15.12.3 + * KDE Applications 15.12.3 * https://www.kde.org/announcements/announce-applications-15.12.3.php * boo#970855 @@ -137,7 +169,7 @@ Sun Mar 13 15:35:53 UTC 2016 - tittiatcoke@gmail.com Sat Feb 13 08:03:02 UTC 2016 - tittiatcoke@gmail.com - Update to KDE Applications 15.12.2 - * KDE Applications 15.12.2 + * KDE Applications 15.12.2 * https://www.kde.org/announcements/announce-applications-15.12.2.php * boo#966605 @@ -146,7 +178,7 @@ Sat Feb 13 08:03:02 UTC 2016 - tittiatcoke@gmail.com Sat Jan 9 18:11:47 UTC 2016 - tittiatcoke@gmail.com - Update to KDE Applications 15.12.1 - * KDE Applications 15.12.1 + * KDE Applications 15.12.1 * https://www.kde.org/announcements/announce-applications-15.12.1.php * boo#961265 @@ -155,7 +187,7 @@ Sat Jan 9 18:11:47 UTC 2016 - tittiatcoke@gmail.com Sun Dec 13 13:06:14 UTC 2015 - tittiatcoke@gmail.com - Update to KDE Applications 15.12.0 - * KDE Applications 15.12.0 + * KDE Applications 15.12.0 * https://www.kde.org/announcements/announce-applications-15.12.0.php * boo#958887 @@ -164,7 +196,7 @@ Sun Dec 13 13:06:14 UTC 2015 - tittiatcoke@gmail.com Tue Nov 10 19:55:10 UTC 2015 - tittiatcoke@gmail.com - Update to KDE Applications 15.08.3 - * KDE Applications 15.08.3 + * KDE Applications 15.08.3 * https://www.kde.org/announcements/announce-applications-15.08.3.php * boo#954531 @@ -173,7 +205,7 @@ Tue Nov 10 19:55:10 UTC 2015 - tittiatcoke@gmail.com Sun Oct 11 13:17:29 UTC 2015 - tittiatcoke@gmail.com - Update to KDE Applications 15.08.2 - * KDE Applications 15.08.2 + * KDE Applications 15.08.2 * https://www.kde.org/announcements/announce-applications-15.08.2.php @@ -181,7 +213,7 @@ Sun Oct 11 13:17:29 UTC 2015 - tittiatcoke@gmail.com Sun Sep 13 18:58:59 UTC 2015 - tittiatcoke@gmail.com - Update to KDE Applications 15.08.1 - * KDE Applications 15.08.1 + * KDE Applications 15.08.1 * https://www.kde.org/announcements/announce-applications-15.08.1.php @@ -492,38 +524,38 @@ Mon Apr 1 19:39:14 UTC 2013 - tittiatcoke@gmail.com Sat Mar 2 16:06:42 UTC 2013 - tittiatcoke@gmail.com - Update to 4.10.1 - * Contains bug fixes. See http://www.kde.org/announcements/ - for more information + * Contains bug fixes. See http://www.kde.org/announcements/ + for more information ------------------------------------------------------------------- Thu Jan 31 18:17:25 UTC 2013 - tittiatcoke@gmail.com - Update to 4.10.0 - * This is the final release for 4.10. Contains bugfixes + * This is the final release for 4.10. Contains bugfixes ------------------------------------------------------------------- Thu Jan 17 08:37:51 UTC 2013 - tittiatcoke@gmail.com - Update to 4.9.98 - * This is the third RC release for 4.10. Contains bugfixes + * This is the third RC release for 4.10. Contains bugfixes ------------------------------------------------------------------- Thu Jan 3 21:46:19 UTC 2013 - tittiatcoke@gmail.com - Update to 4.9.97 - * This is the second RC release for 4.10. Contains bugfixes + * This is the second RC release for 4.10. Contains bugfixes ------------------------------------------------------------------- Wed Dec 19 19:12:08 UTC 2012 - tittiatcoke@gmail.com - Update to 4.9.95 - * This is the first RC release for 4.10. Contains bugfixes + * This is the first RC release for 4.10. Contains bugfixes ------------------------------------------------------------------- Sat Dec 1 20:35:01 UTC 2012 - tittiatcoke@gmail.com - Update to 4.9.90 - * This is the second Beta release for 4.10. Contains bugfixes + * This is the second Beta release for 4.10. Contains bugfixes ------------------------------------------------------------------- Sun Nov 25 11:30:33 UTC 2012 - tittiatcoke@gmail.com @@ -536,4 +568,4 @@ Sat Nov 24 13:18:46 UTC 2012 - tittiatcoke@gmail.com - Update to 4.9.80 * See http://www.kde.org/announcements/announce-4.10-beta1.php -- Package was split of from kdegames4 +- Package was split of from kdegames4 diff --git a/kajongg.spec b/kajongg.spec index b6866b2..8448f96 100644 --- a/kajongg.spec +++ b/kajongg.spec @@ -15,42 +15,66 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: kajongg -Version: 16.12.3 +Version: 17.04.0 Release: 0 %define kf5_version 5.26.0 -# Latest stable Applications (e.g. 16.08 in KA, but 16.12.3 in KUA) +# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA) %{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} Summary: 4 Player Mahjongg game License: GPL-2.0+ Group: Amusements/Games/Board/Puzzle Url: http://www.kde.org Source0: kajongg-%{version}.tar.xz -BuildRequires: libkdegames4-devel -BuildRequires: python-kde4-devel -BuildRequires: python-kdebase4 +# PATCH-FIX-UPSTREAM (I hope) +Patch1: fix-i18n.patch +BuildRequires: extra-cmake-modules +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5Gui) +BuildRequires: cmake(Qt5Svg) +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5KMahjongglib) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: python3-base >= 3.5.0 +BuildRequires: python3-qt5-devel +BuildRequires: python3-Twisted >= 16.6.0 BuildRequires: xz -Requires: python-kde4 -Requires: python-twisted +BuildRequires: update-desktop-files +Requires: python3-Twisted +Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{kde4_runtime_requires} +BuildArch: noarch %description Kajongg is a version of the four player Mahjongg tile game. +%if %{with lang} +%lang_package +%endif + %prep %setup -q -n kajongg-%{version} +%patch1 -p1 %build - %cmake_kde4 -d build -- -DINSTALL_KAJONGG=TRUE + # Workaround for kde#376303 + export PYTHONDONTWRITEBYTECODE=1 + export DESTDIR=%{buildroot} + %cmake_kf5 -d build %make_jobs %install - cd build -make %{?_smp_mflags} DESTDIR=%{buildroot} install + %make_install -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %kf5_find_htmldocs + %endif %suse_update_desktop_file -r org.kde.kajongg Game BoardGame - %kde_post_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -58,13 +82,18 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install %files %defattr(-,root,root) %doc COPYING COPYING.DOC README -%{_kde4_bindir}/kajongg -%{_kde4_bindir}/kajonggserver -%{_kde4_applicationsdir}/org.kde.kajongg.desktop -%{_kde4_htmldir}/en/kajongg/ -%{_kde4_iconsdir}/hicolor/*/apps/kajongg.* -%{_kde4_iconsdir}/hicolor/*/actions/games-kajongg-law.* -%{_kde4_appsdir}/kajongg/ +%{_bindir}/kajongg +%{_bindir}/kajonggserver +%{_kf5_applicationsdir}/org.kde.kajongg.desktop +%{_kf5_htmldir}/en/kajongg/ +%{_kf5_iconsdir}/hicolor/*/apps/kajongg.* +%{_kf5_iconsdir}/hicolor/*/actions/games-kajongg-law.* +%{_kf5_appsdir}/kajongg/ %{_datadir}/metainfo/ +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog