15
0

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
This commit is contained in:
Todd R
2017-08-31 06:58:20 +00:00
committed by Git OBS Bridge
parent 4362497f76
commit 688ad76f4b
4 changed files with 47 additions and 45 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ccad1ad2a89ced1875c5ca4e16e5478b791d31fb187fe29f1541859318ed9055
size 159031

3
lesscpy-0.12.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5c552757efc6e5d14d9a917ebdd036e7b6ff12ae68a5beb64a0a1cf856a098b5
size 168823

View File

@@ -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

View File

@@ -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