Hello community,

here is the log from the commit of package python-lesscpy for openSUSE:Factory 
checked in at 2016-08-17 12:05:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lesscpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-lesscpy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lesscpy"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lesscpy/python-lesscpy.changes    
2014-11-18 22:46:07.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-lesscpy.new/python-lesscpy.changes       
2016-08-17 12:05:34.000000000 +0200
@@ -1,0 +2,18 @@
+Mon Aug 15 14:51:56 UTC 2016 - [email protected]
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------
+Thu May  7 11:06:21 UTC 2015 - [email protected]
+
+- update to 0.10.2:
+  * no changelog available
+- add python-setuptools and python-six as build dependencies
+- add python-coverage, python-flake8 and python-nose as test
+  dependencies
+- add python-six as runtime dependency
+- remove some failing tests which rely on find_and_load_cases
+- run the tests via setup.py
+- fix alternatives for lesscpy binary
+
+-------------------------------------------------------------------

Old:
----
  lesscpy-0.9j.tar.gz

New:
----
  lesscpy-0.10.2.tar.gz

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

Other differences:
------------------
++++++ python-lesscpy.spec ++++++
--- /var/tmp/diff_new_pack.FSB8fG/_old  2016-08-17 12:05:35.000000000 +0200
+++ /var/tmp/diff_new_pack.FSB8fG/_new  2016-08-17 12:05:35.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lesscpy
 #
-# Copyright (c) 2014 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,7 +17,7 @@
 
 
 Name:           python-lesscpy
-Version:        0.9j
+Version:        0.10.2
 Release:        0
 Url:            https://github.com/robotis/lesscpy
 Summary:        Lesscss compiler
@@ -26,11 +26,17 @@
 Source:         
http://pypi.python.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
-# Test requirements:
 BuildRequires:  python-ply
+BuildRequires:  python-setuptools
+BuildRequires:  python-six
+# Test requirements:
+BuildRequires:  python-coverage
+BuildRequires:  python-flake8
+BuildRequires:  python-nose
 Requires:       python-ply
+Requires:       python-six
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
 %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
@@ -48,37 +54,36 @@
 
 %prep
 %setup -q -n lesscpy-%{version}
+# remove failing tests, which rely on find_and_load_cases
+rm test/test_{bootstrap3,less,issues}.py
 
 %build
 python setup.py build
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-mv %{buildroot}%{_bindir}/lesscpy{,-%{py_ver}}
-ln -s %{_bindir}/lesscpy-%{py_ver} %{buildroot}%{_bindir}/lesscpy
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/lesscpy %{buildroot}%{_bindir}/lesscpy-%{py_ver}
+ln -sf %{_sysconfdir}/alternatives/lesscpy %{buildroot}%{_bindir}/lesscpy
 
 %check
-python lesscpy/test/__main__.py # Sigh!
-
-%pre
-# Since /usr/bin/lesscpy became ghosted to be used with update-alternatives, we
-# have to get rid of the old binary:
-[ -h %{_bindir}/lesscpy ] || rm -f %{_bindir}/lesscpy
+python setup.py -q test
 
 %post
-update-alternatives \
+%_sbindir/update-alternatives \
     --install %{_bindir}/lesscpy lesscpy %{_bindir}/lesscpy-%{py_ver} 20
 
 %preun
 if [ $1 -eq 0 ] ; then
-    update-alternatives --remove lesscpy %{_bindir}/lesscpy-%{py_ver}
+    %_sbindir/update-alternatives --remove lesscpy %{_bindir}/lesscpy-%{py_ver}
 fi
 
 %files
 %defattr(-,root,root,-)
 %doc LICENSE README.rst
-%ghost %{_bindir}/lesscpy
+%{_bindir}/lesscpy
 %{_bindir}/lesscpy-%{py_ver}
+%ghost %{_sysconfdir}/alternatives/lesscpy
 %{python_sitelib}/lesscpy
 %{python_sitelib}/lesscpy-%{version}-py%{py_ver}.egg-info
 

++++++ lesscpy-0.9j.tar.gz -> lesscpy-0.10.2.tar.gz ++++++
++++ 23611 lines of diff (skipped)


Reply via email to