2012-02-29 12:49:10 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-lesscpy
|
|
|
|
|
#
|
2019-03-01 08:52:03 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-29 12:49:10 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2013-08-12 11:42:56 +00:00
|
|
|
|
2018-12-04 13:38:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-29 12:49:10 +00:00
|
|
|
#
|
|
|
|
|
|
2013-08-12 11:42:56 +00:00
|
|
|
|
2017-08-31 06:58:20 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-02-29 12:49:10 +00:00
|
|
|
Name: python-lesscpy
|
2019-03-01 08:52:03 +00:00
|
|
|
Version: 0.13.0
|
2012-02-29 12:49:10 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Lesscss compiler
|
|
|
|
|
License: MIT
|
2019-03-01 08:52:03 +00:00
|
|
|
URL: https://github.com/lesscpy/lesscpy
|
2017-08-31 06:58:20 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
|
BuildRequires: %{python_module ply}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module six}
|
2019-03-01 08:52:03 +00:00
|
|
|
BuildRequires: fdupes
|
2017-08-31 06:58:20 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-02-29 12:49:10 +00:00
|
|
|
Requires: python-ply
|
2015-05-07 12:04:20 +00:00
|
|
|
Requires: python-six
|
2018-12-04 17:16:11 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
2012-02-29 12:49:10 +00:00
|
|
|
BuildArch: noarch
|
2017-08-31 06:58:20 +00:00
|
|
|
%python_subpackages
|
2012-02-29 12:49:10 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
python LessCss Compiler.
|
|
|
|
|
|
2017-08-31 06:58:20 +00:00
|
|
|
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.
|
2012-02-29 12:49:10 +00:00
|
|
|
Not all features of lesscss are supported (yet).
|
2017-08-31 06:58:20 +00:00
|
|
|
Some features wil probably never be supported (JavaScript evaluation).
|
|
|
|
|
This program uses PLY (Python Lex-Yacc) to tokenize/parse the input.
|
2012-02-29 12:49:10 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n lesscpy-%{version}
|
2015-05-07 12:04:20 +00:00
|
|
|
# remove failing tests, which rely on find_and_load_cases
|
|
|
|
|
rm test/test_{bootstrap3,less,issues}.py
|
2012-02-29 12:49:10 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-08-31 06:58:20 +00:00
|
|
|
%python_build
|
2012-02-29 12:49:10 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-08-31 06:58:20 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/lesscpy
|
2019-10-14 13:52:33 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-02-29 12:49:10 +00:00
|
|
|
|
2013-08-12 11:42:56 +00:00
|
|
|
%post
|
2017-08-31 06:58:20 +00:00
|
|
|
%python_install_alternative lesscpy
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative lesscpy
|
2013-08-12 11:42:56 +00:00
|
|
|
|
2017-08-31 06:58:20 +00:00
|
|
|
%check
|
2019-03-01 08:52:03 +00:00
|
|
|
%python_exec -m nose
|
2013-08-12 11:42:56 +00:00
|
|
|
|
2017-08-31 06:58:20 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:16:11 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2017-08-31 06:58:20 +00:00
|
|
|
%python_alternative %{_bindir}/lesscpy
|
2013-07-17 13:17:42 +00:00
|
|
|
%{python_sitelib}/lesscpy
|
2017-08-31 06:58:20 +00:00
|
|
|
%{python_sitelib}/lesscpy-%{version}-py*.egg-info
|
2012-02-29 12:49:10 +00:00
|
|
|
|
|
|
|
|
%changelog
|