libsass/libsass.spec

87 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libsass
#
# Copyright (c) 2018 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
# 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/
#
Accepting request 600150 from home:z1trus:branches:devel:libraries:c_c++ - Update version to 3.5.3: Community: * Add nim-sass to implementations list (@zacharycarter, #2592) * Add Haskell bindings to implementations list (@jakubfijalkowski, #2612) * Add SharpScss and LibSassHost bindings to implementations list (@tompazourek, #2623) * Update node-sass link in implementations list (@xzyfer, b866ad5) * Update Unicode doc after forcing UTF8/plain ASCII (@mgreter, #2596) * Update compatibility section of the read me (@xzyfer, 9266d26) Features: * Update sass2scss@v1.1.2 (@mgreter, #2602) * Emit transparent colours as rgba(0, 0, 0, 0) (@xzyfer, #2298) * Add a sass_option_push_import_extension C-API (@xzyfer, #1964) Fixes: * Fix output/error for modulo zero operation (@mgreter, #2593) * Fix automake build if sassc is missing (@mgreter, #2601) * Fix handling of colours in @at directives (@mgreter, #2360) * Fix edge case converting achromatic colors to HSL (@mgreter, #2604) * Fix evaluation of arithmetic inside interpolation (@mgreter, #2203) * Fix handling of @important in custom properties (@xzyfer, #2590) * Fix duplicate definition of out_of_memory macro (@thatguystone, #2619) * Fix merging of nested media queries with negation (@xzyfer, #2425) * Fix regression in parsing selector with trailing escaped colon (@xzyfer, #2625) * Fix segfault on empty custom properties (@xzyfer, sass/sassc#225) - Includes changes from 3.5.1: Features: * Implement more detailed backtraces (@mgreter, #2573) Fixes: * Fix parsing of block comments to ignore css string rules (@mgreter, #1294) * Fix win UNC path handling for dot and dotdot directories (@mgreter, #2588) OBS-URL: https://build.opensuse.org/request/show/600150 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsass?expand=0&rev=20
2018-04-24 09:39:53 +02:00
%define libname libsass-3_5_3-1
Name: libsass
Accepting request 600150 from home:z1trus:branches:devel:libraries:c_c++ - Update version to 3.5.3: Community: * Add nim-sass to implementations list (@zacharycarter, #2592) * Add Haskell bindings to implementations list (@jakubfijalkowski, #2612) * Add SharpScss and LibSassHost bindings to implementations list (@tompazourek, #2623) * Update node-sass link in implementations list (@xzyfer, b866ad5) * Update Unicode doc after forcing UTF8/plain ASCII (@mgreter, #2596) * Update compatibility section of the read me (@xzyfer, 9266d26) Features: * Update sass2scss@v1.1.2 (@mgreter, #2602) * Emit transparent colours as rgba(0, 0, 0, 0) (@xzyfer, #2298) * Add a sass_option_push_import_extension C-API (@xzyfer, #1964) Fixes: * Fix output/error for modulo zero operation (@mgreter, #2593) * Fix automake build if sassc is missing (@mgreter, #2601) * Fix handling of colours in @at directives (@mgreter, #2360) * Fix edge case converting achromatic colors to HSL (@mgreter, #2604) * Fix evaluation of arithmetic inside interpolation (@mgreter, #2203) * Fix handling of @important in custom properties (@xzyfer, #2590) * Fix duplicate definition of out_of_memory macro (@thatguystone, #2619) * Fix merging of nested media queries with negation (@xzyfer, #2425) * Fix regression in parsing selector with trailing escaped colon (@xzyfer, #2625) * Fix segfault on empty custom properties (@xzyfer, sass/sassc#225) - Includes changes from 3.5.1: Features: * Implement more detailed backtraces (@mgreter, #2573) Fixes: * Fix parsing of block comments to ignore css string rules (@mgreter, #1294) * Fix win UNC path handling for dot and dotdot directories (@mgreter, #2588) OBS-URL: https://build.opensuse.org/request/show/600150 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsass?expand=0&rev=20
2018-04-24 09:39:53 +02:00
Version: 3.5.3
Release: 0
Summary: Compiler library for A CSS preprocessor language
License: MIT
Group: Development/Libraries/C and C++
Url: https://github.com/sass/libsass
Source: https://github.com/sass/libsass/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: libsass-am.diff
Patch2: libsass-vers.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
%description
Sass is a CSS pre-processor language to add new features to CSS.
LibSass is a C/C++ port of the Sass CSS precompiler.
%package -n %{libname}
Summary: Compiler library for A CSS preprocessor language
Group: System/Libraries
%description -n %{libname}
This package provides the shared library object for libsass.
%package devel
Summary: Development files for libsass, a library for a CSS preprocessor language
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
This package provides development header files for libsass.
%prep
%setup -q
%patch -P 1 -P 2 -p1
%build
if [ ! -f VERSION ]; then
echo "%{version}" >VERSION
fi
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%{_libdir}/libsass*.so.*
%files devel
%{_includedir}/sass*
%{_libdir}/pkgconfig/libsass.pc
%{_libdir}/libsass*.so
%changelog