forked from pool/python-lesscpy
- Release version 0.15.0 * Update .gitignore * Remove old interpreter versions * Merge pull request #118 from lephe/master * Improve support for nested media queries * Merge pull request #117 from lephe/master * Basic support for CSS4 variables * Merge pull request #109 from saschpe/rel - Release version 0.14.0 * Merge pull request #108 from saschpe/pycharm * Version a PyCharm project configuration * Update .gitignore rules based on Github Boilerplate * Merge pull request #107 from saschpe/cleanups * Add Python-3.7 to supported versions * Improve minor style issues * Merge pull request #105 from tirkarthi/fix-collections-import * Import ABC from collections.abc instead of collections for Python 3.9 compatibility. * Merge pull request #99 from hroncok/rpartition * Merge pull request #98 from movermeyer/fix_badges * Merge pull request #100 from cladmi/pr/fix/readme/command * README.rst: fix the outdated lesscpy usage * Apply PEP-8 consistently * Allow to run tests from versioned folder * Switched broken pypip.in badges to shields.io * Merge pull request #96 from sambler/pyversions * Merge pull request #97 from sambler/pysix * adjust tox.ini to prevent errors from missing interpreters * Make use of six.string_types consistent * update python versions 2.6 was EOL in 2013 3.3 was EOL in 2017-09 add 3.6, pypy and pypy3 OBS-URL: https://build.opensuse.org/request/show/1006984 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lesscpy?expand=0&rev=22
80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-lesscpy
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-lesscpy
|
|
Version: 0.15.0
|
|
Release: 0
|
|
Summary: Lesscss compiler
|
|
License: MIT
|
|
URL: https://github.com/lesscpy/lesscpy
|
|
Source: https://files.pythonhosted.org/packages/source/l/lesscpy/lesscpy-%{version}.tar.gz
|
|
BuildRequires: %{python_module ply}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-ply
|
|
Requires: python-setuptools
|
|
Requires: python-six
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
%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.
|
|
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.
|
|
|
|
%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_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/lesscpy
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%post
|
|
%python_install_alternative lesscpy
|
|
|
|
%postun
|
|
%python_uninstall_alternative lesscpy
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%python_alternative %{_bindir}/lesscpy
|
|
%{python_sitelib}/lesscpy
|
|
%{python_sitelib}/lesscpy-%{version}-py*.egg-info
|
|
|
|
%changelog
|