forked from pool/python-lesscpy
Accepting request 419478 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/419478 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lesscpy?expand=0&rev=6
This commit is contained in:
3
lesscpy-0.10.2.tar.gz
Normal file
3
lesscpy-0.10.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ccad1ad2a89ced1875c5ca4e16e5478b791d31fb187fe29f1541859318ed9055
|
||||
size 159031
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa01d435a1ab3abafba683519bdc7aca5e19399e96225e1a8bc1d660b566364d
|
||||
size 32061
|
||||
@@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
- Fix update-alternatives implementation.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 7 11:06:21 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 08 20:50:00 UTC 2014 - Led <ledest@gmail.com>
|
||||
|
||||
|
||||
@@ -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 @@ 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
|
||||
# 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 @@ 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 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user