File libsass.spec of Package libsass

# spec file for package libsass
# Copyright (c) 2019 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

%define libname libsass-3_6_1-1
Name:           libsass
Version:        3.6.1
Release:        0
Summary:        Compiler library for A CSS preprocessor language
License:        MIT
Group:          Development/Libraries/C and C++
Patch1:         libsass-am.diff
Patch2:         libsass-vers.diff
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  pkgconfig

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.

%setup -q
%patch -P 1 -P 2 -p1

if [ ! -f VERSION ]; then
	echo "%{version}" >VERSION
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}

make check %{?_smp_mflags}

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

%files devel