Hello community,

here is the log from the commit of package catfish for openSUSE:Factory checked 
in at 2018-02-09 15:51:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/catfish (Old)
 and      /work/SRC/openSUSE:Factory/.catfish.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "catfish"

Fri Feb  9 15:51:37 2018 rev:2 rq:574309 version:1.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/catfish/catfish.changes  2017-08-08 
11:58:53.566954531 +0200
+++ /work/SRC/openSUSE:Factory/.catfish.new/catfish.changes     2018-02-09 
15:51:38.790555441 +0100
@@ -1,0 +2,18 @@
+Tue Jan 30 19:53:07 UTC 2018 - avvi...@yandex.by
+
+- Update to 1.4.4:
+  * Installer cleanup
+  * Updated appdata requirements
+  * Add Keywords to desktop file (lintian), extend Categories 
+    with GTK (desktop-file-validate)
+  * Catfish 1.4.3:
+  * pycodestyle improvements
+  * Improve search speed by discarding .cache and .gvfs when 
+    possible, add --basename to locate query
+  * Stop all search methods when engine is stopped, improve error 
+    handling with thumbnails 
+- Update the sourceurl
+- Use appdata instead of metainfo
+- Fix: non-executable-script
+
+-------------------------------------------------------------------

Old:
----
  catfish-1.4.2.tar.bz2

New:
----
  catfish-1.4.4.tar.gz

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

Other differences:
------------------
++++++ catfish.spec ++++++
--- /var/tmp/diff_new_pack.kp42a2/_old  2018-02-09 15:51:39.506529725 +0100
+++ /var/tmp/diff_new_pack.kp42a2/_new  2018-02-09 15:51:39.510529581 +0100
@@ -18,13 +18,13 @@
 %define series 1.4
 
 Name:           catfish
-Version:        1.4.2
+Version:        1.4.4
 Release:        0
 License:        GPL-2.0
 Summary:        Versatile File Searching Tool
 Url:            http://www.twotoasts.de/index.php/catfish/
 Group:          Productivity/File utilities
-Source:         
https://launchpad.net/catfish-search/%{series}/%{version}/+download/%{name}-%{version}.tar.bz2
+Source:         
https://launchpad.net/catfish-search/%{series}/%{version}/+download/%{name}-%{version}.tar.gz
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  intltool
@@ -66,7 +66,7 @@
 %setup -q
 
 %build
-python3 ./setup.py build
+python3 ./setup.py build -g
 
 %install
 python3 ./setup.py install -O1 \
@@ -74,22 +74,26 @@
     --root="%{buildroot}" \
     --record-rpm=files.lst
 rm -rf %{buildroot}%{_datadir}/doc/%{name}
-grep -rl '^#!' %{buildroot}%{python3_sitelib}/%{name}*/ | xargs chmod 0755
+# Fix: non-executable-script
+pushd %{buildroot}
+for _file in $(grep -rl '^\#\!\/'); do
+  find -name ${_file##*/} -type f -perm -644 -exec sed '/^\#\!/d' -i {} \+
+  find -name ${_file##*/} -type f -perm -755 -exec sed '1 
s|^|\#\!%{_bindir}/python3\n|' -i {} \+
+done
+%py3_compile -O .%{python3_sitelib}
+popd
 sed -i "s/\(Exec=\).*/\1%{name}/" 
%{buildroot}%{_datadir}/applications/%{name}.desktop
 for i in 16 24 32 48; do
     install -dm 0755 %{buildroot}%{_datadir}/icons/hicolor/$i\x$i/apps
     rsvg-convert -h $i -w $i data/media/catfish.svg -o 
%{buildroot}%{_datadir}/icons/hicolor/$i\x$i/apps/%{name}.png
 done
-%suse_update_desktop_file -r %{name} GNOME Utility Filesystem
+mkdir -p %{buildroot}%{_datadir}/appdata
+mv %{buildroot}%{_datadir}/{metainfo,appdata}/%{name}.appdata.xml
 
+%suse_update_desktop_file -r %{name} GNOME Utility Filesystem
+%fdupes %{buildroot}%{python3_sitelib}
 %find_lang %{name}
 
-# Python byte compile.
-pushd %{buildroot}%{python3_sitelib}/%{name}_lib/__pycache__
-%py3_compile -O ..
-popd
-%fdupes %{buildroot}%{python3_sitelib}/%{name}_lib/__pycache__/
-
 %post
 %icon_theme_cache_post
 
@@ -101,7 +105,6 @@
 %doc AUTHORS ChangeLog COPYING README
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
-%dir %{_datadir}/appdata
 %{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.??g


Reply via email to