rdieter pushed to kcharselect (master). "kf5-ize"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Apr 17 01:25:30 UTC 2015
>From 4c5c46dec2e418af6d1dcef5c8dc76417cbcf0e4 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Thu, 16 Apr 2015 20:25:21 -0500
Subject: kf5-ize
diff --git a/kcharselect.spec b/kcharselect.spec
index b872abc..2476d0e 100644
--- a/kcharselect.spec
+++ b/kcharselect.spec
@@ -14,8 +14,32 @@ URL: http://utils.kde.org/projects/kcharselect
%endif
Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz
+BuildRequires: cmake
BuildRequires: desktop-file-utils
-BuildRequires: kdelibs4-devel >= 4.14
+BuildRequires: extra-cmake-modules
+BuildRequires: gettext
+BuildRequires: kf5-rpm-macros
+BuildRequires: kf5-kcompletion-devel
+BuildRequires: kf5-kconfig-devel
+BuildRequires: kf5-kconfigwidgets-devel
+BuildRequires: kf5-kcoreaddons-devel
+BuildRequires: kf5-kdbusaddons-devel
+BuildRequires: kf5-kdeclarative-devel
+BuildRequires: kf5-kguiaddons-devel
+BuildRequires: kf5-ki18n-devel
+BuildRequires: kf5-kiconthemes-devel
+BuildRequires: kf5-kitemviews-devel
+BuildRequires: kf5-kio-devel
+BuildRequires: kf5-kjobwidgets-devel
+BuildRequires: kf5-knewstuff-devel
+BuildRequires: kf5-knotifyconfig-devel
+BuildRequires: kf5-knewstuff-devel
+BuildRequires: kf5-kservice-devel
+BuildRequires: kf5-kwindowsystem-devel
+BuildRequires: kf5-kwidgetsaddons-devel
+BuildRequires: kf5-kxmlgui-devel
+BuildRequires: pkgconfig(Qt5Widgets)
+#BuildRequires: libappstream-glib
# when split occured
Conflicts: kdeutils-common < 6:4.7.80
@@ -23,22 +47,19 @@ Conflicts: kdeutils-common < 6:4.7.80
Obsoletes: kdeutils-kcharselect < 6:4.7.80
Provides: kdeutils-kcharselect = 6:%{version}-%{release}
-%{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}}
-
-
%description
KCharSelect is a tool to select special characters from all installed
fonts and copy them into the clipboard.
%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}
@@ -47,18 +68,26 @@ 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/KCharSelect.desktop
-
-
-%files -f %{name}.lang
-%doc COPYING
-%{_kde4_bindir}/kcharselect
-%{_kde4_appsdir}/kcharselect/
-%{_kde4_datadir}/applications/kde4/KCharSelect.desktop
+#appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/*appdata/%{name}.appdata.xml ||:
+desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop ||:
+
+
+%files
+%doc COPYING*
+#doc README
+%{_kf5_bindir}/%{name}
+#{_sysconfdir}/xdg/%{name}.knsrc
+%{_kf5_datadir}/applications/org.kde.KCharSelect.desktop
+#{_kf5_datadir}/appdata/*%{name}.appdata.xml
+#{_kf5_datadir}/icons/hicolor/*/apps/%{name}.*
+#{_kf5_datadir}/%{name}/
+%{_kf5_docdir}/HTML/en/%{name}/
+#{_kf5_datadir}/kconf_update/%{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/kcharselect.git/commit/?h=master&id=4c5c46dec2e418af6d1dcef5c8dc76417cbcf0e4
More information about the scm-commits
mailing list