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

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 15 08:17:06 UTC 2015


>From 269de03f7bdb8dc7346f32531815ce8ae25e0bdc Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Wed, 15 Apr 2015 03:16:50 -0500
Subject: kf5-ize


diff --git a/filelight.spec b/filelight.spec
index 192052c..63ce935 100644
--- a/filelight.spec
+++ b/filelight.spec
@@ -16,8 +16,18 @@ URL:     http://utils.kde.org/projects/filelight
 %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: extra-cmake-modules
+BuildRequires: gettext
+BuildRequires: kf5-rpm-macros
+BuildRequires: kf5-kcoreaddons-devel
+BuildRequires: kf5-kdoctools-devel
+BuildRequires: kf5-ki18n-devel
+BuildRequires: kf5-kio-devel
+BuildRequires: kf5-kparts-devel
+BuildRequires: kf5-kxmlgui-devel
+BuildRequires: kf5-solid-devel
+BuildRequires: pkgconfig(Qt5DBus) pkgconfig(Qt5Widgets) pkgconfig(Qt5Script) pkgconfig(Qt5Test)
 
 # when split occured
 Conflicts: kdeutils-common < 6:4.7.80
@@ -25,8 +35,6 @@ Conflicts: kdeutils-common < 6:4.7.80
 Obsoletes: kdeutils-filelight < 6:4.7.80
 Provides:  kdeutils-filelight = 6:%{version}-%{release}
 
-%{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}}
-
 
 %description
 Filelight allows you to quickly understand exactly where your diskspace
@@ -34,13 +42,13 @@ is being used by graphically representing your file system.
 
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 
 %build
-mkdir -p %{_target_platform}
+mkdir %{_target_platform}
 pushd %{_target_platform}
-%{cmake_kde4} ..
+%{cmake_kf5} ..
 popd
 
 make %{?_smp_mflags} -C %{_target_platform}
@@ -49,35 +57,35 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
-%find_lang %{name} --with-kde --without-mo
-
 
 %check
-desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
+desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/*%{name}.desktop
 
 
 %post
-touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
 
 %posttrans
-gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+gtk-update-icon-cache %{_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 ||:
+touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
+gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null ||:
 fi
 
-%files -f %{name}.lang
+%files
 %doc COPYING
 %doc AUTHORS ChangeLog NEWS README
-%{_kde4_bindir}/filelight
-%{_kde4_appsdir}/filelight*/
-%{_kde4_configdir}/filelightrc
-%{_kde4_datadir}/applications/kde4/filelight.desktop
-%{_kde4_datadir}/kde4/services/filelightpart.desktop
-%{_kde4_iconsdir}/hicolor/*/*/*filelight.*
-%{_kde4_libdir}/kde4/filelightpart.so
+%{_kf5_bindir}/filelight
+%{_kf5_datadir}/applications/*filelight.desktop
+%{_kf5_datadir}/icons/hicolor/*/*/*filelight.*
+%{_sysconfdir}/xdg/filelightrc
+%{_kf5_qtplugindir}/filelightpart.so
+%{_kf5_datadir}/kservices5/filelightpart.desktop
+%{_kf5_datadir}/kxmlgui5/filelight/
+%{_kf5_datadir}/kxmlgui5/filelightpart/
+%{_kf5_docdir}/HTML/en/filelight/
 
 
 %changelog
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/filelight.git/commit/?h=master&id=269de03f7bdb8dc7346f32531815ce8ae25e0bdc


More information about the scm-commits mailing list