2016-01-12 15:08:31 +00:00
|
|
|
#
|
2016-04-01 04:37:31 +00:00
|
|
|
# spec file for package python-libsass
|
2016-01-12 15:08:31 +00:00
|
|
|
#
|
2017-05-16 15:14:02 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2016-01-12 15:08:31 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2016-04-01 04:37:31 +00:00
|
|
|
|
2016-01-12 15:08:31 +00:00
|
|
|
%define _name libsass
|
2017-05-16 15:14:02 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-01-12 15:08:31 +00:00
|
|
|
|
|
|
|
|
Name: python-libsass
|
2017-05-16 15:14:02 +00:00
|
|
|
Version: 0.12.3
|
2016-01-12 15:08:31 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python binding for libsass
|
2016-04-01 04:37:31 +00:00
|
|
|
License: MIT
|
2016-01-12 15:08:31 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-04-01 04:37:31 +00:00
|
|
|
Url: https://github.com/dahlia/libsass-python
|
2016-01-12 15:08:31 +00:00
|
|
|
Source: %{_name}-%{version}.tar.gz
|
2018-07-14 18:32:27 +00:00
|
|
|
# PATCH-FIX-UPSTREAM 0.13.3 https://github.com/sass/libsass-python/pull/212 boo#1041090
|
|
|
|
|
Patch0: reproducible.patch
|
2016-01-12 15:08:31 +00:00
|
|
|
|
2017-05-16 15:14:02 +00:00
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2016-04-01 04:37:31 +00:00
|
|
|
BuildRequires: fdupes
|
2016-01-12 15:08:31 +00:00
|
|
|
BuildRequires: gcc-c++
|
2017-05-16 15:14:02 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2016-01-12 15:08:31 +00:00
|
|
|
|
|
|
|
|
# sassc installation required setuptools
|
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
Requires: python-six
|
2017-05-16 15:14:02 +00:00
|
|
|
# Both are providing sassc binary with different parameters
|
|
|
|
|
Conflicts: sassc
|
2016-01-12 15:08:31 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
2017-05-16 15:14:02 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
2016-01-12 15:08:31 +00:00
|
|
|
%description
|
|
|
|
|
A straightforward binding of libsass for Python. Compile Sass/SCSS in Python
|
|
|
|
|
with no Ruby stack at all!
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -n %{_name}-%{version}
|
2018-07-14 18:32:27 +00:00
|
|
|
%patch0 -p1
|
2016-01-12 15:08:31 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-05-16 15:14:02 +00:00
|
|
|
%python_build
|
2016-01-12 15:08:31 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-05-16 15:14:02 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_clone %{buildroot}%{_bindir}/sassc
|
|
|
|
|
%python_clone %{buildroot}%{_bindir}/sassc.py
|
2016-01-12 15:08:31 +00:00
|
|
|
|
2017-05-16 15:14:02 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2016-01-12 15:08:31 +00:00
|
|
|
|
2017-05-16 15:14:02 +00:00
|
|
|
%files %python_files
|
2016-01-12 15:08:31 +00:00
|
|
|
%defattr(-,root,root)
|
2017-05-16 15:14:02 +00:00
|
|
|
%python3_only %{_bindir}/sassc
|
|
|
|
|
%{_bindir}/sassc-%{python_bin_suffix}
|
|
|
|
|
%python3_only %{_bindir}/sassc.py
|
|
|
|
|
%{_bindir}/sassc.py-%{python_bin_suffix}
|
|
|
|
|
%{python_sitearch}/_sass*.so
|
|
|
|
|
%{python_sitearch}/sass*
|
|
|
|
|
%python3_only %{python_sitearch}/__pycache__/sass*
|
|
|
|
|
%{python_sitearch}/libsass-%{version}-py*.egg-info
|
2016-01-12 15:08:31 +00:00
|
|
|
|
|
|
|
|
%changelog
|