rdieter pushed to kapptemplate (master). "kf5-ize"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 16 17:36:29 UTC 2015


>From 90bb64b3da61f1816b44b1d4bbe4f13241cdeb94 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Thu, 16 Apr 2015 12:36:15 -0500
Subject: kf5-ize


diff --git a/kapptemplate.spec b/kapptemplate.spec
index d0b1667..7e82806 100644
--- a/kapptemplate.spec
+++ b/kapptemplate.spec
@@ -13,8 +13,28 @@ URL:     https://projects.kde.org/projects/kde/kdesdk/kapptemplate
 %endif
 Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz
 
-BuildRequires:  desktop-file-utils
-BuildRequires:  kdelibs4-devel >= 4.14
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+BuildRequires: extra-cmake-modules
+BuildRequires: kf5-rpm-macros
+BuildRequires: kf5-kcoreaddons-devel
+BuildRequires: kf5-kconfig-devel
+BuildRequires: kf5-kconfigwidgets-devel
+BuildRequires: kf5-kdbusaddons-devel
+BuildRequires: kf5-kguiaddons-devel
+BuildRequires: kf5-ki18n-devel
+BuildRequires: kf5-kiconthemes-devel
+BuildRequires: kf5-kitemviews-devel
+BuildRequires: kf5-kio-devel
+BuildRequires: kf5-knewstuff-devel
+BuildRequires: kf5-knotifyconfig-devel
+BuildRequires: kf5-knewstuff-devel
+BuildRequires: kf5-kwindowsystem-devel
+BuildRequires: kf5-kwidgetsaddons-devel
+BuildRequires: kf5-kxmlgui-devel
+BuildRequires: pkgconfig(Qt5Widgets) pkgconfig(Qt5Svg)
+BuildRequires: pkgconfig(phonon4qt5)
+BuildRequires: libappstream-glib
 
 Conflicts:      kdesdk-common < 4.10.80
 Provides:       kdesdk-kapptemplate = %{version}-%{release}
@@ -31,7 +51,7 @@ Factory for the easy creation of KDE/Qt components and programs
 %build
 mkdir %{_target_platform}
 pushd %{_target_platform}
-%{cmake_kde4} ..
+%{cmake_kf5} ..
 popd
 
 make %{?_smp_mflags} -C %{_target_platform}
@@ -40,32 +60,39 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
-%find_lang kapptemplate --with-kde --without-mo
 
 %check
-desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
+appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/%{name}.appdata.xml ||:
+desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/%{name}.desktop ||:
 
 
 %post
-touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
-
-%posttrans
-gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
-update-mime-database %{_kde4_datadir}/mime >& /dev/null ||:
+touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || :
 
 %postun
 if [ $1 -eq 0 ] ; then
-touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
-gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
-update-mime-database %{_kde4_datadir}/mime >& /dev/null ||:
+touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null
+gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
+update-mime-database %{_kf5_datadir}/mime >& /dev/null ||:
+
 fi
 
-%files -f kapptemplate.lang
-%{_kde4_bindir}/kapptemplate
-%{_kde4_appsdir}/kdevappwizard/
-%{_kde4_datadir}/applications/kde4/kapptemplate.desktop
-%{_kde4_datadir}/config.kcfg/kapptemplate.*
-%{_kde4_iconsdir}/hicolor/*/apps/kapptemplate.*
+%posttrans
+gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
+update-mime-database %{_kf5_datadir}/mime >& /dev/null ||:
+
+%files
+%doc COPYING*
+%{_kf5_bindir}/%{name}
+#{_sysconfdir}/xdg/%{name}.knsrc
+%{_kf5_datadir}/applications/%{name}.desktop
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_kf5_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_kf5_datadir}/kdevappwizard/
+%{_kf5_docdir}/HTML/en/%{name}/
+#{_kf5_datadir}/kxmlgui5/%{name}/
+#{_kf5_datadir}/sounds/%{name}/
+%{_kf5_datadir}/config.kcfg/%{name}.kcfg
 
 
 %changelog
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/kapptemplate.git/commit/?h=master&id=90bb64b3da61f1816b44b1d4bbe4f13241cdeb94


More information about the scm-commits mailing list