Hello community,

here is the log from the commit of package calibre for openSUSE:Factory checked 
in at 2015-07-12 22:52:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/calibre (Old)
 and      /work/SRC/openSUSE:Factory/.calibre.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "calibre"

Changes:
--------
--- /work/SRC/openSUSE:Factory/calibre/calibre.changes  2015-06-30 
10:19:06.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.calibre.new/calibre.changes     2015-07-12 
22:52:10.000000000 +0200
@@ -1,0 +2,12 @@
+Mon Jul  6 02:52:09 UTC 2015 - [email protected]
+
+- Generate the application icon in different sizes and install
+  into hicolor-icon-theme dir; improves icon look on HiDPI
+  displays.
+- Use post(un) scripts to update desktop database (needed when
+  installing a .desktop entry) and icon-theme cache (for hicolor
+  icon-theme).
+- Drop external .png image and corresponding installed icon from
+  /usr/share/pixmaps; no longer needed.
+
+-------------------------------------------------------------------

Old:
----
  calibre.png

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

Other differences:
------------------
++++++ calibre.spec ++++++
--- /var/tmp/diff_new_pack.XghCH4/_old  2015-07-12 22:52:11.000000000 +0200
+++ /var/tmp/diff_new_pack.XghCH4/_new  2015-07-12 22:52:11.000000000 +0200
@@ -25,13 +25,13 @@
 Url:            http://calibre-ebook.com
 Source0:        
http://download.calibre-ebook.com/%{version}/calibre-%{version}.tar.xz
 Source2:        %{name}.desktop
-Source3:        %{name}.png
 Patch1:         calibre-0.9.38-pillow.patch
 Patch2:         calibre-setup.install.py.diff
 # PATCH-FIX-OPENSUSE: disabling Autoupdate Searcher
 Patch3:         calibre-no-update.diff
 BuildRequires:  fdupes
 BuildRequires:  help2man
+BuildRequires:  hicolor-icon-theme
 BuildRequires:  update-desktop-files
 
 # A note on BuildRequires and Requires:
@@ -151,7 +151,7 @@
 find "." -type f -name \*.py -exec \
     sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} +
 
-cp -v %{SOURCE2} %{SOURCE3}  .
+cp -v %{SOURCE2}  .
 
 %build
 LANG="en_US.UTF8" \
@@ -170,6 +170,14 @@
    --staging-mandir=%{buildroot}%{_mandir} \
    --libdir=%{_libdir}
 
+# GENERATE AND INSTALL HIRES ICONS INTO HICOLOR DIR (PRESENT ICON LOOKS 
BLURRED ON HiDPI)
+for i in 24 32 48 64 128 256 512
+do
+  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps
+  convert icons/calibre.png \
+          -resize ${i}x${i} 
%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
+done
+
 %suse_update_desktop_file -i -n calibre Office Viewer
 
 %fdupes %{buildroot}
@@ -187,13 +195,23 @@
 # add shebangs
 sed -i -e '1i#!/usr/bin/python' %{buildroot}%{_libdir}/%{name}/chardet/*.py
 
+%post
+%desktop_database_post
+%icon_theme_cache_post
+
+%postun
+%desktop_database_postun
+%icon_theme_cache_postun
+
 %files
 # -f %%{name}.lang  -f iso639.lang
 %defattr(-,root,root)
 %{_bindir}/*
 %exclude %{_bindir}/calibre-uninstall
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/pixmaps/%{name}.png
+%dir %{_datadir}/icons/hicolor/512x512
+%dir %{_datadir}/icons/hicolor/512x512/apps
+%{_datadir}/icons/hicolor/*/apps/*.png
 %{_datadir}/%{name}/
 %{_libdir}/%{name}/
 %{_datadir}/appdata/


Reply via email to