Hello community, here is the log from the commit of package kye for openSUSE:Factory checked in at 2015-10-08 08:25:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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-08-07 00:25:16.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kye.new/kye.changes 2015-10-08 08:25:03.000000000 +0200 @@ -1,0 +2,12 @@ +Tue Oct 6 10:22:50 UTC 2015 - nemy...@opensuse.org + +- Modernize spec +- Use %{name2} instead of kye-edit +- Use %{name} instead of kye +- Use %{variable} instead of %variable +- Add Requires for kye-data, Users need more that only 3 levels +- Use BuildRequires default python-setuptools instead of python-base +- Add sed, Fix URL +- Add NEWS and README to Documentation + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kye.spec ++++++ --- /var/tmp/diff_new_pack.6qv3w1/_old 2015-10-08 08:25:04.000000000 +0200 +++ /var/tmp/diff_new_pack.6qv3w1/_new 2015-10-08 08:25:04.000000000 +0200 @@ -16,6 +16,8 @@ # +%define name2 kye-edit + Name: kye Version: 1.0 Release: 0 @@ -23,18 +25,18 @@ License: GPL-2.0+ Group: Amusements/Games/Strategy/Turn Based 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: python-base +Source0: http://games.moria.org.uk/kye/download/%{name}-%{version}.tar.gz +Source1: %{name}.desktop +Source2: %{name2}.desktop +BuildRequires: python-setuptools %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: update-desktop-files %endif +Requires: %{name}-data Requires: gdk-pixbuf-loader-rsvg Requires: python-gtk +BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 @@ -57,8 +59,11 @@ %prep %setup -q +# SED-FIX-OPENSUSE -- Fix URL +sed -i 's|http://games.moria.org.uk/kye/pygtk|http://games.moria.org.uk/kye/|' kye/dialogs.py setup.py README + %build -python setup.py build; +python setup.py build # Workaround for librsvg bug [bnc#789728] mkdir t; @@ -69,31 +74,39 @@ popd; %install -python setup.py install --prefix=%_prefix --root=%buildroot; -mkdir -p "%buildroot/%_datadir/pixmaps"; -cp -a kye*icon.png "%buildroot/%_datadir/pixmaps/"; +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# install icons +mkdir -p %{buildroot}%{_datadir}/pixmaps +install -Dm 0644 %{name}*icon.png %{buildroot}%{_datadir}/pixmaps + # convenience -ln -s Kye "%buildroot/%_bindir/kye"; -ln -s Kye-edit "%buildroot/%_bindir/kye-edit"; +ln -s Kye %{buildroot}%{_bindir}/%{name} +ln -s Kye-edit %{buildroot}%{_bindir}/%{name2} -c="%buildroot/%_datadir/applications" -mkdir -p "$c" -install -Dpm0644 "%{S:1}" "%{S:2}" "$c/" +# install Desktop files +mkdir -p %{buildroot}%{_datadir}/applications +install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop +install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name2}.desktop %if 0%{?suse_version} -%suse_update_desktop_file %name %name-edit -%fdupes -s %buildroot/%_prefix + %suse_update_desktop_file %{name} %{name}-edit + %fdupes -s %{buildroot}%{_prefix} %endif %files %defattr(-,root,root) -%_bindir/kye* -%_bindir/Kye* -%_datadir/%name -%_datadir/applications/kye* -%_datadir/pixmaps/kye* -%python_sitelib/%name -%python_sitelib/%name-%version-py%py_ver.egg-info -%doc COPYING +%doc COPYING NEWS README +%{_bindir}/Kye +%{_bindir}/Kye-edit +%{_bindir}/%{name} +%{_bindir}/%{name2} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/applications/%{name2}.desktop +%{_datadir}/pixmaps/%{name}-icon.png +%{_datadir}/pixmaps/%{name2}-icon.png +%{_datadir}/%{name} +%{python_sitelib}/%{name} +%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info %changelog