From 688ad76f4b881ba3e18e1090aa7a2a1a90b104efe0201552415cd32f2c8f3569 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 31 Aug 2017 06:58:20 +0000 Subject: [PATCH] Accepting request 519852 from devel:languages:python:singlespec-staging 1 OBS-URL: https://build.opensuse.org/request/show/519852 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lesscpy?expand=0&rev=11 --- lesscpy-0.10.2.tar.gz | 3 -- lesscpy-0.12.0.tar.gz | 3 ++ python-lesscpy.changes | 12 +++++++ python-lesscpy.spec | 74 ++++++++++++++++++------------------------ 4 files changed, 47 insertions(+), 45 deletions(-) delete mode 100644 lesscpy-0.10.2.tar.gz create mode 100644 lesscpy-0.12.0.tar.gz diff --git a/lesscpy-0.10.2.tar.gz b/lesscpy-0.10.2.tar.gz deleted file mode 100644 index 2b74bd2..0000000 --- a/lesscpy-0.10.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccad1ad2a89ced1875c5ca4e16e5478b791d31fb187fe29f1541859318ed9055 -size 159031 diff --git a/lesscpy-0.12.0.tar.gz b/lesscpy-0.12.0.tar.gz new file mode 100644 index 0000000..d73b2c2 --- /dev/null +++ b/lesscpy-0.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c552757efc6e5d14d9a917ebdd036e7b6ff12ae68a5beb64a0a1cf856a098b5 +size 168823 diff --git a/python-lesscpy.changes b/python-lesscpy.changes index 2f45a93..5339d02 100644 --- a/python-lesscpy.changes +++ b/python-lesscpy.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Aug 31 06:55:58 UTC 2017 - toddrme2178@gmail.com + +- update to 0.12.0 + * no changelog available + +------------------------------------------------------------------- +Thu Aug 24 13:44:20 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com @@ -41,3 +52,4 @@ Wed Feb 29 12:25:36 UTC 2012 - saschpe@suse.de - Initial version + diff --git a/python-lesscpy.spec b/python-lesscpy.spec index 9ec528c..7aefa30 100644 --- a/python-lesscpy.spec +++ b/python-lesscpy.spec @@ -1,7 +1,7 @@ # # spec file for package python-lesscpy # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,41 +16,38 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-lesscpy -Version: 0.10.2 +Version: 0.12.0 Release: 0 -Url: https://github.com/robotis/lesscpy Summary: Lesscss compiler License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-ply -BuildRequires: python-setuptools -BuildRequires: python-six -# Test requirements: -BuildRequires: python-coverage -BuildRequires: python-flake8 -BuildRequires: python-nose +Url: https://github.com/robotis/lesscpy +Source: https://files.pythonhosted.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module flake8} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module ply} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: python-rpm-macros Requires: python-ply Requires: python-six -Requires(post): 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 BuildArch: noarch -%endif +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages %description python LessCss Compiler. -A compiler written in python 3 for the lesscss language. -For those of us not willing/able to have node.js installed in our environment. +A compiler written in python 3 for the lesscss language. +For those of us not willing/able to have node.js installed in our environment. Not all features of lesscss are supported (yet). -Some features wil probably never be supported (JavaScript evaluation). -This program uses PLY (Python Lex-Yacc) to tokenize/parse the input. +Some features wil probably never be supported (JavaScript evaluation). +This program uses PLY (Python Lex-Yacc) to tokenize/parse the input. %prep %setup -q -n lesscpy-%{version} @@ -58,33 +55,26 @@ This program uses PLY (Python Lex-Yacc) to tokenize/parse the input. rm test/test_{bootstrap3,less,issues}.py %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/lesscpy %{buildroot}%{_bindir}/lesscpy-%{py_ver} -ln -sf %{_sysconfdir}/alternatives/lesscpy %{buildroot}%{_bindir}/lesscpy - -%check -python setup.py -q test +%python_install +%python_clone -a %{buildroot}%{_bindir}/lesscpy %post -%_sbindir/update-alternatives \ - --install %{_bindir}/lesscpy lesscpy %{_bindir}/lesscpy-%{py_ver} 20 +%python_install_alternative lesscpy -%preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove lesscpy %{_bindir}/lesscpy-%{py_ver} -fi +%postun +%python_uninstall_alternative lesscpy -%files +%check +%python_exec setup.py test + +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst -%{_bindir}/lesscpy -%{_bindir}/lesscpy-%{py_ver} -%ghost %{_sysconfdir}/alternatives/lesscpy +%python_alternative %{_bindir}/lesscpy %{python_sitelib}/lesscpy -%{python_sitelib}/lesscpy-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/lesscpy-%{version}-py*.egg-info %changelog