forked from pool/python-libsass
65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package python-sass
|
||
|
|
#
|
||
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
|
#
|
||
|
|
# 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/
|
||
|
|
#
|
||
|
|
|
||
|
|
%define _name libsass
|
||
|
|
|
||
|
|
Name: python-libsass
|
||
|
|
Version: 0.10.0
|
||
|
|
Release: 0
|
||
|
|
License: MIT
|
||
|
|
Summary: Python binding for libsass
|
||
|
|
Url: https://github.com/dahlia/libsass-python
|
||
|
|
Group: Development/Languages/Python
|
||
|
|
Source: %{_name}-%{version}.tar.gz
|
||
|
|
Patch0: 89d03d50-allow-t-for-style.patch
|
||
|
|
|
||
|
|
BuildRequires: gcc-c++
|
||
|
|
BuildRequires: python-Cython
|
||
|
|
BuildRequires: python-devel
|
||
|
|
BuildRequires: fdupes
|
||
|
|
BuildRequires: python-setuptools
|
||
|
|
|
||
|
|
# sassc installation required setuptools
|
||
|
|
Requires: python-setuptools
|
||
|
|
Requires: python-six
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
|
||
|
|
%description
|
||
|
|
A straightforward binding of libsass for Python. Compile Sass/SCSS in Python
|
||
|
|
with no Ruby stack at all!
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -n %{_name}-%{version}
|
||
|
|
%patch0 -p1
|
||
|
|
|
||
|
|
%build
|
||
|
|
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
||
|
|
|
||
|
|
%install
|
||
|
|
python setup.py install --single-version-externally-managed -O1 --root=%{buildroot} --record=INSTALLED_FILES
|
||
|
|
|
||
|
|
%fdupes %{buildroot}%{py_sitedir}
|
||
|
|
|
||
|
|
%clean
|
||
|
|
rm -rf %{buildroot}
|
||
|
|
|
||
|
|
%files -f INSTALLED_FILES
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%dir %{py_sitedir}/sassutils
|
||
|
|
|
||
|
|
%changelog
|