Hello community, here is the log from the commit of package python-scour for openSUSE:Factory checked in at 2015-05-19 23:36:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-scour (Old) and /work/SRC/openSUSE:Factory/.python-scour.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scour" Changes: -------- --- /work/SRC/openSUSE:Factory/python-scour/python-scour.changes 2012-02-14 11:26:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-scour.new/python-scour.changes 2015-05-19 23:36:59.000000000 +0200 @@ -1,0 +2,14 @@ +Tue May 12 15:16:12 UTC 2015 - [email protected] + +- update to version 0.30: + * no changelog available +- update source URL +- point the source URL to pypi +- add BuildRequires python-setuptools and unzip +- fix end of line encoding of scour.py +- remove unwanted shebang of python sitelib files +- run setup.py build and install instead of copying the files +- remove the documentation files: not provided anymore +- add egg-info to the package + +------------------------------------------------------------------- Old: ---- python-scour-0.26.tar.bz2 New: ---- scour-0.30.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-scour.spec ++++++ --- /var/tmp/diff_new_pack.NrzzFL/_old 2015-05-19 23:37:00.000000000 +0200 +++ /var/tmp/diff_new_pack.NrzzFL/_new 2015-05-19 23:37:00.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-scour # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,16 @@ Name: python-scour -Version: 0.26 +Version: 0.30 Release: 0 -License: Apache-2.0 Summary: An SVG scrubber -Url: http://www.codedread.com/scour +License: Apache-2.0 Group: System/Libraries -Source: %{name}-%{version}.tar.bz2 +Url: https://github.com/oberstet/scour +Source: https://pypi.python.org/packages/source/s/scour/scour-%{version}.zip BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: unzip Provides: scour = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 @@ -37,20 +39,22 @@ Scour is an open-source Python script that aggressively cleans SVG files, removing a lot of 'cruft' that certain tools or authors embed into their documents. The goal of scour is to provide an identically rendered image. %prep -%setup -q +%setup -q -n scour-%{version} +# fix end of line encoding +sed -i 's/\r$//' scour/scour.py +# remove unwanted shebang +sed -i '/^#!/ d' scour/{scour.py,yocto_css.py,svg_transform.py} %build +python setup.py build %install -mkdir -p %{buildroot}%{python_sitelib}/scour -mkdir -p %{buildroot}%{_bindir} -mv {scour,svg_regex,svg_transform,yocto_css}.py %{buildroot}%{python_sitelib}/scour/ -ln -sf %{python_sitelib}/scour/scour.py %{buildroot}%{_bindir}/scour +python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root) -%doc LICENSE NOTICE README.txt %{_bindir}/scour %{python_sitelib}/scour/ +%{python_sitelib}/scour-*.egg-info %changelog
