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

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 19 00:14:46 UTC 2015


>From 6f02ef4c42c4d340d95495dc3cc7e8efed7e9e2b Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Sat, 18 Apr 2015 19:14:23 -0500
Subject: kf5-ize


diff --git a/lokalize.spec b/lokalize.spec
index 4c0cdbc..52e56c0 100644
--- a/lokalize.spec
+++ b/lokalize.spec
@@ -13,29 +13,63 @@ URL:     https://projects.kde.org/projects/kde/kdesdk/lokalize
 %endif
 Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz
 
-BuildRequires:  desktop-file-utils
-BuildRequires:  kdelibs4-devel >= 4.14.4
-BuildRequires:  pkgconfig(hunspell)
-
-Requires:       kross(python)
-Requires:       kdesdk-strigi-analyzers >= %{version}
-
-Conflicts:      kdesdk-common < 4.10.80
-Obsoletes:      kdesdk-lokalize < 4.10.80
-Provides:       kdesdk-lokalize = %{version}-%{release}
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+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-kcrash-devel
+BuildRequires: kf5-kdbusaddons-devel
+BuildRequires: kf5-kdeclarative-devel
+BuildRequires: kf5-kdoctools-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-knotifications-devel
+BuildRequires: kf5-knotifyconfig-devel
+BuildRequires: kf5-knewstuff-devel
+BuildRequires: kf5-kross-devel
+BuildRequires: kf5-kservice-devel
+BuildRequires: kf5-kwindowsystem-devel
+BuildRequires: kf5-kwidgetsaddons-devel
+BuildRequires: kf5-kxmlgui-devel
+BuildRequires: kf5-sonnet-devel
+BuildRequires: pkgconfig(hunspell)
+BuildRequires: pkgconfig(Qt5Widgets) pkgconfig(Qt5DBus) pkgconfig(Qt5Script) pkgconfig(Qt5Sql)
+#BuildRequires: libappstream-glib
+
+Requires: dbus-python
+Requires: gettext
+# odf2xliff
+Requires: translate-toolkit
+%if 0%{?fedora} > 20
+Recommends: poxml
+Recommends: subversion
+%endif
 
+Conflicts: kdesdk-common < 4.10.80
+Obsoletes: kdesdk-lokalize < 4.10.80
+Provides:  kdesdk-lokalize = %{version}-%{release}
 
 %description
 Computer-aided translation system focusing on productivity and performance
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 
 %build
 mkdir %{_target_platform}
 pushd %{_target_platform}
-%{cmake_kde4} ..
+%{cmake_kf5} ..
 popd
 
 make %{?_smp_mflags} -C %{_target_platform}
@@ -44,37 +78,39 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
-%find_lang lokalize --with-kde --without-mo
-
-chmod +x %{buildroot}/%{_kde4_appsdir}/lokalize/scripts/odf/xliffmerge.py
-sed -i '1s/^/#!\/bin\/sh\n/' %{buildroot}/%{_kde4_appsdir}/lokalize/scripts/find-gui-text.sh
 
 %check
-desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
+#appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml ||:
+desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{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 || :
 fi
 
-%files -f lokalize.lang
-%doc COPYING COPYING.DOC
-%{_kde4_bindir}/lokalize
-%{_kde4_appsdir}/lokalize/
-%{_kde4_iconsdir}/hicolor/*/apps/lokalize.*
-%{_kde4_datadir}/config.kcfg/lokalize.kcfg
-%{_kde4_datadir}/applications/kde4/lokalize.desktop
+%posttrans
+gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
+
+%files
+%doc COPYING*
+%doc README
+%{_kf5_bindir}/%{name}
+#{_sysconfdir}/xdg/%{name}.knsrc
+%{_kf5_datadir}/applications/org.kde.%{name}.desktop
+#{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml
+%{_kf5_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_kf5_datadir}/%{name}/
+%{_kf5_docdir}/HTML/en/%{name}/
+#{_kf5_datadir}/kconf_update/%{name}*
+#{_kf5_datadir}/knotifications5/%{name}.notifyrc
+%{_kf5_datadir}/kxmlgui5/%{name}/
+#{_kf5_datadir}/sounds/%{name}/
+%{_kf5_datadir}/config.kcfg/%{name}.kcfg
 
 
 %changelog
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lokalize.git/commit/?h=master&id=6f02ef4c42c4d340d95495dc3cc7e8efed7e9e2b


More information about the scm-commits mailing list