Hello community,

here is the log from the commit of package kf5-filesystem for openSUSE:Factory 
checked in at 2015-10-19 22:16:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kf5-filesystem (Old)
 and      /work/SRC/openSUSE:Factory/.kf5-filesystem.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kf5-filesystem"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kf5-filesystem/kf5-filesystem.changes    
2015-08-10 09:15:33.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kf5-filesystem.new/kf5-filesystem.changes       
2015-10-19 22:16:14.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Sep 21 09:29:29 UTC 2015 - wba...@tmo.at
+
+- Add a new %kf5_find_lang macro. Purpose and usage is similar to
+  the standard %find_lang macro (on which this is loosely based),
+  but it only looks for translations files in /usr/share/locale/kf5
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kf5-filesystem.spec ++++++
--- /var/tmp/diff_new_pack.Kf6BV3/_old  2015-10-19 22:16:15.000000000 +0200
+++ /var/tmp/diff_new_pack.Kf6BV3/_new  2015-10-19 22:16:15.000000000 +0200
@@ -18,7 +18,7 @@
 
 Name:           kf5-filesystem
 Url:            http://www.kde.org
-Version:        20150610
+Version:        20150923
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Summary:        KF5 Directory Layout

++++++ macros.kf5 ++++++
--- /var/tmp/diff_new_pack.Kf6BV3/_old  2015-10-19 22:16:15.000000000 +0200
+++ /var/tmp/diff_new_pack.Kf6BV3/_new  2015-10-19 22:16:15.000000000 +0200
@@ -131,3 +131,39 @@
 
 %make_jobs \
   %{__make} %{?_smp_mflags} VERBOSE=1
+
+%kf5_find_lang() \
+if test %# -ge 1; then NAME=%1; else NAME=%{name}; fi \
+if test %# -ge 2; then MO_NAME=%2; else MO_NAME=$NAME.lang; fi \
+if ! test -s $MO_NAME ; then \
+   echo "%defattr (644, root, root, 755)" > $MO_NAME \
+fi \
+MO_NAME_NEW=$MO_NAME.tmp.$$ \
+rm -f $MO_NAME_NEW \
+\
+# remove languages we do not yet support - but give out statistics  \
+if [ -d "%{buildroot}%{_kf5_localedir}" ] ; then \
+    find "%{buildroot}%{_kf5_localedir}" -maxdepth 1 -type d | sed 
's:'"%{buildroot}"%{_kf5_localedir}/'::; /^$/d' | while read dir; do \
+    if ! rpm -ql filesystem | egrep -q "/usr/share/locale/$dir"$; then \
+        find %{buildroot}%{_kf5_localedir}/$dir -name *.mo | sed 
's:'"%{buildroot}"'::' | while read file; do \
+        echo -n "removing translation $file: " \
+        msgunfmt "%{buildroot}/$file" | msgfmt --statistics -o /dev/null - \
+        done \
+        rm -rf %{buildroot}%{_kf5_localedir}/$dir \
+    fi \
+    done \
+    echo "%dir %{_kf5_localedir}" >> $MO_NAME \
+fi \
+\
+find "%{buildroot}" -type f -o -type l|sed ' \
+s:'"%{buildroot}"':: \
+s:\\(.*/locale/kf5/\\)\\([^/_]\\+\\)\\([^/]*\\)\\(.*\\.mo$\\):%dir %lang(\\2) 
\\1\\2\\3\\n%dir %lang(\\2) \\1\\2\\3/LC_MESSAGES\\n%lang(\\2) \\1\\2\\3\\4: \
+s:^\\([^%].*\\):: \
+/^$/d' \ > $MO_NAME_NEW \
+if ! grep -q / $MO_NAME_NEW; then \
+        echo "No translations found for ${NAME} in %{buildroot}" \
+        rm -f $MO_NAME_NEW \
+        exit 1 \
+fi \
+sort -u $MO_NAME_NEW >> $MO_NAME \
+rm -f $MO_NAME_NEW


Reply via email to