Hello community, here is the log from the commit of package kye for openSUSE:Factory checked in at 2015-08-03 17:21:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kye (Old) and /work/SRC/openSUSE:Factory/.kye.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kye" Changes: -------- --- /work/SRC/openSUSE:Factory/kye/kye.changes 2015-04-15 16:27:37.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kye.new/kye.changes 2015-08-03 17:22:00.000000000 +0200 @@ -1,0 +2,12 @@ +Thu Jul 23 15:51:39 UTC 2015 - [email protected] + +- Add desktop entry files kye.desktop and kye-edit.desktop instead + of entries in spec +- Use BuildRequires update-desktop-files instead of desktop-file-utils + and %if 0%{?suse_version} +- Add BuildRequires for fdupes and use %fdupes macro to reduce size + of the package +- Add Requires for kye-data +- Add check BuildArch: noarch for older openSUSE versions + +------------------------------------------------------------------- New: ---- kye-edit.desktop kye.desktop ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kye.spec ++++++ --- /var/tmp/diff_new_pack.knAflI/_old 2015-08-03 17:22:01.000000000 +0200 +++ /var/tmp/diff_new_pack.knAflI/_new 2015-08-03 17:22:01.000000000 +0200 @@ -25,14 +25,22 @@ Url: http://games.moria.org.uk/kye/ Source: http://games.moria.org.uk/kye/download/%name-%version.tar.gz +Source1: %name.desktop +Source2: %name-edit.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: desktop-file-utils BuildRequires: python-base +%if 0%{?suse_version} +BuildRequires: fdupes BuildRequires: update-desktop-files -BuildArch: noarch -%py_requires +%endif +Requires: %name-data Requires: gdk-pixbuf-loader-rsvg Requires: python-gtk +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif %description This is a clone of the original Kye game for Windows, by Colin Garbutt. @@ -69,33 +77,14 @@ ln -s Kye "%buildroot/%_bindir/kye"; ln -s Kye-edit "%buildroot/%_bindir/kye-edit"; -cat >>"%name.desktop" <<-EOF - [Desktop Entry] - Type=Application - Version=1.0 - Name=Kye - Icon=kye-icon - Exec=Kye %f - Terminal=false - Categories=Game;LogicGame; -EOF - -cat >>"%name-edit.desktop" <<-EOF - [Desktop Entry] - Type=Application - Version=1.0 - Name=Kye Level Editor - Exec=Kye-edit %f - Icon=kye-edit-icon - Terminal=false - Categories=Game;LogicGame; -EOF - -mkdir -p "%buildroot/%_datadir/applications"; -desktop-file-install --dir "%buildroot/%_datadir/applications/" \ - "%name.desktop" "%name-edit.desktop" -%suse_update_desktop_file %name -%suse_update_desktop_file %name-edit +c="%buildroot/%_datadir/applications" +mkdir -p "$c" +install -Dpm0644 "%{S:1}" "%{S:2}" "$c/" + +%if 0%{?suse_version} +%suse_update_desktop_file %name %name-edit +%fdupes -s %buildroot/%_prefix +%endif %files %defattr(-,root,root) @@ -104,6 +93,7 @@ %_datadir/%name %_datadir/applications/kye* %_datadir/pixmaps/kye* -%python_sitelib/* +%python_sitelib/%name +%python_sitelib/%name-%version-py%py_ver.egg-info %changelog ++++++ kye-edit.desktop ++++++ [Desktop Entry] Name=Kye Level Editor GenericName=Kye Comment=Logic puzzle game with arcade elements Icon=kye-edit-icon Exec=Kye-edit %f Terminal=false Type=Application Categories=Game;LogicGame; StartupNotify=false ++++++ kye.desktop ++++++ [Desktop Entry] Name=Kye GenericName=Kye Comment=Logic puzzle game with arcade elements Icon=kye-icon Exec=Kye Terminal=false Type=Application Categories=Game;LogicGame; StartupNotify=false
