Hello community, here is the log from the commit of package spyder for openSUSE:Factory checked in at 2012-06-12 21:59:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/spyder (Old) and /work/SRC/openSUSE:Factory/.spyder.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spyder", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/spyder/spyder.changes 2012-06-06 10:29:16.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.spyder.new/spyder.changes 2012-06-12 22:10:28.000000000 +0200 @@ -1,0 +2,7 @@ +Tue Jun 12 08:32:23 UTC 2012 - [email protected] + +- Install desktop file, with appropriate icon +- Tag documentation in spec file +- Fix rpmlint warnings + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spyder.spec ++++++ --- /var/tmp/diff_new_pack.vN9iQ6/_old 2012-06-12 22:10:30.000000000 +0200 +++ /var/tmp/diff_new_pack.vN9iQ6/_new 2012-06-12 22:10:30.000000000 +0200 @@ -40,7 +40,11 @@ BuildRequires: python-pylint BuildRequires: IPython BuildRequires: unzip +%if 0%{?suse_version} <= 1210 +BuildRequires: update-desktop-files +%endif Requires: python >= 2.5 +Requires: python-base = %{py_ver} Requires: python-qt4 > 4.4 Recommends: python-pyflakes >= 0.5.0 Recommends: python-rope >= 0.9.2 @@ -78,11 +82,40 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# remove hidden file rm %{buildroot}%{python_sitelib}/%{modname}/doc/.buildinfo -chmod +x %{buildroot}%{python_sitelib}/%{modname}//utils/external/pickleshare.py + +# fix permission +chmod +x %{buildroot}%{python_sitelib}/%{modname}/utils/external/pickleshare.py + +# fix encoding +sed -i 's/\r//' %{buildroot}%{python_sitelib}/%{modname}/doc/_sources/{console,editor,explorer,findinfiles,historylog,index,inspector,internalconsole,lightmode,onlinehelp,options,overview,projectexplorer,pylint,variableexplorer}.txt + +# create missing directories +mkdir -p %{buildroot}%{_datadir}/applications/ +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ + +# install the .desktop file +cp scripts/spyder.desktop %{buildroot}%{_datadir}/applications/ + +# add icon line to the .desktop file +sed -i '9 i Icon=spyder' %{buildroot}%{_datadir}/applications/spyder.desktop + +# install the icon +pushd %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ +ln -s %{python_sitelib}/%{modname}/images/spyder.svg +popd + %find_lang %{modname} + +%if 0%{?suse_version} <= 1210 +%suse_update_desktop_file spyder +%endif + %fdupes %{buildroot} + %clean rm -rf %{buildroot} @@ -90,9 +123,12 @@ %defattr(-,root,root,-) %doc README %{_bindir}/%{name} -%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info +%{_datadir}/applications/spyder.desktop +%{_datadir}/icons/hicolor/scalable/apps/spyder.svg %{python_sitelib}/%{modname}/ %{python_sitelib}/spyderplugins/ +%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info +%doc %{python_sitelib}/%{modname}/doc %exclude %{python_sitelib}/%{modname}/locale/ %exclude %{python_sitelib}/spyderplugins/locale/ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
