diff --git a/kmahjongg.spec b/kmahjongg.spec index df54356..85a9ee7 100644 --- a/kmahjongg.spec +++ b/kmahjongg.spec @@ -1,5 +1,5 @@ Name: kmahjongg -Version: 15.12.0 +Version: 20.04.0 Release: 1mamba Summary: KDE Mahjongg Solitaire Group: Graphical Desktop/Applications/Games @@ -7,15 +7,26 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.kde.org -Source: http://download.kde.org/stable/applications/%{version}/src/kmahjongg-%{version}.tar.xz +Source: https://download.kde.org/stable/release-service/%{version}/src/kmahjongg-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: kdelibs-devel +BuildRequires: ldconfig BuildRequires: libgcc -BuildRequires: libkdegames-devel -BuildRequires: libkmahjongg-devel -BuildRequires: libqt4-devel +BuildRequires: libkauth-devel +BuildRequires: libkcodecs-devel +BuildRequires: libkcompletion-devel +BuildRequires: libkconfig-devel +BuildRequires: libkconfigwidgets-devel +BuildRequires: libkcoreaddons-devel +BuildRequires: libkcrash-devel +BuildRequires: libkdbusaddons-devel +BuildRequires: libkdegames5-devel +BuildRequires: libki18n-devel +BuildRequires: libkmahjongg5-devel +BuildRequires: libkwidgetsaddons-devel +BuildRequires: libkxmlgui-devel +BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: automoc4 @@ -31,50 +42,56 @@ KDE Mahjongg Solitaire. %setup -q %build -%cmake_kde4 -d build +%cmake_kde5 -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build +%find_lang %{name}5_qt --with-qt --with-man --with-html --all-name || touch %{name}5_qt.lang + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -touch --no-create %{_kde4_icondir}/hicolor >/dev/null 2>&1 +touch --no-create %{_kde5_icondir}/hicolor >/dev/null 2>&1 exit 0 %posttrans update-desktop-database -q >/dev/null 2>&1 -update-mime-database %{_kde4_mimedir} >/dev/null 2>&1 -gtk-update-icon-cache %{_kde4_icondir}/hicolor >/dev/null 2>&1 +update-mime-database %{_kde5_mimedir} >/dev/null 2>&1 +gtk-update-icon-cache %{_kde5_icondir}/hicolor >/dev/null 2>&1 exit 0 %postun if [ $1 -eq 0 ]; then update-desktop-database -q >/dev/null 2>&1 - update-mime-database %{_kde4_mimedir} >/dev/null 2>&1 - touch --no-create %{_kde4_icondir}/hicolor >/dev/null 2>&1 - gtk-update-icon-cache %{_kde4_icondir}/hicolor >/dev/null 2>&1 + update-mime-database %{_kde5_mimedir} >/dev/null 2>&1 + touch --no-create %{_kde5_icondir}/hicolor >/dev/null 2>&1 + gtk-update-icon-cache %{_kde5_icondir}/hicolor >/dev/null 2>&1 fi exit 0 -%files +%files -f %{name}5_qt.lang %defattr(-,root,root) -%{_kde4_bindir}/kmahjongg -%{_kde4_xdgappsdir}/kmahjongg.desktop -%dir %{_kde4_datadir}/kmahjongg -%{_kde4_datadir}/kmahjongg/kmahjonggui.rc -%dir %{_kde4_datadir}/kmahjongg/layouts -%{_kde4_datadir}/kmahjongg/layouts/* -%{_kde4_kcfgdir}/kmahjongg.kcfg -%doc %lang(en) %{_kde4_htmldir}/en/kmahjongg/* -%{_kde4_icondir}/hicolor/*/apps/kmahjongg.png -%{_kde4_icondir}/hicolor/scalable/apps/kmahjongg.svgz +%{_kde5_bindir}/kmahjongg +%{_datadir}/applications/org.kde.kmahjongg.desktop +%{_datadir}/kxmlgui5/kmahjongg/kmahjonggui.rc +%{_datadir}/metainfo/org.kde.kmahjongg.appdata.xml +%{_datadir}/qlogging-categories5/kmahjongg.categories +%dir %{_kde5_datadir}/kmahjongg +%dir %{_kde5_datadir}/kmahjongg/layouts +%{_kde5_datadir}/kmahjongg/layouts/* +%{_kde5_kcfgdir}/kmahjongg.kcfg +%{_kde5_icondir}/hicolor/*/apps/kmahjongg.png +%{_kde5_icondir}/hicolor/scalable/apps/kmahjongg.svgz %doc COPYING COPYING.DOC %changelog +* Thu Apr 30 2020 Silvan Calarco 20.04.0-1mamba +- update to 20.04.0 + * Wed Jan 06 2016 Silvan Calarco 15.12.0-1mamba - update to 15.12.0